C++ main module for gpm Package  1.0
MATH_RANDFunction.h
Go to the documentation of this file.
1 #ifndef MATH_RANDFunction_H
2 #define MATH_RANDFunction_H
3 
5 
6 #include <time.h>
7 
17  SP_OBJECT(MATH_RANDFunction);
18 
19  // ATTRIBUTES
20 
21 private:
22  static tBoolean IS_INITIALIZED;
23 protected:
24  // METHODS
25 
26  // CONSTRUCTORS
27 
30  MATH_RANDFunction(void);
31 
32 
33 
34  // DESTRUCTORS
35 
36 
39  virtual ~MATH_RANDFunction(void);
40 
41 private:
42 
43 public:
46  static inline SP::MATH_RANDFunction New() {
47  SP::MATH_RANDFunction p(new MATH_RANDFunction(),MATH_RANDFunction::Delete());
48  p->setThis(p);
49  return p;
50  }
51 
54  virtual SP::MATH_FunctionNode newInstance() const {
55  return New();
56  }
57 
58 
59  // SET methods
60 
61 
62  // GET methods
63 
64 
65 public:
66  // OTHERS methods
67 
70  virtual double computeFunction(const double* values,const int& n) const;
71 
72 
73 
74 };
75 
76 #endif
static SP::MATH_RANDFunction New()
create a node expression
Definition: MATH_RANDFunction.h:46
virtual ~MATH_RANDFunction(void)
destroy
Definition: MATH_RANDFunction.cpp:15
DEFINE_SPTR(MATH_RANDFunction)
This class decribes a atan function.
Definition: MATH_RANDFunction.h:16
This class decribes a numerical function.
Definition: MATH_NumericalFunction.h:14
#define tBoolean
Definition: types.h:35
virtual double computeFunction(const double *values, const int &n) const
compute the function
Definition: MATH_RANDFunction.cpp:18
virtual SP::MATH_FunctionNode newInstance() const
create a node expression
Definition: MATH_RANDFunction.h:54
MATH_RANDFunction(void)
create
Definition: MATH_RANDFunction.cpp:5
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106