Interface defining a contract for the child classes. Subclass, or rather an instance of the class, has an ability to "merge" other instance into itself. More...
#include <Mergeable.hpp>
Public Member Functions | |
virtual | ~Mergeable ()=default |
Virtual default destructor. | |
virtual void | Merge (Mergeable *other)=0 |
Pure virtual interface method. Merges the current object with another instance of the same type. The Merge method defines how the state or data of one object should be combined with another. | |
Interface defining a contract for the child classes. Subclass, or rather an instance of the class, has an ability to "merge" other instance into itself.
|
pure virtual |
Pure virtual interface method. Merges the current object with another instance of the same type. The Merge
method defines how the state or data of one object should be combined with another.
other | Pointer to another Mergeable object, which should be of the same type as the current instance, which is to be merged. |
std::invalid_argument | if the objects cannot be merged due to incompatibility. |
Implemented in vrml_proc::conversion_context::VectorConversionContext< T >, vrml_proc::conversion_context::VectorConversionContext< std::reference_wrapper< const vrml_proc::parser::model::Vec3fArray > >, vrml_proc::conversion_context::VectorConversionContext< std::reference_wrapper< const vrml_proc::parser::model::Vec3fArray > >, vrml_proc::conversion_context::VectorConversionContext< to_geom::core::MeshTask >, and vrml_proc::conversion_context::VectorConversionContext< to_geom::core::MeshTask >.