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