ROOT
6.07/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 () |
ImplFunc * | Copy () const |
BaseFunc * | Clone () const |
unsigned int | NDim () const |
Private Types | |
typedef ParentFunctor::Impl | ImplFunc |
typedef ImplFunc::BaseFunc | BaseFunc |
Private Member Functions | |
double | DoEval (double x) const |
double | DoEval (const double *x) const |
double | DoDerivative (double x) const |
double | DoDerivative (const double *x, unsigned int icoord) const |
Private Attributes | |
unsigned int | fDim |
Func | fFunc |
#include <Math/Functor.h>
|
private |
|
private |
|
inline |
Definition at line 88 of file Functor.h.
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::Copy().
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Definition at line 100 of file Functor.h.
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::Clone().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
Definition at line 134 of file Functor.h.
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::NDim().
|
mutableprivate |
Definition at line 135 of file Functor.h.
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::DoDerivative(), and ROOT::Math::FunctorHandler< ParentFunctor, Func >::DoEval().