LifeV
ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 > Class Template Reference

2 ARGUMENTS More...

#include <ExpressionFunctor.hpp>

+ Inheritance diagram for ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 >:
+ Collaboration diagram for ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 >:

Private Attributes

std::shared_ptr< FunctorType > M_functor
 
ArgumentType1 M_argument1
 
ArgumentType2 M_argument2
 

Public Types

typedef ExpressionBase< ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 > > base_Type
 

Constructors & Destructor

 ExpressionFunctor2 (std::shared_ptr< FunctorType > fct, const ArgumentType1 &arg1, const ArgumentType2 &arg2)
 Argument with the required data in argument. More...
 
 ExpressionFunctor2 (const ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 > &expr)
 Copy constructor. More...
 
 ~ExpressionFunctor2 ()
 Destructor. More...
 

Methods

static void display (std::ostream &out=std::cout)
 Display method. More...
 

Get Methods

std::shared_ptr< FunctorType > functor () const
 Getter for the functor. More...
 
const ArgumentType1 & argument1 () const
 Getter for the expression to be placed as first argument. More...
 
const ArgumentType2 & argument2 () const
 Getter for the expression to be placed as second argument. More...
 

Private Methods

 ExpressionFunctor2 ()
 No empty constructor. More...
 

Additional Inherited Members

- Public Types inherited from ExpressionBase< ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 > >
typedef ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 > derived_Type
 
- Public Member Functions inherited from ExpressionBase< ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 > >
 ExpressionBase ()
 Empty and only constructor. More...
 
virtual ~ExpressionBase ()
 Destructor. More...
 
const derived_Typecast () const
 Method to cast away the type and get the real (DerivedType) object. More...
 

Detailed Description

template<typename FunctorType, typename ArgumentType1, typename ArgumentType2>
class LifeV::ExpressionAssembly::ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 >

2 ARGUMENTS

class ExpressionFunctor2 Class representing a functor with 2 expressions as arguement.

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

See the documentation of the class LifeV::ExpressionFunctor1

Template parameters

FunctorType: The type of the functor

ArgumentType1: The type of the first argument, that is an expression (it is usually different from the input type expected by the functor)

ArgumentType2: The type of the second argument, that is an expression (it is usually different from the input type expected by the functor)

Template requirements

FunctorType: None

ArgumentType1: Copiable, has a static method for display

ArgumentType2: Copiable, has a static method for display

Definition at line 246 of file ExpressionFunctor.hpp.

Member Typedef Documentation

◆ base_Type

typedef ExpressionBase<ExpressionFunctor2<FunctorType, ArgumentType1, ArgumentType2> > base_Type

Definition at line 254 of file ExpressionFunctor.hpp.

Constructor & Destructor Documentation

◆ ExpressionFunctor2() [1/3]

ExpressionFunctor2 ( std::shared_ptr< FunctorType >  fct,
const ArgumentType1 &  arg1,
const ArgumentType2 &  arg2 
)
inline

Argument with the required data in argument.

Definition at line 263 of file ExpressionFunctor.hpp.

◆ ExpressionFunctor2() [2/3]

ExpressionFunctor2 ( const ExpressionFunctor2< FunctorType, ArgumentType1, ArgumentType2 > &  expr)
inline

Copy constructor.

Definition at line 271 of file ExpressionFunctor.hpp.

◆ ~ExpressionFunctor2()

~ExpressionFunctor2 ( )
inline

Destructor.

Definition at line 279 of file ExpressionFunctor.hpp.

◆ ExpressionFunctor2() [3/3]

ExpressionFunctor2 ( )
private

No empty constructor.

Member Function Documentation

◆ display()

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

Display method.

Definition at line 288 of file ExpressionFunctor.hpp.

◆ functor()

std::shared_ptr<FunctorType> functor ( ) const
inline

Getter for the functor.

Definition at line 303 of file ExpressionFunctor.hpp.

◆ argument1()

const ArgumentType1& argument1 ( ) const
inline

Getter for the expression to be placed as first argument.

Definition at line 309 of file ExpressionFunctor.hpp.

◆ argument2()

const ArgumentType2& argument2 ( ) const
inline

Getter for the expression to be placed as second argument.

Definition at line 315 of file ExpressionFunctor.hpp.

Field Documentation

◆ M_functor

std::shared_ptr<FunctorType> M_functor
private

Definition at line 333 of file ExpressionFunctor.hpp.

◆ M_argument1

ArgumentType1 M_argument1
private

Definition at line 336 of file ExpressionFunctor.hpp.

◆ M_argument2

ArgumentType2 M_argument2
private

Definition at line 337 of file ExpressionFunctor.hpp.


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