Functor Handler to Wrap pointers to member functions The member function type must be (XXX means any name is allowed) : double XXX ( double x) for 1D functions and double XXXX (const double *x) for multi-dimensional functions.
Public Member Functions | |
| MemFunHandler (const PointerToObj &pObj, PointerToMemFn pMemFn) | |
| constructor from a pointer to the class and a pointer to the function | |
| MemFunHandler (unsigned int dim, const PointerToObj &pObj, PointerToMemFn pMemFn) | |
| constructor from a pointer to the class and a pointer to the function | |
| virtual | ~MemFunHandler () |
| BaseFunc * | Clone () const |
| ImplFunc * | Copy () const |
| unsigned int | NDim () const |
Private Types | |
| typedef ImplFunc::BaseFunc | BaseFunc |
| typedef ParentFunctor::Impl | ImplFunc |
Private Member Functions | |
| double | DoEval (const double *x) const |
| double | DoEval (double x) const |
Private Attributes | |
| unsigned int | fDim |
| PointerToMemFn | fMemFn |
| PointerToObj | fObj |
#include <Math/Functor.h>
|
private |
|
private |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
|
private |
|
mutableprivate |