C++ main module for gpm Package  1.0
MATH_AndOperator.h
Go to the documentation of this file.
1 #ifndef MATH_AndOperator_H
2 #define MATH_AndOperator_H
3 
4 #include "MATH_BinaryOperator.h"
5 #include "MATH_Variable.h"
6 
16  SP_OBJECT(MATH_AndOperator);
17 
18  // ATTRIBUTES
19 
20 
21 protected:
22  // METHODS
23 
24  // CONSTRUCTORS
25 
28  MATH_AndOperator(void);
29 
30 
31 
32  // DESTRUCTORS
33 
34 
37  virtual ~MATH_AndOperator(void);
38 
39 
40 private:
41 
42 public:
45  static inline SP::MATH_AndOperator New() {
46  SP::MATH_AndOperator p(new MATH_AndOperator(),MATH_AndOperator::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
65 
86  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
87 
88 };
89 
90 #endif
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_AndOperator.cpp:11
virtual ~MATH_AndOperator(void)
destroy
Definition: MATH_AndOperator.cpp:8
DEFINE_SPTR(MATH_AndOperator)
static SP::MATH_AndOperator New()
create a node expression
Definition: MATH_AndOperator.h:45
MATH_AndOperator(void)
create
Definition: MATH_AndOperator.cpp:3
This class decribes a binary operator.
Definition: MATH_BinaryOperator.h:15
virtual SP::MATH_NodeExpression newInstance() const
create a node expression
Definition: MATH_AndOperator.h:53
This class decribes an environment class.
Definition: MATH_Environment.h:14
This class describes an and (&&) operator.
Definition: MATH_AndOperator.h:15
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14