ORIGINAL
Loading...
Searching...
No Matches
original::transform< TYPE > Class Template Reference

Base class for transformation operations. More...

#include <transform.h>

Inheritance diagram for original::transform< TYPE >:
Inheritance graph
Collaboration diagram for original::transform< TYPE >:
Collaboration graph

Public Member Functions

 ~transform () override=default
 Virtual destructor for the transform class.
 
transformclone () const override
 Clones the transform object.
 
virtual void operator() (TYPE &t)
 Applies the transformation to the given element.
 
- Public Member Functions inherited from original::cloneable
 ~cloneable () override=default
 Virtual destructor for cloneable.
 
- Public Member Functions inherited from original::baseCloneable< cloneable >
virtual ~baseCloneable ()=default
 Virtual destructor for baseCloneable.
 

Protected Member Functions

virtual void apply (TYPE &t)
 Applies the transformation to the given element.
 
- Protected Member Functions inherited from original::cloneable
 cloneable ()=default
 Default constructor for cloneable.
 
- Protected Member Functions inherited from original::baseCloneable< cloneable >
 baseCloneable ()=default
 Default constructor for baseCloneable.
 

Detailed Description

template<typename TYPE>
class original::transform< TYPE >

Base class for transformation operations.

Template Parameters
TYPEThe 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.

Member Function Documentation

◆ apply()

template<typename TYPE>
void original::transform< TYPE >::apply ( TYPE & t)
protectedvirtual

Applies the transformation to the given element.

Parameters
tThe element to apply the transformation to.

Derived classes should implement this method to perform specific transformations on the element.

◆ clone()

template<typename TYPE>
auto original::transform< TYPE >::clone ( ) const
overridevirtual

Clones the transform object.

Returns
A pointer to a new instance of the transform object.

Reimplemented from original::baseCloneable< cloneable >.

◆ operator()()

template<typename TYPE>
auto original::transform< TYPE >::operator() ( TYPE & t)
virtual

Applies the transformation to the given element.

Parameters
tThe element to apply the transformation to.

This operator calls the apply method to perform the transformation.


The documentation for this class was generated from the following file: