-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Cleanup some surface code (#3991)
- clean includes - remove explicitly deleted or defaulted constructors / destructors - allows c++ to generate move constructor / assignment implicitly - clean namespace in source files <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added `values()` method to multiple classes (e.g., `AnnulusBounds`, `ConeBounds`, `DiamondBounds`, `DiscTrapezoidBounds`, `EllipseBounds`, `RadialBounds`, `RectangleBounds`, `TrapezoidVolumeBounds`) to return internal state as a vector of doubles. - Introduced `checkConsistency()` method in several classes to validate parameters and throw exceptions for invalid configurations. - **Bug Fixes** - Enhanced error handling in `checkConsistency()` methods across various classes to throw `std::invalid_argument` exceptions for invalid inputs. - **Refactor** - Removed default constructors and destructors from multiple classes to enforce parameterized construction. - Streamlined method implementations by removing unnecessary namespace prefixes and inline definitions. - **Documentation** - Improved comments and documentation within the code to clarify functionality and usage. - **Tests** - Expanded unit tests for various classes to ensure comprehensive coverage of functionality and error handling. - **Chores** - Removed unused include directives from several files to clean up dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
77 changed files
with
881 additions
and
1,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.