ORIGINAL
|
Base class for transformation operations. More...
#include <transform.h>
Public Member Functions | |
~transform () override=default | |
Virtual destructor for the transform class. | |
transform * | clone () const override |
Clones the transform object. | |
virtual void | operator() (TYPE &t) |
Applies the transformation to the given element. | |
![]() | |
~cloneable () override=default | |
Virtual destructor for cloneable. | |
![]() | |
virtual | ~baseCloneable ()=default |
Virtual destructor for baseCloneable. | |
Protected Member Functions | |
virtual void | apply (TYPE &t) |
Applies the transformation to the given element. | |
![]() | |
cloneable ()=default | |
Default constructor for cloneable. | |
![]() | |
baseCloneable ()=default | |
Default constructor for baseCloneable. | |
Base class for transformation operations.
TYPE | The type of element being transformed |
This class provides an interface for transformations that apply operations to elements of type TYPE
. Derived classes must implement the apply
method to perform the specific transformation. The operator()
allows the transformation to be applied by invoking the apply
method.
Applies the transformation to the given element.
t | The element to apply the transformation to. |
Derived classes should implement this method to perform specific transformations on the element.
|
overridevirtual |
Clones the transform object.
Reimplemented from original::baseCloneable< cloneable >.
Applies the transformation to the given element.
t | The element to apply the transformation to. |
This operator calls the apply
method to perform the transformation.