WrapperParam.h

Classes

WrapperParam -- Parameter handling for wrapped function objects (full description)

template <class T> class WrapperParam : public Function<T>

Interface

Public Members
WrapperParam()
explicit WrapperParam(const T &par)
explicit WrapperParam(const Vector<T> &par)
WrapperParam(const WrapperParam<T> &other)
WrapperParam<T> &operator=(const WrapperParam<T> &other)
virtual ~WrapperParam()

Description

Prerequisite

Synopsis

This class is provided to enable easy specialization for the actual FunctionWrapper class.

Example

    Float func(const Vector<Float>& x) {return x(0)*x(1);}        // x*y
    // Convert C++ functions to Function
    FunctionWrapper<Float> Func(func, 2);
    

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Member Description

WrapperParam()
explicit WrapperParam(const T &par)
explicit WrapperParam(const Vector<T> &par)

Construct with the given parameters

WrapperParam(const WrapperParam<T> &other)

Copy constructor (deep copy)

WrapperParam<T> &operator=(const WrapperParam<T> &other)

Copy assignment (deep copy)

virtual ~WrapperParam()

Destructor