C++ main module for gpm Package  1.0
MATH_LEOperator.h
Go to the documentation of this file.
1 #ifndef MATH_LEOperator_H
2 #define MATH_LEOperator_H
3 
4 #include "MATH_BinaryOperator.h"
5 
6 #include "MATH_Variable.h"
7 
19  SP_OBJECT(MATH_LEOperator);
20 
21  // ATTRIBUTES
22 
23 
24 protected:
25  // METHODS
26 
27  // CONSTRUCTORS
28 
31  MATH_LEOperator(void);
32 
33 
34 
35  // DESTRUCTORS
36 
37 
40  virtual ~MATH_LEOperator(void);
41 
42 private:
43 
44 public:
47  static inline SP::MATH_LEOperator New() {
48  SP::MATH_LEOperator p(new MATH_LEOperator(),MATH_LEOperator::Delete());
49  p->setThis(p);
50  return p;
51  }
52 
55  virtual SP::MATH_NodeExpression newInstance() const {
56  return New();
57  }
58 
59 
60  // SET methods
61 
62 
63  // GET methods
64 
65 public:
86  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
87 
88 };
89 
90 #endif
virtual ~MATH_LEOperator(void)
destroy
Definition: MATH_LEOperator.cpp:8
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
static SP::MATH_LEOperator New()
create a node expression
Definition: MATH_LEOperator.h:47
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_LEOperator.h:55
This class decribes a binary operator.
Definition: MATH_BinaryOperator.h:15
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_LEOperator.cpp:11
MATH_LEOperator(void)
create
Definition: MATH_LEOperator.cpp:3
This class describes an <= operator.
Definition: MATH_LEOperator.h:18
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
DEFINE_SPTR(MATH_LEOperator)