C++ main module for gpm Package  1.0
MATH_DivideOperator.h
Go to the documentation of this file.
1 #ifndef MATH_DivideOperator_H
2 #define MATH_DivideOperator_H
3 
4 #include "MATH_BinaryOperator.h"
5 
6 #include "MATH_Variable.h"
7 
17  SP_OBJECT(MATH_DivideOperator);
18 
19  // ATTRIBUTES
20 
21 
22 protected:
23  // METHODS
24 
25  // CONSTRUCTORS
26 
29  MATH_DivideOperator(void);
30 
31 
32 
33  // DESTRUCTORS
34 
35 
38  virtual ~MATH_DivideOperator(void);
39 
40 
41 private:
42 
43 public:
46  static inline SP::MATH_DivideOperator New() {
47  SP::MATH_DivideOperator p(new MATH_DivideOperator(),MATH_DivideOperator::Delete());
48  p->setThis(p);
49  return p;
50  }
51 
54  virtual SP::MATH_NodeExpression newInstance() const {
55  return New();
56  }
57 
58 
59  // SET methods
60 
61 
62  // GET methods
63 
64 public:
65  // OTHERS methods
74  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
75 
76 };
77 
78 #endif
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_DivideOperator.h:54
static SP::MATH_DivideOperator New()
create a node expression
Definition: MATH_DivideOperator.h:46
This class decribes a binary operator.
Definition: MATH_BinaryOperator.h:15
DEFINE_SPTR(MATH_DivideOperator)
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_DivideOperator.cpp:12
virtual ~MATH_DivideOperator(void)
destroy
Definition: MATH_DivideOperator.cpp:9
MATH_DivideOperator(void)
create
Definition: MATH_DivideOperator.cpp:4
This class decribes an environment class.
Definition: MATH_Environment.h:14
This class describes a / operator (algebric: / , set : symmetric difference)
Definition: MATH_DivideOperator.h:16
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14