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

refactor: Volume holds bounds as mutable #3595

Merged

Conversation

paulgessinger
Copy link
Member

This PR changes the internal storage of VolumeBounds inside Volume to be mutable. This allows transitive mutable access (which we need in a few cases).

To prevent accidental mutable use of the contained bounds object (which can be shared with other objects), I'm moving the shared pointer member to be private, and allow access only via setters and getters. This way, in a const function of a derived class, only const access to the volume bounds is possible.

@paulgessinger paulgessinger added this to the next milestone Sep 5, 2024
@github-actions github-actions bot added Component - Core Affects the Core module Component - Examples Affects the Examples module labels Sep 5, 2024
@paulgessinger
Copy link
Member Author

cc @Berggren-Jonas

Copy link

github-actions bot commented Sep 5, 2024

📊: Physics performance monitoring for 0500054

Full contents

physmon summary

Copy link
Member

@stephenswat stephenswat left a comment

Choose a reason for hiding this comment

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

LGMT. 👍

@kodiakhq kodiakhq bot merged commit 2798d98 into acts-project:main Sep 9, 2024
41 checks passed
@github-actions github-actions bot removed the automerge label Sep 9, 2024
Copy link

sonarcloud bot commented Sep 9, 2024

@acts-project-service acts-project-service added the Breaks Athena build This PR breaks the Athena build label Sep 9, 2024
@paulgessinger paulgessinger modified the milestones: next, v37.0.0 Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaks Athena build This PR breaks the Athena build Component - Core Affects the Core module Component - Examples Affects the Examples module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants