ROOT logo
ROOT » MATH » MATHCORE » ROOT::Math::Functor1D

class ROOT::Math::Functor1D: public ROOT::Math::IBaseFunctionOneDim


   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


Function Members (Methods)

private:
virtual doubleDoEval(double x) const

Data Members

private:
auto_ptr<ROOT::Math::IBaseFunctionOneDim>fImplpointer to base functor handler

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

BaseFunc * Clone() const
 clone of the function handler (use copy-ctor)
double DoEval(double x) const
Functor1D()
      Default constructor

{}
Functor1D(const PtrObj& p, MemFn memFn)
       construct from a pointer to member function (1D type)

{}
Functor1D(const ROOT::Math::Functor1D& )
      construct from a callable object with the right signature
      implementing operator() (double x)

{}
virtual ~Functor1D()
      Destructor (no operations)

{}