LifeV
ExpressionSubstraction< LExpressionType, RExpressionType > Class Template Reference

class ExpressionSubstraction Class for representing a difference between two expressions. More...

#include <ExpressionSubstraction.hpp>

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

Private Attributes

LExpressionType M_l
 
RExpressionType M_r
 

Public Types

typedef ExpressionBase< ExpressionSubstraction< LExpressionType, RExpressionType > > base_Type
 

Constructors & Destructor

 ExpressionSubstraction (const LExpressionType &l, const RExpressionType &r)
 Full constructor using the two expressions. More...
 
 ExpressionSubstraction (const ExpressionSubstraction< LExpressionType, RExpressionType > &expression)
 Copy constructor. More...
 
 ~ExpressionSubstraction ()
 Destructor. More...
 

Methods

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

Get Methods

const LExpressionType & left () const
 Getter for the left side of the substraction. More...
 
const RExpressionType & right () const
 Getter for the right side of the substraction. More...
 

Private Methods

 ExpressionSubstraction ()
 No default constructor. More...
 

Additional Inherited Members

- Public Types inherited from ExpressionBase< ExpressionSubstraction< LExpressionType, RExpressionType > >
typedef ExpressionSubstraction< LExpressionType, RExpressionType > derived_Type
 
- Public Member Functions inherited from ExpressionBase< ExpressionSubstraction< 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::ExpressionSubstraction< LExpressionType, RExpressionType >

class ExpressionSubstraction Class for representing a difference 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 substraction in the expression tree.

Template parameters

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

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

Template requirements

LExpressionType: Copiable, static display method

RExpressionType: Copiable, static display method

Definition at line 71 of file ExpressionSubstraction.hpp.

Member Typedef Documentation

◆ base_Type

typedef ExpressionBase< ExpressionSubstraction <LExpressionType, RExpressionType> > base_Type

Definition at line 79 of file ExpressionSubstraction.hpp.

Constructor & Destructor Documentation

◆ ExpressionSubstraction() [1/3]

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

Full constructor using the two expressions.

Definition at line 88 of file ExpressionSubstraction.hpp.

◆ ExpressionSubstraction() [2/3]

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

Copy constructor.

Definition at line 92 of file ExpressionSubstraction.hpp.

◆ ~ExpressionSubstraction()

Destructor.

Definition at line 96 of file ExpressionSubstraction.hpp.

◆ ExpressionSubstraction() [3/3]

No default constructor.

Member Function Documentation

◆ display()

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

Display method.

Definition at line 105 of file ExpressionSubstraction.hpp.

◆ left()

const LExpressionType& left ( ) const
inline

Getter for the left side of the substraction.

Definition at line 119 of file ExpressionSubstraction.hpp.

◆ right()

const RExpressionType& right ( ) const
inline

Getter for the right side of the substraction.

Definition at line 125 of file ExpressionSubstraction.hpp.

Field Documentation

◆ M_l

LExpressionType M_l
private

Definition at line 143 of file ExpressionSubstraction.hpp.

◆ M_r

RExpressionType M_r
private

Definition at line 146 of file ExpressionSubstraction.hpp.


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