ROOT 6.13/01 Reference Guide |
Functor Handler class is responsible for wrapping any other functor and pointer to free C functions.
It can be created from any function implementing the correct signature corresponding to the requested type In the case of one dimension the function evaluation object must implement double operator() (double x). If it implements a method: double Derivative(double x) can be used to create a Gradient function type.
In the case of multi-dimension the function evaluation object must implement double operator()(const double *x). If it implements a method: double Derivative(const double *x, int icoord) can be used to create a Gradient function type.
Public Member Functions | |
FunctorHandler (const Func &fun) | |
FunctorHandler (unsigned int dim, const Func &fun) | |
virtual | ~FunctorHandler () |
BaseFunc * | Clone () const |
ImplFunc * | Copy () const |
unsigned int | NDim () const |
Private Types | |
typedef ImplFunc::BaseFunc | BaseFunc |
typedef ParentFunctor::Impl | ImplFunc |
Private Member Functions | |
double | DoDerivative (double x) const |
double | DoDerivative (const double *x, unsigned int icoord) const |
double | DoEval (double x) const |
double | DoEval (const double *x) const |
Private Attributes | |
unsigned int | fDim |
Func | fFunc |
#include <Math/Functor.h>
|
private |
|
private |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
|
mutableprivate |