|
DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
|
Interface for creating polymorphic deep-copyable objects. More...
#include <Mixins.hpp>
Public Member Functions | |
| std::shared_ptr< BaseType > | cloneShared (const DerivedType &toClone) const |
| Creates a shared polymorphic deep copy of the specified object. | |
| std::unique_ptr< BaseType > | cloneUnique (const DerivedType &toClone) const |
| Creates a unique polymorphic deep copy of the specified object. | |
Interface for creating polymorphic deep-copyable objects.
| BaseType | The base type of the derived object to be cloned. |
| DerivedType | The derived type of the object to be cloned. |
|
nodiscard |
Creates a shared polymorphic deep copy of the specified object.
It generates a shared deep copy of the provided object, ensuring that the object's full dynamic type is preserved.
| toClone | The object to be cloned. |
|
nodiscard |
Creates a unique polymorphic deep copy of the specified object.
It generates a deep copy of the provided object, ensuring that the object's full dynamic type is preserved.
| toClone | The object to be cloned. |