LifeV
ExpressionScalar Class Reference

class ExpressionScalar Class representing a scalar constant in an expression. More...

#include <ExpressionScalar.hpp>

+ Inheritance diagram for ExpressionScalar:
+ Collaboration diagram for ExpressionScalar:

Private Attributes

Real M_value
 

Public Types

typedef ExpressionBase< ExpressionScalarbase_Type
 

Constructors & Destructor

 ExpressionScalar (const Real &myValue)
 Constructor using the value of the scalar. More...
 
 ExpressionScalar (const ExpressionScalar &expr)
 Copy constructor. More...
 
 ~ExpressionScalar ()
 Destructor. More...
 

Methods

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

Get Methods

const Realvalue () const
 Getter for the value of the scalar. More...
 

Private Methods

 ExpressionScalar ()
 No empty constructor. More...
 

Additional Inherited Members

- Public Types inherited from ExpressionBase< ExpressionScalar >
typedef ExpressionScalar derived_Type
 
- Public Member Functions inherited from ExpressionBase< ExpressionScalar >
 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

class ExpressionScalar Class representing a scalar constant in an expression.

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

Definition at line 55 of file ExpressionScalar.hpp.

Member Typedef Documentation

◆ base_Type

Definition at line 62 of file ExpressionScalar.hpp.

Constructor & Destructor Documentation

◆ ExpressionScalar() [1/3]

ExpressionScalar ( const Real myValue)

Constructor using the value of the scalar.

Definition at line 51 of file ExpressionScalar.cpp.

◆ ExpressionScalar() [2/3]

Copy constructor.

Definition at line 57 of file ExpressionScalar.cpp.

◆ ~ExpressionScalar()

Destructor.

Definition at line 63 of file ExpressionScalar.cpp.

◆ ExpressionScalar() [3/3]

ExpressionScalar ( )
private

No empty constructor.

Member Function Documentation

◆ display()

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

Display method.

Definition at line 71 of file ExpressionScalar.cpp.

◆ value()

const Real & value ( ) const

Getter for the value of the scalar.

Definition at line 81 of file ExpressionScalar.cpp.

Field Documentation

◆ M_value

Real M_value
private

Definition at line 109 of file ExpressionScalar.hpp.


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