ORIGINAL
Loading...
Searching...
No Matches
original::copyTransform< TYPE, ALLOC > Class Template Referencefinal

Transformation that copies an element into a container. More...

#include <transform.h>

Inheritance diagram for original::copyTransform< TYPE, ALLOC >:
Inheritance graph
Collaboration diagram for original::copyTransform< TYPE, ALLOC >:
Collaboration graph

Public Member Functions

copyTransformclone () const override
 Clones the copyTransform object.
 
 copyTransform (baseList< TYPE, ALLOC > &container)
 Constructs a copyTransform with the specified container.
 
- Public Member Functions inherited from original::transform< TYPE >
 ~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.
 

Additional Inherited Members

- 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, typename ALLOC = allocator<TYPE>>
class original::copyTransform< TYPE, ALLOC >

Transformation that copies an element into a container.

Template Parameters
TYPEThe type of element being transformed

This transformation copies an element into a specified container.

Constructor & Destructor Documentation

◆ copyTransform()

template<typename TYPE, typename ALLOC>
original::copyTransform< TYPE, ALLOC >::copyTransform ( baseList< TYPE, ALLOC > & container)
explicit

Constructs a copyTransform with the specified container.

Parameters
containerThe container to copy the element into.

Member Function Documentation

◆ clone()

template<typename TYPE, typename ALLOC>
auto original::copyTransform< TYPE, ALLOC >::clone ( ) const
overridevirtual

Clones the copyTransform object.

Returns
A pointer to a new instance of copyTransform.

Reimplemented from original::baseCloneable< cloneable >.


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