C++ main module for gpm Package  1.0
MATH_AddOperator.h
Go to the documentation of this file.
1 #ifndef MATH_AddOperator_H
2 #define MATH_AddOperator_H
3 
4 #include "MATH_BinaryOperator.h"
5 
15  SP_OBJECT(MATH_AddOperator);
16 
17  // ATTRIBUTES
18 
19 
20 protected:
21  // METHODS
22 
23  // CONSTRUCTORS
24 
27  MATH_AddOperator(void);
28 
29 
30 
31  // DESTRUCTORS
32 
33 
36  virtual ~MATH_AddOperator(void);
37 
38 
39 private:
40 
41 public:
44  static inline SP::MATH_AddOperator New() {
45  SP::MATH_AddOperator p(new MATH_AddOperator(),MATH_AddOperator::Delete());
46  p->setThis(p);
47  return p;
48  }
49 
52  virtual SP::MATH_NodeExpression newInstance() const {
53  return New();
54  }
55 
56 
57  // SET methods
58 
59 
60  // GET methods
61 
62 public:
63  // OTHERS methods
83  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
84 
85 };
86 
87 #endif
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_AddOperator.h:52
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_AddOperator.cpp:12
This class describes a + operator (algebric: + , set : union)
Definition: MATH_AddOperator.h:14
DEFINE_SPTR(MATH_AddOperator)
MATH_AddOperator(void)
create
Definition: MATH_AddOperator.cpp:4
virtual ~MATH_AddOperator(void)
destroy
Definition: MATH_AddOperator.cpp:9
This class decribes a binary operator.
Definition: MATH_BinaryOperator.h:15
static SP::MATH_AddOperator New()
create a node expression
Definition: MATH_AddOperator.h:44
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