|
ROOT 6.08/07 Reference Guide |
Template class to wrap any C++ callable object which takes one argument i.e.
implementing operator() (double x) in a One-dimensional function interface. It provides a ROOT::Math::IGenFunction-like signature
Note: If you want to wrap just the reference (to avoid copying) you need to use Func& or const Func & as template parameter. The former should be used when the operator() is not a const method of Func
Definition at line 58 of file WrappedFunction.h.
Public Member Functions | |
| WrappedFunction (Func f) | |
| construct from the pointer to the object and the member function More... | |
| WrappedFunction * | Clone () const |
| clone (required by the interface) More... | |
Public Member Functions inherited from ROOT::Math::IBaseFunctionOneDim | |
| IBaseFunctionOneDim () | |
| virtual | ~IBaseFunctionOneDim () |
| virtual destructor More... | |
| double | operator() (double x) const |
| Evaluate the function at a point x Use the a pure virtual private method DoEval which must be implemented by sub-classes. More... | |
| double | operator() (const double *x) const |
| Evaluate the function at a point x[]. More... | |
Private Member Functions | |
| virtual double | DoEval (double x) const |
| implementation of the evaluation function. Must be implemented by derived classes More... | |
Private Attributes | |
| Func | fFunc |
Additional Inherited Members | |
Public Types inherited from ROOT::Math::IBaseFunctionOneDim | |
| typedef IBaseFunctionOneDim | BaseFunc |
#include <Math/WrappedFunction.h>
|
inline |
construct from the pointer to the object and the member function
Definition at line 66 of file WrappedFunction.h.
|
inlinevirtual |
clone (required by the interface)
Implements ROOT::Math::IBaseFunctionOneDim.
Definition at line 73 of file WrappedFunction.h.
|
inlineprivatevirtual |
implementation of the evaluation function. Must be implemented by derived classes
Implements ROOT::Math::IBaseFunctionOneDim.
Definition at line 81 of file WrappedFunction.h.
|
private |
Definition at line 86 of file WrappedFunction.h.