28 #ifndef SCIMATH_FUNCTIONWRAPPER_H
29 #define SCIMATH_FUNCTIONWRAPPER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/scimath/Functionals/WrapperParam.h>
34 #include <casacore/casa/Utilities/CountedPtr.h>
35 #include <casacore/casa/Arrays/ArrayFwd.h>
40 template <
class T>
class WrapperBase;
110 const T &par,
const uInt dim=1);
153 #ifndef CASACORE_NO_AUTO_TEMPLATES
154 #include <casacore/scimath/Functionals/FunctionWrapper.tcc>
Referenced counted pointer for constant data.
FunctionWrapper(T(*f)(const T &, const T &), const T &par)
Construct a 1-dimensional function with parameter.
virtual T eval(typename Function< T >::FunctionArg x) const
Evaluate the function at x.
FunctionWrapper(T(*f)(const T &, const Vector< T > &), const Vector< T > &par)
Construct a 1-dimensional function with parameters.
virtual ~FunctionWrapper()
Destructor.
FunctionWrapper(T(*f)(const Vector< T > &), const Int dim=1)
Construct an n-dimensional function with no parameters.
FunctionWrapper(T(*f)())
A function with no parameters and no arguments.
FunctionWrapper(const FunctionWrapper< T > &other)
Copy constructor (reference semantics)
virtual Function< T > * clone() const
Return a copy of this object from the heap.
FunctionWrapper()
Default constructor, to enable arrays.
CountedPtr< WrapperBase< T > > doit_p
The function aid object.
FunctionWrapper(T(*f)(const Vector< T > &, const Vector< T > &), const Vector< T > &par, const uInt dim=1)
Construct an n-dimensional function with parameters.
virtual uInt ndim() const
Get the dimensionality.
FunctionWrapper(T(*f)(const T &), const Bool isPar)
A function with parameter and no arguments (Note value of isPar irrelevant)
FunctionWrapper< T > & operator=(const FunctionWrapper< T > &other)
Copy assignment (reference semantics)
FunctionWrapper(T(*f)(const Vector< T > &), const Bool isPar)
A function with parameters and no arguments.
FunctionWrapper(T(*f)(const T &))
Construct a 1-dimensional function with no parameters.
FunctionWrapper(T(*f)(const Vector< T > &, const T &), const T &par, const uInt dim=1)
Construct an n-dimensional function with parameter.
const ArgType * FunctionArg
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.