NEML2 1.4.0
Loading...
Searching...
No Matches
Transformable< Derived > Class Template Referenceabstract

Mixin class for things that can be transformed by a symmetry operator. More...

Detailed Description

template<class Derived>
class neml2::Transformable< Derived >

Mixin class for things that can be transformed by a symmetry operator.

Template Parameters
Derivedtype

#include <Transformable.h>

Public Member Functions

virtual ~Transformable ()
 dummy virtual destructor
 
virtual Derived transform (const R2 &op) const =0
 apply a transformation operator
 

Constructor & Destructor Documentation

◆ ~Transformable()

template<class Derived >
virtual ~Transformable ( )
inlinevirtual

dummy virtual destructor

Member Function Documentation

◆ transform()

template<class Derived >
virtual Derived transform ( const R2 & op) const
pure virtual

apply a transformation operator

Parameters
opthe transformation operator
Returns
an instance of the Derived type that has been transform

Implemented in Vec.