1 #ifndef MATH_LeafExpression_H
2 #define MATH_LeafExpression_H
62 static inline SP::MATH_LeafExpression
New() {
69 static inline SP::MATH_LeafExpression
New(
const tString& symbol) {
70 SP::MATH_LeafExpression p=New();
162 int getValue(
const tString& symbol,
double* values,
int& size,
tFlag& type)
const;
static SP::MATH_LeafExpression New(const tString &symbol)
create a leaf expression
Definition: MATH_LeafExpression.h:69
#define DEFINE_SPTR(X)
Definition: CORE_Pointers.h:164
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
This class is the base class of a math expression.
Definition: MATH_Expression.h:24
void trim()
trim
Definition: CORE_String.h:605
#define tBoolean
Definition: types.h:35
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_BinaryOperator.cpp:54
static SP::MATH_LeafExpression New()
create a leaf expression
Definition: MATH_LeafExpression.h:62
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_NodeExpression.h:96
This class is a leaf of math expression ie either double float long double etc... ...
Definition: MATH_LeafExpression.h:30
#define SP_OBJECT(X)
Definition: CORE_Pointers.h:176
virtual void copy(const MATH_LeafExpression &l)
copy the leaf
Definition: MATH_LeafExpression.h:80
virtual tString toString() const
return the string representation of the class
Definition: MATH_BinaryOperator.cpp:86
virtual tBoolean isEnvironmentVariableNode() const
return true if the node is a variable to add to environment
Definition: MATH_LeafExpression.h:103
tString getSymbol() const
get the symbol
Definition: MATH_LeafExpression.h:96
This class decribes a binary operator.
Definition: MATH_BinaryOperator.h:15
This class is a children of a parent expression.
Definition: MATH_ChildExpression.h:23
void setSymbol(const tString &tag)
set the symbol
Definition: MATH_LeafExpression.h:86
#define tString
Definition: types.h:36
This class decribes an environment class.
Definition: MATH_Environment.h:14
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14