casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::WrapperData< T, U, V, hasX, hasParam > Class Template Reference

Aid in constructing function objects from C++ functions. More...

#include <WrapperData.h>

Inheritance diagram for casa::WrapperData< T, U, V, hasX, hasParam >:
casa::WrapperBase< T >

List of all members.

Public Member Functions

 WrapperData ()
 Default constructor: to allow arrays of functions.
virtual ~WrapperData ()
 Destructor.
virtual T eval (typename Function< T >::FunctionArg x, const V &par) const
 Evaluate the function at x.

Detailed Description

template<class T, class U, class V, Bool hasX, Bool hasParam>
class casa::WrapperData< T, U, V, hasX, hasParam >

Aid in constructing function objects from C++ functions.

Intended use:

Internal

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);

Definition at line 67 of file WrapperData.h.


Constructor & Destructor Documentation

template<class T , class U , class V , Bool hasX, Bool hasParam>
casa::WrapperData< T, U, V, hasX, hasParam >::WrapperData ( )

Default constructor: to allow arrays of functions.

template<class T , class U , class V , Bool hasX, Bool hasParam>
virtual casa::WrapperData< T, U, V, hasX, hasParam >::~WrapperData ( ) [inline, virtual]

Destructor.

Definition at line 75 of file WrapperData.h.


Member Function Documentation

template<class T , class U , class V , Bool hasX, Bool hasParam>
virtual T casa::WrapperData< T, U, V, hasX, hasParam >::eval ( typename Function< T >::FunctionArg  x,
const V &  par 
) const [inline, virtual]

Evaluate the function at x.

Definition at line 80 of file WrapperData.h.


The documentation for this class was generated from the following file: