C++ mpi module for stochmagnet_main Package
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
EXPR_Environment Class Reference

This class is the environment with contains all the variable value. More...

#include <EXPR_Environment.h>

Inheritance diagram for EXPR_Environment:
Inheritance graph
[legend]
Collaboration diagram for EXPR_Environment:
Collaboration graph
[legend]

Public Member Functions

virtual tMemSize getMemorySize () const override
 return the memory size of the class More...
 
virtual tMemSize getContentsMemorySize () const override
 return nthe memory size of the included associations More...
 
CORE_SharedPointer< EXPR_VariableNodelookUpSharedPointer (const tString &var) const
 return the value of the variable as boolean More...
 
const EXPR_VariableNodelookUp (const tString &var) const
 return the value of the variable as boolean More...
 
EXPR_VariableNodelookUp (const tString &var)
 return the value of the variable as boolean More...
 
void record (const tString &varName, CORE_UniquePointer< EXPR_VariableNode > var)
 register the data of the variable More...
 
void record (const tString &varName, CORE_SharedPointer< EXPR_VariableNode > var)
 register the data of the variable More...
 
void adimensionize (const tReal &L, std::map< tString, tBoolean > &alreadyComputed)
 adimensionize the node More...
 
void computeBoundingBox (std::map< tString, tBoolean > &alreadyComputed)
 compute the bounding box of the node More...
 
tBoolean isConsistant () const
 return true if all variables have expression
 
virtual tString toString () const override
 return the string representation of this More...
 
- Public Member Functions inherited from CORE_Object
template<class T >
std::shared_ptr< T > getSharedPointer ()
 return the shared pointer for this More...
 
template<class T >
std::shared_ptr< const T > getConstSharedPointer () const
 return a const shared pointer for this More...
 
template<class T >
tBoolean isInstanceOf () const
 test if the clas T is an instance of this class More...
 
tString getClassName () const
 return the name of the class More...
 
tString getPointerString () const
 retrun the pointer of the class as a string More...
 
tString getIdentityString () const
 retrun the string identification of the class More...
 

Static Public Member Functions

static CORE_UniquePointer< EXPR_EnvironmentNew ()
 crete the new instance of this More...
 
- Static Public Member Functions inherited from CORE_Object
static tBoolean EnableMemoryStack (const tBoolean &isMemoryChecked)
 enable the memory stack More...
 
static void EnableMemoryStack ()
 enable the memory stack
 
static void DisableMemoryStack ()
 disable the memory stack
 
static tBoolean IsMemoryStackEnabled ()
 return trur if the memory stack is enabled
 
static tString MemoryStackToString ()
 get the memory stack in string More...
 
static tIndex GetRegisteredClassesNumber ()
 get the memory stack in string More...
 

Protected Member Functions

 EXPR_Environment ()
 create the class
 
virtual ~EXPR_Environment ()
 delete the class
 
- Protected Member Functions inherited from EXPR_Object
 EXPR_Object (void)
 create the class
 
virtual ~EXPR_Object (void)
 delete the class
 
- Protected Member Functions inherited from CORE_Object
 CORE_Object ()
 build an instance of the object
 
virtual ~CORE_Object ()
 destroy the instance of object std

 

Detailed Description

This class is the environment with contains all the variable value.

Author
Stephane Despreaux
Version
1.0

Member Function Documentation

◆ adimensionize()

void EXPR_Environment::adimensionize ( const tReal &  L,
std::map< tString, tBoolean > &  alreadyComputed 
)
inline

adimensionize the node

Parameters
[in]L: the reference length
[out]alreadComputedidentity of the root node whose adimenionization has already been computed

◆ computeBoundingBox()

void EXPR_Environment::computeBoundingBox ( std::map< tString, tBoolean > &  alreadyComputed)
inline

compute the bounding box of the node

Parameters
[out]alreadComputedidentity of the root node whose bounding box has already been computed

◆ getContentsMemorySize()

virtual tMemSize EXPR_Environment::getContentsMemorySize ( ) const
inlineoverridevirtual

return nthe memory size of the included associations

Returns
the memory size of the storage in bytes 1 Kb = 1024 bytes 1 Mb = 1024 Kb 1 Gb = 1024 Mb 1 Tb = 1024 Gb 1 Hb = 1024 Tb

Reimplemented from EXPR_Object.

◆ getMemorySize()

virtual tMemSize EXPR_Environment::getMemorySize ( ) const
inlineoverridevirtual

return the memory size of the class

Returns
the memory size of the class in bytes 1 octet = 1 byte 1 Ko = 1024 bytes 1 Mo = 1024 Ko 1 Go = 1024 Mo

Reimplemented from EXPR_Object.

◆ lookUp() [1/2]

EXPR_VariableNode* EXPR_Environment::lookUp ( const tString &  var)
inline

return the value of the variable as boolean

Parameters
[in]varname of the variable
Returns
the value of the variable false if name var does not exist

◆ lookUp() [2/2]

const EXPR_VariableNode* EXPR_Environment::lookUp ( const tString &  var) const
inline

return the value of the variable as boolean

Parameters
[in]varname of the variable
Returns
the value of the variable false if name var does not exist

◆ lookUpSharedPointer()

CORE_SharedPointer<EXPR_VariableNode> EXPR_Environment::lookUpSharedPointer ( const tString &  var) const
inline

return the value of the variable as boolean

Parameters
[in]varname of the variable
Returns
the value of the variable false if name var does not exist

◆ New()

static CORE_UniquePointer<EXPR_Environment> EXPR_Environment::New ( )
inlinestatic

crete the new instance of this

Returns
the unique pointer to this

◆ record() [1/2]

void EXPR_Environment::record ( const tString &  varName,
CORE_SharedPointer< EXPR_VariableNode var 
)
inline

register the data of the variable

Parameters
[in]varNamename of the variable
[in,out]vardata of the variable

◆ record() [2/2]

void EXPR_Environment::record ( const tString &  varName,
CORE_UniquePointer< EXPR_VariableNode var 
)
inline

register the data of the variable

Parameters
[in]varNamename of the variable
[in,out]vardata of the variable

◆ toString()

virtual tString EXPR_Environment::toString ( ) const
inlineoverridevirtual

return the string representation of this

Returns
the string representation of this

Reimplemented from CORE_Object.


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