BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
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 (const double *x, unsigned int icoord) const |
double | DoDerivative (double x) const |
double | DoEval (const double *x) const |
double | DoEval (double x) const |
Private Attributes | |
unsigned int | fDim |
Func | fFunc |
|
private |
|
private |
|
inline |
Definition at line 86 of file Functor.h.
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::Copy().
|
inline |
|
inlinevirtual |
|
inline |
Definition at line 103 of file Functor.h.
References ROOT::Math::FunctorHandler< ParentFunctor, Func >::Copy().
|
inline |
Definition at line 98 of file Functor.h.
References ROOT::Math::FunctorHandler< ParentFunctor, Func >::FunctorHandler().
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::Clone().
|
inlineprivate |
Definition at line 127 of file Functor.h.
References ROOT::Math::FunctorHandler< ParentFunctor, Func >::fFunc.
|
inlineprivate |
Definition at line 123 of file Functor.h.
References ROOT::Math::FunctorHandler< ParentFunctor, Func >::fFunc.
|
inlineprivate |
Definition at line 119 of file Functor.h.
References ROOT::Math::FunctorHandler< ParentFunctor, Func >::fFunc.
|
inlineprivate |
Definition at line 115 of file Functor.h.
References ROOT::Math::FunctorHandler< ParentFunctor, Func >::fFunc.
|
inline |
Definition at line 109 of file Functor.h.
References ROOT::Math::FunctorHandler< ParentFunctor, Func >::fDim.
|
private |
Definition at line 132 of file Functor.h.
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::NDim().
|
mutableprivate |
Definition at line 133 of file Functor.h.
Referenced by ROOT::Math::FunctorHandler< ParentFunctor, Func >::DoDerivative(), and ROOT::Math::FunctorHandler< ParentFunctor, Func >::DoEval().