ICF 3.1.1.10
Technical documentation of ICF Libraries
TIMathFunction.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef imath_TIMathFunction_included
7#define imath_TIMathFunction_included
8
9
10#include <istd/IPolymorphic.h>
11
12
13namespace imath
14{
15
16
20template <typename Argument, typename Result>
21class TIMathFunction: virtual public istd::IPolymorphic
22{
23public:
24 typedef Argument ArgumentType;
25 typedef Result ResultType;
26
33 virtual bool GetValueAt(const Argument& argument, Result& result) const = 0;
40 virtual Result GetValueAt(const Argument& argument) const = 0;
41};
42
43
44// standard templatization
45
47
48
49} // namespace imath
50
51
52#endif // !imath_TIMathFunction_included
53
54
Template interface for any mathematical function.
virtual bool GetValueAt(const Argument &argument, Result &result) const =0
Get function value for specified argument value.
virtual Result GetValueAt(const Argument &argument) const =0
Get function value for specified argument value.
Package with mathematical functions and algebraical primitives.
TIMathFunction< double, double > IDoubleFunction

© Witold Gantzke and Kirill Lepskiy