BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Functor1D class for one-dimensional functions. It is used to wrap in a very simple and convenient way:
Public Types | |
typedef IBaseFunctionOneDim | BaseFunc |
typedef FunctorImpl< IBaseFunctionOneDim > | Impl |
typedef IBaseFunctionOneDim::BaseFunc | ImplBase |
Public Member Functions | |
Functor1D () | |
template<typename Func > | |
Functor1D (const Func &f) | |
Functor1D (const Functor1D &rhs) | |
template<class PtrObj , typename MemFn > | |
Functor1D (const PtrObj &p, MemFn memFn) | |
virtual | ~Functor1D () |
ImplBase * | Clone () const |
double | operator() (const double *x) const |
double | operator() (double x) const |
Functor1D & | operator= (const Functor1D &rhs) |
Private Member Functions | |
double | DoEval (double x) const |
implementation of the evaluation function. Must be implemented by derived classes More... | |
Private Attributes | |
std::unique_ptr< Impl > | fImpl |
|
inherited |
Definition at line 139 of file IFunction.h.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
Copy constructor for Functor based on ROOT::Math::IGenFunction
Definition at line 528 of file Functor.h.
References fImpl.
|
inlinevirtual |
Clone a function. Each derived class will implement their version of the provate DoClone method
Implements ROOT::Math::IBaseFunctionOneDim.
Definition at line 547 of file Functor.h.
References Functor1D().
|
inlineprivatevirtual |
implementation of the evaluation function. Must be implemented by derived classes
Implements ROOT::Math::IBaseFunctionOneDim.
Definition at line 551 of file Functor.h.
References fImpl.
|
inlineinherited |
Evaluate the function at a point x[]. Compatible method with multi-dimensional functions
Definition at line 167 of file IFunction.h.
References ROOT::Math::IBaseFunctionOneDim::DoEval().
|
inlineinherited |
Evaluate the function at a point x Use the a pure virtual private method DoEval which must be implemented by sub-classes
Definition at line 158 of file IFunction.h.
References ROOT::Math::IBaseFunctionOneDim::DoEval().
Referenced by ROOT::Math::IGradientFunctionOneDim::FdF().
|
private |
Definition at line 555 of file Functor.h.
Referenced by Functor1D(), DoEval(), and operator=().