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  CppFunctions


Function Members (Methods)

public:
virtual~Functor1D()
virtual ROOT::Math::Functor1D::ImplBase*Clone() const
ROOT::Math::Functor1DFunctor1D()
ROOT::Math::Functor1DFunctor1D(const ROOT::Math::Functor1D&)
ROOT::Math::Functor1DFunctor1D(void* p, const char* className = 0, const char* methodName = 0)
doubleROOT::Math::IBaseFunctionOneDim::operator()(double x) const
doubleROOT::Math::IBaseFunctionOneDim::operator()(const double* x) const
ROOT::Math::Functor1D&operator=(const ROOT::Math::Functor1D& rhs)
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()
 clone of the function handler (use copy-ctor)
double DoEval(double x) const
Functor1D(const ROOT::Math::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)

{}

Author: L. Moneta Mon Nov 13 15:58:13 2006
Last update: root/mathcore:$Id: Functor.h 21553 2007-12-21 10:55:46Z moneta $
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.