DART
6.7.3
|
If your Aspect has Properties, then that Properties class should inherit this Aspect::Properties class. More...
#include <Aspect.hpp>
Public Member Functions | |
virtual std::unique_ptr< Properties > | clone () const=0 |
Implement this function to allow your Cloneable type to be copied safely. More... | |
virtual void | copy (const Properties &anotherCloneable)=0 |
Copy the contents of anotherCloneable into this one. More... | |
If your Aspect has Properties, then that Properties class should inherit this Aspect::Properties class.
This allows us to safely serialize, store, and clone the properties of arbitrary Aspect extensions. If your Aspect has no properties, then you do not have to worry about extending this class, because Aspect::getProperties() will simply return a nullptr by default, which is taken to indicate that it has no properties.
The distinction between the State class and the Properties class is that State will get stored in Composite::State whereas Properties will get stored in Composite::Properties. Typically Properties are values that only change rarely if ever, whereas State contains values that might change as often as every time step.
|
pure virtualinherited |
Implement this function to allow your Cloneable type to be copied safely.
|
pure virtualinherited |
Copy the contents of anotherCloneable into this one.