C++ main module for gpm Package  1.0
MATH_NumericalFunction.h
Go to the documentation of this file.
1 #ifndef MATH_NumericalFunction_H
2 #define MATH_NumericalFunction_H
3 
4 #include "MATH_FunctionNode.h"
5 
15  SP_OBJECT(MATH_NumericalFunction);
16 
17  // ATTRIBUTES
18 
19 
20 protected:
21  // METHODS
22 
23  // CONSTRUCTORS
24 
28 
29 
30 
31  // DESTRUCTORS
32 
33 
36  virtual ~MATH_NumericalFunction(void);
37 
38 private:
39 
40 public:
41 
42 
43 
44  // SET methods
45 
46 
47  // GET methods
48 
49 
50 public:
51  // OTHERS methods
52 
53 
54 
74  virtual int evaluate(const tFlag& action,MATH_Environment& symbols,MATH_Variable& var) const;
75 
78  virtual double computeFunction(const double* values,const int& n) const=0;
79 
80 };
81 
82 #endif
This class decribes a variable class for evaluation.
Definition: MATH_Variable.h:16
This class decribes a numerical function.
Definition: MATH_NumericalFunction.h:14
MATH_NumericalFunction(void)
create
Definition: MATH_NumericalFunction.cpp:3
virtual double computeFunction(const double *values, const int &n) const =0
compute the function with parameters values of size n
DEFINE_SPTR(MATH_NumericalFunction)
This class decribes an environment class.
Definition: MATH_Environment.h:14
This class decribes a function.
Definition: MATH_FunctionNode.h:21
virtual ~MATH_NumericalFunction(void)
destroy
Definition: MATH_NumericalFunction.cpp:6
virtual int evaluate(const tFlag &action, MATH_Environment &symbols, MATH_Variable &var) const
void evaluate the expression
Definition: MATH_NumericalFunction.cpp:8
#define tFlag
Definition: types.h:14