casa
$Rev:20696$
|
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.
casa::WrapperParam< T >::WrapperParam | ( | ) |
Construct with the given parameters.
casa::WrapperParam< T >::WrapperParam | ( | const T & | par | ) | [explicit] |
casa::WrapperParam< T >::WrapperParam | ( | const Vector< T > & | par | ) | [explicit] |
casa::WrapperParam< T >::WrapperParam | ( | const WrapperParam< T > & | other | ) |
Copy constructor (deep copy)
virtual casa::WrapperParam< T >::~WrapperParam | ( | ) | [virtual] |
Destructor.
virtual const String& casa::WrapperParam< T >::name | ( | ) | const [inline, virtual] |
Give name of function.
Reimplemented from casa::Function< T >.
Definition at line 106 of file WrapperParam.h.
WrapperParam<T>& casa::WrapperParam< T >::operator= | ( | const WrapperParam< T > & | other | ) |
Copy assignment (deep copy)