TIMathFunction.h
Go to the documentation of this file.
1 #ifndef imath_TIMathFunction_included
2 #define imath_TIMathFunction_included
3 
4 
5 #include <istd/IPolymorphic.h>
6 
7 
8 namespace imath
9 {
10 
11 
15 template <typename Argument, typename Result>
16 class TIMathFunction: virtual public istd::IPolymorphic
17 {
18 public:
19  typedef Argument ArgumentType;
20  typedef Result ResultType;
21 
28  virtual bool GetValueAt(const Argument& argument, Result& result) const = 0;
35  virtual Result GetValueAt(const Argument& argument) const = 0;
36 };
37 
38 
39 // standard templatization
40 
42 
43 
44 } // namespace imath
45 
46 
47 #endif // !imath_TIMathFunction_included
48 
49 
TIMathFunction< double, double > IDoubleFunction
virtual bool GetValueAt(const Argument &argument, Result &result) const =0
Get function value for specified argument value.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Template interface for any mathematical function.

© 2007-2017 Witold Gantzke and Kirill Lepskiy