Aid in constructing function objects from C++ functions. More...
#include <WrapperData.h>
Public Member Functions | |
| WrapperData () | |
| Default constructor: to allow arrays of functions. | |
| virtual | ~WrapperData () |
| Destructor. | |
| virtual T | eval (typename Function< T >::FunctionArg, const V &) const |
Evaluate the function at x. | |
Aid in constructing function objects from C++ functions.
Internal
This class is provided to enable compile time selection of the appropriate function call. Each template incarnation represent a function call interface definition.
Float func(const Vector<Float>& x) {return x(0)*x(1);} // x*y // Convert C++ functions to Functionals FunctionWrapper<Float> Func(func, 2);
Definition at line 67 of file WrapperData.h.
| casacore::WrapperData< T, U, V, hasX, hasParam >::WrapperData | ( | ) |
Default constructor: to allow arrays of functions.
| virtual casacore::WrapperData< T, U, V, hasX, hasParam >::~WrapperData | ( | ) | [inline, virtual] |
Destructor.
Definition at line 75 of file WrapperData.h.
| virtual T casacore::WrapperData< T, U, V, hasX, hasParam >::eval | ( | typename Function< T >::FunctionArg | , | |
| const V & | ||||
| ) | const [inline, virtual] |
Evaluate the function at x.
Definition at line 80 of file WrapperData.h.
1.6.1