LifeV
EvaluationFunctor1< FunctorType, ArgumentEvaluationType > Class Template Reference

Evaluation for a generic functor with 1 argument. More...

#include <EvaluationFunctor.hpp>

+ Collaboration diagram for EvaluationFunctor1< FunctorType, ArgumentEvaluationType >:

Private Attributes

std::shared_ptr< FunctorType > M_functor
 
ArgumentEvaluationType M_evaluation
 

Public Types

typedef FunctorType::return_Type return_Type
 Type of the values returned by this class. More...
 

Static constants

static const flag_Type S_globalUpdateFlag = ArgumentEvaluationType::S_globalUpdateFlag
 Flag for the global current FE. More...
 
static const flag_Type S_testUpdateFlag = ArgumentEvaluationType::S_testUpdateFlag
 Flag for the test current FE. More...
 
static const flag_Type S_solutionUpdateFlag = ArgumentEvaluationType::S_solutionUpdateFlag
 Flag for the solution current FE. More...
 

Constructors, destructor

 EvaluationFunctor1 (const EvaluationFunctor1< FunctorType, ArgumentEvaluationType > &eval)
 Copy constructor. More...
 
template<typename Argument >
 EvaluationFunctor1 (const ExpressionFunctor1< FunctorType, Argument > &expression)
 Constructor from the corresponding expression. More...
 
 ~EvaluationFunctor1 ()
 Destructor. More...
 

Methods

void update (const UInt &iElement)
 Internal update. More...
 
static void display (std::ostream &out=std::cout)
 Display method. More...
 

Set Methods

template<typename CFEType >
void setGlobalCFE (const CFEType *globalCFE)
 Setter for the global current FE. More...
 
template<typename CFEType >
void setTestCFE (const CFEType *testCFE)
 Setter for the test current FE. More...
 
template<typename CFEType >
void setSolutionCFE (const CFEType *solutionCFE)
 Setter for the solution current FE. More...
 
void setQuadrature (const QuadratureRule &qr)
 Setter for the quadrature rule. More...
 

Get Methods

return_Type value_q (const UInt &q) const
 Getter for a value. More...
 
return_Type value_qi (const UInt &q, const UInt &i) const
 Getter for the value for a vector. More...
 
return_Type value_qij (const UInt &q, const UInt &i, const UInt &j) const
 Getter for the value for a matrix. More...
 

Private Methods

 EvaluationFunctor1 ()
 No empty constructor. More...
 

Detailed Description

template<typename FunctorType, typename ArgumentEvaluationType>
class LifeV::ExpressionAssembly::EvaluationFunctor1< FunctorType, ArgumentEvaluationType >

Evaluation for a generic functor with 1 argument.

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

This class aims at representing a functor with 1 arguement during the assembly

This class is an Evaluation class, and therefore, has all the methods required to work within the Evaluation trees.

Template requirement

There are two template arguments for this class: The functor and the ArgumentEvaluationType.

FunctorType The functor has to be copiable, must implement the operator() const, has a type named ReturnType, the operator() must return a ReturnType.

Argument Evaluation It has to be an Evaluation class.

Definition at line 72 of file EvaluationFunctor.hpp.

Member Typedef Documentation

◆ return_Type

typedef FunctorType::return_Type return_Type

Type of the values returned by this class.

Definition at line 80 of file EvaluationFunctor.hpp.

Constructor & Destructor Documentation

◆ EvaluationFunctor1() [1/3]

EvaluationFunctor1 ( const EvaluationFunctor1< FunctorType, ArgumentEvaluationType > &  eval)
inline

Copy constructor.

Definition at line 104 of file EvaluationFunctor.hpp.

◆ EvaluationFunctor1() [2/3]

EvaluationFunctor1 ( const ExpressionFunctor1< FunctorType, Argument > &  expression)
inlineexplicit

Constructor from the corresponding expression.

Definition at line 111 of file EvaluationFunctor.hpp.

◆ ~EvaluationFunctor1()

~EvaluationFunctor1 ( )
inline

Destructor.

Definition at line 117 of file EvaluationFunctor.hpp.

◆ EvaluationFunctor1() [3/3]

EvaluationFunctor1 ( )
private

No empty constructor.

Member Function Documentation

◆ update()

void update ( const UInt iElement)
inline

Internal update.

Definition at line 127 of file EvaluationFunctor.hpp.

◆ display()

static void display ( std::ostream &  out = std::cout)
inlinestatic

Display method.

Definition at line 133 of file EvaluationFunctor.hpp.

◆ setGlobalCFE()

void setGlobalCFE ( const CFEType *  globalCFE)
inline

Setter for the global current FE.

Definition at line 148 of file EvaluationFunctor.hpp.

◆ setTestCFE()

void setTestCFE ( const CFEType *  testCFE)
inline

Setter for the test current FE.

Definition at line 155 of file EvaluationFunctor.hpp.

◆ setSolutionCFE()

void setSolutionCFE ( const CFEType *  solutionCFE)
inline

Setter for the solution current FE.

Definition at line 162 of file EvaluationFunctor.hpp.

◆ setQuadrature()

void setQuadrature ( const QuadratureRule qr)
inline

Setter for the quadrature rule.

Definition at line 168 of file EvaluationFunctor.hpp.

◆ value_q()

return_Type value_q ( const UInt q) const
inline

Getter for a value.

Definition at line 180 of file EvaluationFunctor.hpp.

◆ value_qi()

return_Type value_qi ( const UInt q,
const UInt i 
) const
inline

Getter for the value for a vector.

Definition at line 186 of file EvaluationFunctor.hpp.

◆ value_qij()

return_Type value_qij ( const UInt q,
const UInt i,
const UInt j 
) const
inline

Getter for the value for a matrix.

Definition at line 192 of file EvaluationFunctor.hpp.

Field Documentation

◆ S_globalUpdateFlag

const flag_Type S_globalUpdateFlag = ArgumentEvaluationType::S_globalUpdateFlag
static

Flag for the global current FE.

Definition at line 89 of file EvaluationFunctor.hpp.

◆ S_testUpdateFlag

const flag_Type S_testUpdateFlag = ArgumentEvaluationType::S_testUpdateFlag
static

Flag for the test current FE.

Definition at line 92 of file EvaluationFunctor.hpp.

◆ S_solutionUpdateFlag

const flag_Type S_solutionUpdateFlag = ArgumentEvaluationType::S_solutionUpdateFlag
static

Flag for the solution current FE.

Definition at line 95 of file EvaluationFunctor.hpp.

◆ M_functor

std::shared_ptr<FunctorType> M_functor
private

Definition at line 210 of file EvaluationFunctor.hpp.

◆ M_evaluation

ArgumentEvaluationType M_evaluation
private

Definition at line 211 of file EvaluationFunctor.hpp.


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