IFEM  90A354
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
EvalFunctions< Scalar > Class Template Reference

A base class for multi-component expression functions. More...

#include <ExprFunctions.h>

Inheritance diagram for EvalFunctions< Scalar >:
Inheritance graph
[legend]
Collaboration diagram for EvalFunctions< Scalar >:
Collaboration graph
[legend]

Public Member Functions

void addDerivative (const std::string &functions, const std::string &variables, int d1, int d2=0)
 Adds an expression function for a first or second derivative.
 
size_t getNoSpaceDim () const
 Returns number of spatial dimension.
 

Protected Types

using FuncType = EvalFuncSpatial< Scalar >
 Type alias for function.
 

Protected Member Functions

 EvalFunctions (const std::string &functions, const std::string &variables, const Real epsX, const Real epsT)
 The constructor parses the expression string for each component.
 
virtual ~EvalFunctions ()
 Defaulted destructor. More...
 

Protected Attributes

std::vector< std::unique_ptr< FuncType > > p
 Array of component expressions.
 
size_t nsd = 0
 Number of spatial dimensions.
 

Detailed Description

template<class Scalar>
class EvalFunctions< Scalar >

A base class for multi-component expression functions.

Constructor & Destructor Documentation

◆ ~EvalFunctions()

template<class Scalar >
EvalFunctions< Scalar >::~EvalFunctions ( )
protectedvirtualdefault

Defaulted destructor.

The implementation needs to be in compile unit so we have the definition for the types of the unique_ptr's.


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