26#ifndef SCIMATH_FUNCTIONWRAPPER_H
27#define SCIMATH_FUNCTIONWRAPPER_H
30#include <casacore/casa/aips.h>
31#include <casacore/scimath/Functionals/WrapperParam.h>
32#include <casacore/casa/Arrays/ArrayFwd.h>
38template <
class T>
class WrapperBase;
108 const T &par,
const uInt dim=1);
151#ifndef CASACORE_NO_AUTO_TEMPLATES
152#include <casacore/scimath/Functionals/FunctionWrapper.tcc>
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 > & operator=(const FunctionWrapper< T > &other)
Copy assignment (reference semantics)
FunctionWrapper(T(*f)())
A function with no parameters and no arguments.
FunctionWrapper(const FunctionWrapper< T > &other)
Copy constructor (reference semantics)
FunctionWrapper()
Default constructor, to enable arrays.
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(*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.
virtual Function< T > * clone() const
Return a copy of this object from the heap.
FunctionWrapper(T(*f)(const Vector< T > &, const T &), const T &par, const uInt dim=1)
Construct an n-dimensional function with parameter.
std::shared_ptr< WrapperBase< T > > doit_p
The function aid object.
FunctionParam< T > param_p
The parameters and masks.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.