Parameter handling for wrapped function objects. More...
#include <WrapperParam.h>
Public Member Functions | |
| WrapperParam () | |
| Construct with the given parameters. | |
| WrapperParam (const T &par) | |
| WrapperParam (const Vector< T > &par) | |
| WrapperParam (const WrapperParam< T > &other) | |
| Copy constructor (deep copy). | |
| WrapperParam< T > & | operator= (const WrapperParam< T > &other) |
| Copy assignment (deep copy). | |
| virtual | ~WrapperParam () |
| Destructor. | |
| virtual const String & | name () const |
| Give name of function. | |
Parameter handling for wrapped function objects.
Internal
This class is provided to enable easy specialization for the actual FunctionWrapper class.
Float func(const Vector<Float>& x) {return x(0)*x(1);} // x*y // Convert C++ functions to Function FunctionWrapper<Float> Func(func, 2);
Definition at line 81 of file WrapperParam.h.
| casacore::WrapperParam< T >::WrapperParam | ( | ) |
Construct with the given parameters.
| casacore::WrapperParam< T >::WrapperParam | ( | const T & | par | ) | [explicit] |
| casacore::WrapperParam< T >::WrapperParam | ( | const Vector< T > & | par | ) | [explicit] |
| casacore::WrapperParam< T >::WrapperParam | ( | const WrapperParam< T > & | other | ) |
Copy constructor (deep copy).
| virtual casacore::WrapperParam< T >::~WrapperParam | ( | ) | [virtual] |
Destructor.
| virtual const String& casacore::WrapperParam< T >::name | ( | ) | const [inline, virtual] |
Give name of function.
Reimplemented from casacore::Function< T >.
Definition at line 106 of file WrapperParam.h.
| WrapperParam<T>& casacore::WrapperParam< T >::operator= | ( | const WrapperParam< T > & | other | ) |
Copy assignment (deep copy).
Reimplemented in casacore::FunctionWrapper< T >.
1.6.1