LifeV
EvaluationFunctor2< FunctorType, Argument1EvaluationType, Argument2EvaluationType > Class Template Reference

Evaluation for a generic functor with 2 arguments. More...

#include <EvaluationFunctor.hpp>

+ Collaboration diagram for EvaluationFunctor2< FunctorType, Argument1EvaluationType, Argument2EvaluationType >:

Private Attributes

std::shared_ptr< FunctorType > M_functor
 
Argument1EvaluationType M_evaluation1
 
Argument2EvaluationType M_evaluation2
 

Public Types

typedef FunctorType::return_Type return_Type
 Type returned by this class. More...
 

Static constants

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

Constructors, destructor

 EvaluationFunctor2 (const EvaluationFunctor2< FunctorType, Argument1EvaluationType, Argument2EvaluationType > &eval)
 Copy constructor. More...
 
template<typename Argument1 , typename Argument2 >
 EvaluationFunctor2 (const ExpressionFunctor2< FunctorType, Argument1, Argument2 > &expression)
 Constructor from the corresponding expression. More...
 
 ~EvaluationFunctor2 ()
 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

 EvaluationFunctor2 ()
 No empty constructor. More...
 

Detailed Description

template<typename FunctorType, typename Argument1EvaluationType, typename Argument2EvaluationType>
class LifeV::ExpressionAssembly::EvaluationFunctor2< FunctorType, Argument1EvaluationType, Argument2EvaluationType >

Evaluation for a generic functor with 2 arguments.

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 2 arguements 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 return_Type, the operator() must return a return_Type.

Argument1EvaluationType It has to be an Evaluation class.

Argument2EvaluationType It has to be an Evaluation class.

Definition at line 251 of file EvaluationFunctor.hpp.

Member Typedef Documentation

◆ return_Type

typedef FunctorType::return_Type return_Type

Type returned by this class.

Definition at line 259 of file EvaluationFunctor.hpp.

Constructor & Destructor Documentation

◆ EvaluationFunctor2() [1/3]

EvaluationFunctor2 ( const EvaluationFunctor2< FunctorType, Argument1EvaluationType, Argument2EvaluationType > &  eval)
inline

Copy constructor.

Definition at line 283 of file EvaluationFunctor.hpp.

◆ EvaluationFunctor2() [2/3]

EvaluationFunctor2 ( const ExpressionFunctor2< FunctorType, Argument1, Argument2 > &  expression)
inlineexplicit

Constructor from the corresponding expression.

Definition at line 291 of file EvaluationFunctor.hpp.

◆ ~EvaluationFunctor2()

~EvaluationFunctor2 ( )
inline

Destructor.

Definition at line 297 of file EvaluationFunctor.hpp.

◆ EvaluationFunctor2() [3/3]

EvaluationFunctor2 ( )
private

No empty constructor.

Member Function Documentation

◆ update()

void update ( const UInt iElement)
inline

Internal update.

Definition at line 307 of file EvaluationFunctor.hpp.

◆ display()

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

Display method.

Definition at line 314 of file EvaluationFunctor.hpp.

◆ setGlobalCFE()

void setGlobalCFE ( const CFEType *  globalCFE)
inline

Setter for the global current FE.

Definition at line 331 of file EvaluationFunctor.hpp.

◆ setTestCFE()

void setTestCFE ( const CFEType *  testCFE)
inline

Setter for the test current FE.

Definition at line 339 of file EvaluationFunctor.hpp.

◆ setSolutionCFE()

void setSolutionCFE ( const CFEType *  solutionCFE)
inline

Setter for the solution current FE.

Definition at line 347 of file EvaluationFunctor.hpp.

◆ setQuadrature()

void setQuadrature ( const QuadratureRule qr)
inline

Setter for the quadrature rule.

Definition at line 354 of file EvaluationFunctor.hpp.

◆ value_q()

return_Type value_q ( const UInt q) const
inline

Getter for a value.

Definition at line 367 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 373 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 379 of file EvaluationFunctor.hpp.

Field Documentation

◆ S_globalUpdateFlag

const flag_Type S_globalUpdateFlag = Argument1EvaluationType::S_globalUpdateFlag | Argument2EvaluationType::S_globalUpdateFlag
static

Flag for the global current FE.

Definition at line 268 of file EvaluationFunctor.hpp.

◆ S_testUpdateFlag

const flag_Type S_testUpdateFlag = Argument1EvaluationType::S_testUpdateFlag | Argument2EvaluationType::S_testUpdateFlag
static

Flag for the test current FE.

Definition at line 271 of file EvaluationFunctor.hpp.

◆ S_solutionUpdateFlag

const flag_Type S_solutionUpdateFlag = Argument1EvaluationType::S_solutionUpdateFlag | Argument2EvaluationType::S_solutionUpdateFlag
static

Flag for the solution current FE.

Definition at line 274 of file EvaluationFunctor.hpp.

◆ M_functor

std::shared_ptr<FunctorType> M_functor
private

Definition at line 398 of file EvaluationFunctor.hpp.

◆ M_evaluation1

Argument1EvaluationType M_evaluation1
private

Definition at line 399 of file EvaluationFunctor.hpp.

◆ M_evaluation2

Argument2EvaluationType M_evaluation2
private

Definition at line 400 of file EvaluationFunctor.hpp.


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