C++ main module for mmsd Package  1.0
MATH_Function.h
Go to the documentation of this file.
1 #ifndef MATH_Function_H
2 #define MATH_Function_H
3 
4 #include "UI_Object.h"
5 #include "UI_Class.h"
6 
7 
16 class MATH_Function: public virtual UI_Object {
17  SP_OBJECT(MATH_Function);
18 
19  // ATTRIBUTES
20 
21 private:
22 
23 
24  // ASSOCIATIONS
25 
26 
27  // CONSTRUCTORS
28 protected:
29 
31  MATH_Function(void);
32 
33 
34 
35  // DESTRUCTORS
36 
37 
40  virtual ~MATH_Function(void);
41 
42 
43  // METHODS
44 
45  // ------------
46  // COPY Methods
47  // ------------
50  virtual void copy(const MATH_Function& f);
51 
52  // ----------------------
53  // SAVER & LOADER METHODS
54  // ----------------------
55 public:
58  virtual void loadFromUIClass(const UI_Class& mclass) {
60  };
63  virtual void saveToUIClass(UI_Class& mclass) const {
65 
66  }
67 public:
68 
69  // ----------------
70  // FUNCTION METHOD
71  // ----------------
72 
73 
76  virtual tReal computeFunction(const tReal& x)=0;
77 
78 public:
79 
80 
81 
82 };
83 #endif
This class describes a function function.
Definition: MATH_Function.h:16
DEFINE_SPTR(MATH_Function)
This class is the base class of User Interface package.
Definition: UI_Object.h:23
This class describes the main interface class for a soft user interface (R,matlab,python etc...) class.
Definition: UI_Class.h:38
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: UI_Object.cpp:15
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: MATH_Function.h:63
virtual void copy(const MATH_Function &f)
copy the instance
Definition: MATH_Function.cpp:12
virtual ~MATH_Function(void)
destroy a function.
Definition: MATH_Function.cpp:8
virtual tReal computeFunction(const tReal &x)=0
compute the function to optimize at parameters value
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: UI_Object.cpp:18
MATH_Function(void)
create a function
Definition: MATH_Function.cpp:4
#define tReal
Definition: types.h:18
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: MATH_Function.h:58