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

This class parse an expression into a tree. More...

#include <EXPR_Parser.h>

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

Public Member Functions

const EXPR_RootNodegetTree () const
 get the tree More...
 
const EXPR_RootNodegetTree (const tString &name) const
 get the tree with name More...
 
const EXPR_EnvironmentgetEnvironment () const
 get the environment More...
 
EXPR_EnvironmentgetEnvironment ()
 get the environment More...
 
tBoolean parse (const tString &expr)
 parse the expression More...
 
tBoolean parse ()
 parse the expression More...
 
const tString & getParseExpression () const
 return the last parse exopression
 
void computeBoundingBox ()
 compute the bounding box of the main expression and its environment
 
void adimensionize (const tReal &L)
 adimensionize the main expression and its environment
 
virtual tString toString () const override
 return the string representation of this More...
 
- Public Member Functions inherited from EXPR_Object
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...
 
- 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_ParserNew ()
 create a test class
 
- 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_Parser ()
 create the class
 
virtual ~EXPR_Parser ()
 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 parse an expression into a tree.

Author
Stephane Despreaux
Version
1.0

Member Function Documentation

◆ getEnvironment() [1/2]

EXPR_Environment* EXPR_Parser::getEnvironment ( )
inline

get the environment

Returns
the environment

◆ getEnvironment() [2/2]

const EXPR_Environment* EXPR_Parser::getEnvironment ( ) const
inline

get the environment

Returns
the environment

◆ getTree() [1/2]

const EXPR_RootNode* EXPR_Parser::getTree ( ) const
inline

get the tree

Returns
the tree

◆ getTree() [2/2]

const EXPR_RootNode* EXPR_Parser::getTree ( const tString &  name) const
inline

get the tree with name

Parameters
[in]name: name of the tree
Returns
the tree

◆ parse() [1/2]

tBoolean EXPR_Parser::parse ( )
inline

parse the expression

Returns
false if the parsing has failed

◆ parse() [2/2]

tBoolean EXPR_Parser::parse ( const tString &  expr)

parse the expression

Parameters
exprexpression to parse
Returns
false if the parsing has failed

◆ toString()

tString EXPR_Parser::toString ( ) const
overridevirtual

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 files: