C++ main module for gpm Package  1.0
MATH_MinusOperator.h
Go to the documentation of this file.
1 #ifndef MATH_MinusOperator_H
2 #define MATH_MinusOperator_H
3 
4 #include "MATH_UnaryOperator.h"
5 
6 #include "MATH_AddOperator.h"
7 
21  SP_OBJECT(MATH_MinusOperator);
22 
23  // ATTRIBUTES
24 
25 
26 protected:
27  // METHODS
28 
29  // CONSTRUCTORS
30 
33  MATH_MinusOperator(void);
34 
35 
36 
37  // DESTRUCTORS
38 
39 
42  virtual ~MATH_MinusOperator(void);
43 
44 
45 private:
46 
47 public:
50  static inline SP::MATH_MinusOperator New() {
51  SP::MATH_MinusOperator p(new MATH_MinusOperator(),MATH_MinusOperator::Delete());
52  p->setThis(p);
53  p->setAssociatedBinaryOperator(MATH_AddOperator::New());
54  return p;
55  }
56 
59  virtual SP::MATH_NodeExpression newInstance() const {
60  return New();
61  }
62 
63 
64  // SET methods
65 
66 
67  // GET methods
68 
69 
70 public:
71  // OTHERS methods
91  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
92 
93 };
94 
95 #endif
static SP::MATH_MinusOperator New()
create a node expression
Definition: MATH_MinusOperator.h:50
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual ~MATH_MinusOperator(void)
destroy
Definition: MATH_MinusOperator.cpp:8
MATH_MinusOperator(void)
create
Definition: MATH_MinusOperator.cpp:4
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_MinusOperator.cpp:11
static SP::MATH_AddOperator New()
create a node expression
Definition: MATH_AddOperator.h:44
This class decribes an unary operator wiath is associated to a binary operator which replaces it if n...
Definition: MATH_UnaryOperator.h:17
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_MinusOperator.h:59
This class decribes an environment class.
Definition: MATH_Environment.h:14
DEFINE_SPTR(MATH_MinusOperator)
This class describes a minus operator with name -.
Definition: MATH_MinusOperator.h:20
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14