1 #ifndef MATH_EndBlock_H
2 #define MATH_EndBlock_H
47 static inline SP::MATH_EndBlock
New() {
74 return ( ( (bc==
'{') && (ec==
'}') ) ||
75 ( (bc==
'(') && (ec==
')') ) ||
76 ( (bc==
'[') && (ec==
']') ) );
virtual MATH_ChildExpression * insertInTree(MATH_Expression *tree, MATH_Environment &symbols, tString &expr)
insert the node This in tree & erase the This corresponding character in expr
Definition: MATH_EndBlock.cpp:37
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual const char & getBlockString() const
get the block expression character
Definition: MATH_Block.h:64
tBoolean isCompatible(const MATH_Block &bb) const
test if the end block This is compatible with the begin block
Definition: MATH_EndBlock.h:71
virtual ~MATH_EndBlock(void)
destroy
Definition: MATH_EndBlock.cpp:12
This class is the base class of a math expression.
Definition: MATH_Expression.h:24
This class decribes an operator with a name.
Definition: MATH_Operator.h:15
#define tBoolean
Definition: types.h:35
MATH_EndBlock(void)
create
Definition: MATH_EndBlock.cpp:7
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_EndBlock.h:86
This class decribes a block.
Definition: MATH_Block.h:18
DEFINE_SPTR(MATH_EndBlock)
This class is a children of a parent expression.
Definition: MATH_ChildExpression.h:23
#define tString
Definition: types.h:36
static SP::MATH_EndBlock New()
create a node expression
Definition: MATH_EndBlock.h:47
Definition: MATH_EndBlock.h:17
This class decribes an environment class.
Definition: MATH_Environment.h:14
static const int SUCCESS
Definition: MATH_Expression.h:41
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_EndBlock.h:55
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14