Documentation for class Functor class. It is used to wrap in a very simple and convenient way multi-dimensional function objects. It can wrap all the following types: <ul> <li> any C++ callable object implemention double operator()( const double * ) <li> a free C function of type double ()(double * ) <li> a member function with the correct signature like Foo::Eval(const double * ). In this case one pass the object pointer and a pointer to the member function (&Foo::Eval) </ul> The function dimension is required when constructing the functor. @ingroup GenFunc
virtual | ~Functor() |
virtual ROOT::Math::Functor::ImplBase* | Clone() const |
ROOT::Math::Functor | Functor() |
ROOT::Math::Functor | Functor(const ROOT::Math::Functor&) |
ROOT::Math::Functor | Functor(void* p, unsigned int dim, const char* className = 0, const char* methodName = 0) |
virtual unsigned int | NDim() const |
double | ROOT::Math::IBaseFunctionMultiDim::operator()(const double* x) const |
ROOT::Math::Functor& | operator=(const ROOT::Math::Functor& rhs) |
virtual double | DoEval(const double* x) const |
auto_ptr<ROOT::Math::IBaseFunctionMultiDim> | fImpl | pointer to base functor handler |
construct from a pointer to member function (multi-dim type)
{}
construct from a callable object of multi-dimension with the right signature (implementing operator()(double *x)
{}