LifeV
ExpressionBase< DerivedType > Class Template Reference

class ExpressionBase Base class (static polymorphism, CRTP sense) for all the expressions used in assembly procedures. More...

#include <ExpressionBase.hpp>

Public Types

typedef DerivedType derived_Type
 

Constructors & Destructor

 ExpressionBase ()
 Empty and only constructor. More...
 
virtual ~ExpressionBase ()
 Destructor. More...
 

Methods

const derived_Typecast () const
 Method to cast away the type and get the real (DerivedType) object. More...
 

Private Methods

 ExpressionBase (const ExpressionBase< DerivedType > &)
 No copy (avoid slicing) More...
 
void operator= (const ExpressionBase< DerivedType > &)
 No equality (avoid slicing) More...
 

Detailed Description

template<typename DerivedType>
class LifeV::ExpressionAssembly::ExpressionBase< DerivedType >

class ExpressionBase Base class (static polymorphism, CRTP sense) for all the expressions used in assembly procedures.

Author
Samuel Quinodoz samue.nosp@m.l.qu.nosp@m.inodo.nosp@m.z@ep.nosp@m.fl.ch

This class is nothing else than an empty mother class for all the expressions, in order to distinguish those classes from the other ones (acts like a type marker).

Template parameters

DerivedType: The type of the derived class.

Template requirements

DerivedType: Copiable

Definition at line 64 of file ExpressionBase.hpp.

Member Typedef Documentation

◆ derived_Type

typedef DerivedType derived_Type

Definition at line 71 of file ExpressionBase.hpp.

Constructor & Destructor Documentation

◆ ExpressionBase() [1/2]

ExpressionBase ( )
inline

Empty and only constructor.

Definition at line 80 of file ExpressionBase.hpp.

◆ ~ExpressionBase()

virtual ~ExpressionBase ( )
inlinevirtual

Destructor.

Definition at line 83 of file ExpressionBase.hpp.

◆ ExpressionBase() [2/2]

ExpressionBase ( const ExpressionBase< DerivedType > &  )
private

No copy (avoid slicing)

Member Function Documentation

◆ cast()

const derived_Type& cast ( ) const
inline

Method to cast away the type and get the real (DerivedType) object.

Definition at line 92 of file ExpressionBase.hpp.

◆ operator=()

void operator= ( const ExpressionBase< DerivedType > &  )
private

No equality (avoid slicing)


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