Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Function.h
Go to the documentation of this file.
1 #ifndef Protium_Function_h_
2 #define Protium_Function_h_
3 
4 #include <map>
5 
6 namespace Protium{
7 
8  namespace Collections{
9 
10  template<class XType, class YType>
12  std::map<XType, YType> fComponents;
13 
15  virtual ~FunctionPrototype(){}
16 
17  void Set(const XType& x, const YType& y) = 0;
18  YType Eval(const XType& x);
19  };//class function prototype
20 
21  //statically define as follows
22 
23 
26 
27 
28  }//namespace collections
29 }//namespace protium
30 
31 
32 #endif //Header Guardian
FunctionPrototype< double, double > Function1D
Definition: Function.h:24
std::map< XType, YType > fComponents
Definition: Function.h:12
void Set(const XType &x, const YType &y)=0
FunctionPrototype< std::pair< double, double >, double > Function2D
Definition: Function.h:25