Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/standard layout input #430

Merged
merged 11 commits into from Nov 22, 2023
Merged

Conversation

mgovers
Copy link
Member

@mgovers mgovers commented Nov 17, 2023

Fixes #365

Implements all input, output and update data structures as standard layout by using flat attribute expansion in the generated code. conversions to former base types is now done using reinterpret_cast

Relates to #241 and #276

Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers mgovers added the improvement Improvement on internal implementation label Nov 17, 2023
@mgovers mgovers self-assigned this Nov 17, 2023
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers mgovers marked this pull request as ready for review November 20, 2023 13:05
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers
Copy link
Member Author

mgovers commented Nov 21, 2023

@TonyXiang8787 this is ready for review

Copy link
Member Author

@mgovers mgovers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should i also revert parts of https://github.com/PowerGridModel/power-grid-model/pull/276/files#diff-2bac4fa15db710784f8450b130e98864e112b2b5e4b104c0470f876d5894f4eeL138-R141 ? or is that not necessary? or maybe we can use offsetof also in those functions?

Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Copy link

sonarcloud bot commented Nov 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

98.6% 98.6% Coverage
0.0% 0.0% Duplication

@mgovers
Copy link
Member Author

mgovers commented Nov 22, 2023

@TonyXiang8787 did everything as discussed, including conversion to base types.

The following is created in #435

should i also revert parts of https://github.com/PowerGridModel/power-grid-model/pull/276/files#diff-2bac4fa15db710784f8450b130e98864e112b2b5e4b104c0470f876d5894f4eeL138-R141 ? or is that not necessary? or maybe we can use offsetof also in those functions?

@TonyXiang8787 TonyXiang8787 merged commit eea11cc into main Nov 22, 2023
27 checks passed
@TonyXiang8787 TonyXiang8787 deleted the feature/standard-layout-input branch November 22, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement on internal implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[IMPROVEMENT] Input/output/update data structures as standard layout
2 participants