C++ main module for gpm Package  1.0
MATH_ModuloOperator.h
Go to the documentation of this file.
1 #ifndef MATH_ModuloOperator_H
2 #define MATH_ModuloOperator_H
3 
4 #include "MATH_BinaryOperator.h"
5 
6 #include "MATH_Variable.h"
7 
17  SP_OBJECT(MATH_ModuloOperator);
18 
19  // ATTRIBUTES
20 
21 
22 protected:
23  // METHODS
24 
25  // CONSTRUCTORS
26 
29  MATH_ModuloOperator(void);
30 
31 
32 
33  // DESTRUCTORS
34 
35 
38  virtual ~MATH_ModuloOperator(void);
39 
40 
41 private:
42 
43 public:
46  static inline SP::MATH_ModuloOperator New() {
47  SP::MATH_ModuloOperator p(new MATH_ModuloOperator(),MATH_ModuloOperator::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
static SP::MATH_ModuloOperator New()
create a node expression
Definition: MATH_ModuloOperator.h:46
This class describes a / operator (algebric: / , set : symmetric difference)
Definition: MATH_ModuloOperator.h:16
MATH_ModuloOperator(void)
create
Definition: MATH_ModuloOperator.cpp:4
DEFINE_SPTR(MATH_ModuloOperator)
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_ModuloOperator.cpp:12
This class decribes a binary operator.
Definition: MATH_BinaryOperator.h:15
This class decribes an environment class.
Definition: MATH_Environment.h:14
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_ModuloOperator.h:54
virtual ~MATH_ModuloOperator(void)
destroy
Definition: MATH_ModuloOperator.cpp:9
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14