C++ main module for gpm Package  1.0
MATH_ArrayFunction.h
Go to the documentation of this file.
1 #ifndef MATH_ArrayFunction_H
2 #define MATH_ArrayFunction_H
3 
4 #include "MATH_FunctionNode.h"
5 
15  SP_OBJECT(MATH_ArrayFunction);
16 
17  // ATTRIBUTES
18 
19 
20 protected:
21  // METHODS
22 
23  // CONSTRUCTORS
24 
27  MATH_ArrayFunction(void);
28 
29 
30 
31  // DESTRUCTORS
32 
33 
36  virtual ~MATH_ArrayFunction(void);
37 
38 private:
39 
40 public:
43  static inline SP::MATH_ArrayFunction New() {
44  SP::MATH_ArrayFunction p(new MATH_ArrayFunction(),MATH_ArrayFunction::Delete());
45  p->setThis(p);
46  return p;
47  }
48 
51  virtual SP::MATH_FunctionNode newInstance() const {
52  return New();
53  }
54 
55 
56  // SET methods
57 
58 
59  // GET methods
60 
61 
62 public:
63  // OTHERS methods
64 
65 
66 
88  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
89 
90 
91 };
92 
93 #endif
static SP::MATH_ArrayFunction New()
create a node expression
Definition: MATH_ArrayFunction.h:43
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
This class decribes an array function.
Definition: MATH_ArrayFunction.h:14
DEFINE_SPTR(MATH_ArrayFunction)
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_ArrayFunction.cpp:9
virtual SP::MATH_FunctionNode newInstance() const
create a node expression
Definition: MATH_ArrayFunction.h:51
virtual ~MATH_ArrayFunction(void)
destroy
Definition: MATH_ArrayFunction.cpp:7
MATH_ArrayFunction(void)
create
Definition: MATH_ArrayFunction.cpp:3
This class decribes an environment class.
Definition: MATH_Environment.h:14
This class decribes a function.
Definition: MATH_FunctionNode.h:21
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14