LifeV
ExpressionAddition< LExpressionType, RExpressionType > Class Template Reference

class ExpressionAddition Class for representing an addition between two expressions. More...

#include <ExpressionAddition.hpp>

+ Inheritance diagram for ExpressionAddition< LExpressionType, RExpressionType >:
+ Collaboration diagram for ExpressionAddition< LExpressionType, RExpressionType >:

Private Attributes

LExpressionType M_l
 
RExpressionType M_r
 

Public Types

typedef ExpressionBase< ExpressionAddition< LExpressionType, RExpressionType > > base_Type
 

Constructors & Destructor

 ExpressionAddition (const LExpressionType &l, const RExpressionType &r)
 Complete constructor using the two expressions to be summed. More...
 
 ExpressionAddition (const ExpressionAddition< LExpressionType, RExpressionType > &expression)
 Copy constructor. More...
 
 ~ExpressionAddition ()
 Destructor. More...
 

Methods

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

Get Methods

const LExpressionType & left () const
 Getter for the expression on the left side of the addition. More...
 
const RExpressionType & right () const
 Getter for the expression on the right side of the addition. More...
 

Private Methods

 ExpressionAddition ()
 No default constructor. More...
 

Additional Inherited Members

- Public Types inherited from ExpressionBase< ExpressionAddition< LExpressionType, RExpressionType > >
typedef ExpressionAddition< LExpressionType, RExpressionType > derived_Type
 
- Public Member Functions inherited from ExpressionBase< ExpressionAddition< LExpressionType, RExpressionType > >
 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 LExpressionType, typename RExpressionType>
class LifeV::ExpressionAssembly::ExpressionAddition< LExpressionType, RExpressionType >

class ExpressionAddition Class for representing an addition between two expressions.

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

This class represents the addition in the expression tree.

Template parameters

LExpressionType: The expression on the left side of the addition operation.

RExpressionType: The expression on the right side of the addition operation.

Template requirements

LExpressionType: Copiable, static display method

RExpressionType: Copiable, static display method

Definition at line 72 of file ExpressionAddition.hpp.

Member Typedef Documentation

◆ base_Type

typedef ExpressionBase< ExpressionAddition <LExpressionType, RExpressionType> > base_Type

Definition at line 80 of file ExpressionAddition.hpp.

Constructor & Destructor Documentation

◆ ExpressionAddition() [1/3]

ExpressionAddition ( const LExpressionType &  l,
const RExpressionType &  r 
)
inline

Complete constructor using the two expressions to be summed.

Definition at line 89 of file ExpressionAddition.hpp.

◆ ExpressionAddition() [2/3]

ExpressionAddition ( const ExpressionAddition< LExpressionType, RExpressionType > &  expression)
inline

Copy constructor.

Definition at line 93 of file ExpressionAddition.hpp.

◆ ~ExpressionAddition()

~ExpressionAddition ( )
inline

Destructor.

Definition at line 97 of file ExpressionAddition.hpp.

◆ ExpressionAddition() [3/3]

ExpressionAddition ( )
private

No default constructor.

Member Function Documentation

◆ display()

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

Display method.

Definition at line 106 of file ExpressionAddition.hpp.

◆ left()

const LExpressionType& left ( ) const
inline

Getter for the expression on the left side of the addition.

Definition at line 120 of file ExpressionAddition.hpp.

◆ right()

const RExpressionType& right ( ) const
inline

Getter for the expression on the right side of the addition.

Definition at line 126 of file ExpressionAddition.hpp.

Field Documentation

◆ M_l

LExpressionType M_l
private

Definition at line 144 of file ExpressionAddition.hpp.

◆ M_r

RExpressionType M_r
private

Definition at line 147 of file ExpressionAddition.hpp.


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