C++ main module for gpm Package  1.0
MATH_NotOperator.h
Go to the documentation of this file.
1 #ifndef MATH_NotOperator_H
2 #define MATH_NotOperator_H
3 
4 #include "MATH_UnaryOperator.h"
5 
6 
18  SP_OBJECT(MATH_NotOperator);
19 
20  // ATTRIBUTES
21 
22 
23 protected:
24  // METHODS
25 
26  // CONSTRUCTORS
27 
30  MATH_NotOperator(void);
31 
32 
33 
34  // DESTRUCTORS
35 
36 
39  virtual ~MATH_NotOperator(void);
40 private:
41 
42 public:
45  static inline SP::MATH_NotOperator New() {
46  SP::MATH_NotOperator p(new MATH_NotOperator(),MATH_NotOperator::Delete());
47  p->setThis(p);
48  return p;
49  }
50 
53  virtual SP::MATH_NodeExpression newInstance() const {
54  return New();
55  }
56 
57 
58  // SET methods
59 
60 
61  // GET methods
62 
63 public:
64  // OTHERS methods
84  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
85 
86 
87 
88 };
89 
90 #endif
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
DEFINE_SPTR(MATH_NotOperator)
This class describes a not (!) operator.
Definition: MATH_NotOperator.h:17
virtual ~MATH_NotOperator(void)
destroy
Definition: MATH_NotOperator.cpp:9
static SP::MATH_NotOperator New()
create a node expression
Definition: MATH_NotOperator.h:45
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_NotOperator.h:53
MATH_NotOperator(void)
create
Definition: MATH_NotOperator.cpp:5
This class decribes an unary operator wiath is associated to a binary operator which replaces it if n...
Definition: MATH_UnaryOperator.h:17
This class decribes an environment class.
Definition: MATH_Environment.h:14
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_NotOperator.cpp:12
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14