class ROOT::Math::Functor: public ROOT::Math::IBaseFunctionMultiDim


   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)

public:
virtual~Functor()
virtual ROOT::Math::Functor::ImplBase*Clone() const
ROOT::Math::FunctorFunctor()
ROOT::Math::FunctorFunctor(const ROOT::Math::Functor&)
ROOT::Math::FunctorFunctor(void* p, unsigned int dim, const char* className = 0, const char* methodName = 0)
virtual unsigned intNDim() const
doubleROOT::Math::IBaseFunctionMultiDim::operator()(const double* x) const
ROOT::Math::Functor&operator=(const ROOT::Math::Functor& rhs)
private:
virtual doubleDoEval(const double* x) const

Data Members

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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

BaseFunc * Clone()
 clone of the function handler (use copy-ctor)
unsigned int NDim()
 constructor for multi-dimensional functions
double DoEval(const double* x) const
Functor(const ROOT::Math::Functor& )
      Default constructor

{}
Functor(const PtrObj& p, MemFn memFn, unsigned int dim )
       construct from a pointer to member function (multi-dim type)

{}
Functor( const Func & f, unsigned int dim )
      construct from a callable object of multi-dimension
      with the right signature (implementing operator()(double *x)

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

{}

Author: L. Moneta Mon Nov 13 15:58:13 2006
Last change: root/mathcore:$Id: Functor.h 24482 2008-06-23 15:33:08Z moneta $
Last generated: 2008-06-25 08:29
Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.