WrapperData.h
Classes
- WrapperData -- Aid in constructing function objects from C++ functions (full description)
- WrapperData_TT -- Specialization for calls with argument and parameter (full description)
- WrapperData_VT -- Specialization for calls with argument and parameter (full description)
- WrapperData_TV -- Specialization for calls with argument and parameters (full description)
- WrapperData_VV -- Specialization for calls with argument and parameters (full description)
- WrapperData_FT -- Specialization for calls with no arguments and parameter (full description)
- WrapperData_FV -- Specialization for calls with no arguments and parameters (full description)
- WrapperData_TF -- Specialization for calls with argument and no parameters (full description)
- WrapperData_VF -- Specialization for calls with argument and no parameters (full description)
- WrapperData_FF -- Specialization for calls with no arguments and no parameters (full description)
Interface
- Public Members
- WrapperData()
- virtual ~WrapperData()
- virtual T eval(typename Function<T>::FunctionArg x, const V &par) const
Review Status
- Reviewed By:
- UNKNOWN
- Date Reviewed:
- before2004/08/25
Prerequisite
Synopsis
This class is provided to enable compile time selection of the
appropriate function call. Each template incarnation represent a
function call interface definition.
Example
Float func(const Vector<Float>& x) {return x(0)*x(1);} // x*y
// Convert C++ functions to Functionals
FunctionWrapper<Float> Func(func, 2);
Member Description
Default constructor: to allow arrays of functions
Destructor
virtual T eval(typename Function<T>::FunctionArg x, const V &par) const
Evaluate the function at x.
Interface
- explicit WrapperData_TT(T(*f)(const T&, const T&), uInt dim=1) : WrapperBase<T>(dim), pf_p(f)
- virtual ~WrapperData_TT()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const T&, const T&)
Private Members
- WrapperData_TT(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_TT(T(*f)(const T&, const T&), uInt dim=1) : WrapperBase<T>(dim), pf_p(f)
Standard constructor
Destructor
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Evaluate the function at x.
T (*pf_p)(const T&, const T&)
Function to call
WrapperData_TT(const myData &other)
myData &operator=(const myData &other)
Copy constructor and assignment (not implemented)
class WrapperData_VT<T,Vector<T>,T,True,True> : public WrapperBase<T>
Interface
Public Members
- explicit WrapperData_VT(T(*f)(const Vector<T>&, const T&), uInt dim=1) : Vector<T>(dim), pf_p(f)
- virtual ~WrapperData_VT()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const Vector<T>&, const T&)
Private Members
- WrapperData_VT(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_VT(T(*f)(const Vector<T>&, const T&), uInt dim=1) : Vector<T>(dim), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)(const Vector<T>&, const T&)
myData &operator=(const myData &other)
class WrapperData_TV<T,T,Vector<T>,True,True> : public WrapperBase<T>
Interface
Public Members
- explicit WrapperData_TV(T(*f)(const T&, const Vector<T>&), uInt dim=1) : Vector<T>(dim), pf_p(f)
- virtual ~WrapperData_TV()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const T&, const Vector<T>&)
Private Members
- WrapperData_TV(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_TV(T(*f)(const T&, const Vector<T>&), uInt dim=1) : Vector<T>(dim), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)(const T&, const Vector<T>&)
myData &operator=(const myData &other)
class WrapperData_VV<T,Vector<T>,Vector<T>,True,True> :public WrapperBase<T>
Interface
Public Members
- explicit WrapperData_VV(T(*f)(const Vector<T>&, const Vector<T>&), uInt dim=1) : Vector<T>(dim), pf_p(f)
- virtual ~WrapperData_VV()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const Vector<T>&, const Vector<T>&)
Private Members
- WrapperData_VV(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_VV(T(*f)(const Vector<T>&, const Vector<T>&), uInt dim=1) : Vector<T>(dim), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)(const Vector<T>&, const Vector<T>&)
myData &operator=(const myData &other)
Interface
Public Members
- explicit WrapperData_FT(T(*f)(const T&)) : WrapperBase<T>(0), pf_p(f)
- virtual ~WrapperData_FT()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const T&)
Private Members
- WrapperData_FT(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_FT(T(*f)(const T&)) : WrapperBase<T>(0), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)(const T&)
myData &operator=(const myData &other)
class WrapperData_FV<T,T,Vector<T>,False,True> : public WrapperBase<T>
Interface
Public Members
- explicit WrapperData_FV(T(*f)(const Vector<T>&)) : f<T>(0), pf_p(f)
- virtual ~WrapperData_FV()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const Vector<T>&)
Private Members
- WrapperData_FV(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_FV(T(*f)(const Vector<T>&)) : f<T>(0), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)(const Vector<T>&)
myData &operator=(const myData &other)
Interface
Public Members
- explicit WrapperData_TF(T(*f)(const T&), uInt dim=1) : WrapperBase<T>(dim), pf_p(f)
- virtual ~WrapperData_TF()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const T&)
Private Members
- WrapperData_TF(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_TF(T(*f)(const T&), uInt dim=1) : WrapperBase<T>(dim), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)(const T&)
myData &operator=(const myData &other)
class WrapperData_VF<T,Vector<T>,T,True,False> : public WrapperBase<T>
Interface
Public Members
- explicit WrapperData_VF(T(*f)(const Vector<T>&), uInt dim=1) : Vector<T>(dim), pf_p(f)
- virtual ~WrapperData_VF()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)(const Vector<T>&)
Private Members
- WrapperData_VF(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_VF(T(*f)(const Vector<T>&), uInt dim=1) : Vector<T>(dim), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)(const Vector<T>&)
myData &operator=(const myData &other)
Interface
Public Members
- explicit WrapperData_FF(T(*f)()) : WrapperBase<T>(0), pf_p(f)
- virtual ~WrapperData_FF()
- virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
Protected Members
- T (*pf_p)()
Private Members
- WrapperData_FF(const myData &other)
- myData &operator=(const myData &other)
Synopsis
Note that the actual name of the class is
WrapperData. The special name is only for the use of
cxx2html.
Member Description
explicit WrapperData_FF(T(*f)()) : WrapperBase<T>(0), pf_p(f)
virtual T eval(typename Function<T>::FunctionArg x, const typename<T> &par) const
T (*pf_p)()
myData &operator=(const myData &other)