ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Math::Functor1D Class Reference

Functor1D class for one-dimensional functions.

It is used to wrap in a very simple and convenient way:

Definition at line 492 of file Functor.h.

Public Types

typedef FunctorImpl
< IBaseFunctionOneDim
Impl
 
typedef
IBaseFunctionOneDim::BaseFunc 
ImplBase
 
- Public Types inherited from ROOT::Math::IBaseFunctionOneDim
typedef IBaseFunctionOneDim BaseFunc
 

Public Member Functions

 Functor1D ()
 Default constructor. More...
 
template<typename Func >
 Functor1D (const Func &f)
 construct from a callable object with the right signature implementing operator() (double x) More...
 
template<class PtrObj , typename MemFn >
 Functor1D (const PtrObj &p, MemFn memFn)
 construct from a pointer to member function (1D type) More...
 
virtual ~Functor1D ()
 Destructor (no operations) More...
 
 Functor1D (const Functor1D &rhs)
 Copy constructor for Functor based on ROOT::Math::IGenFunction. More...
 
Functor1Doperator= (const Functor1D &rhs)
 Assignment operator. More...
 
ImplBaseClone () const
 Clone a function. 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

double DoEval (double x) const
 implementation of the evaluation function. Must be implemented by derived classes More...
 

Private Attributes

std::auto_ptr< ImplfImpl
 

#include <Math/Functor.h>

Inheritance diagram for ROOT::Math::Functor1D:
[legend]

Member Typedef Documentation

Definition at line 497 of file Functor.h.

Definition at line 498 of file Functor.h.

Constructor & Destructor Documentation

ROOT::Math::Functor1D::Functor1D ( )
inline

Default constructor.

Definition at line 503 of file Functor.h.

Referenced by Clone().

template<typename Func >
ROOT::Math::Functor1D::Functor1D ( const Func f)
inline

construct from a callable object with the right signature implementing operator() (double x)

Definition at line 510 of file Functor.h.

template<class PtrObj , typename MemFn >
ROOT::Math::Functor1D::Functor1D ( const PtrObj &  p,
MemFn  memFn 
)
inline

construct from a pointer to member function (1D type)

Definition at line 519 of file Functor.h.

virtual ROOT::Math::Functor1D::~Functor1D ( )
inlinevirtual

Destructor (no operations)

Definition at line 527 of file Functor.h.

ROOT::Math::Functor1D::Functor1D ( const Functor1D rhs)
inline

Copy constructor for Functor based on ROOT::Math::IGenFunction.

Definition at line 533 of file Functor.h.

Member Function Documentation

ImplBase* ROOT::Math::Functor1D::Clone ( ) const
inlinevirtual

Clone a function.

Each derived class will implement their version of the provate DoClone method

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 556 of file Functor.h.

double ROOT::Math::Functor1D::DoEval ( double  x) const
inlineprivatevirtual

implementation of the evaluation function. Must be implemented by derived classes

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 561 of file Functor.h.

Functor1D& ROOT::Math::Functor1D::operator= ( const Functor1D rhs)
inline

Assignment operator.

Definition at line 545 of file Functor.h.

Member Data Documentation

std::auto_ptr<Impl> ROOT::Math::Functor1D::fImpl
private

Definition at line 566 of file Functor.h.

Referenced by DoEval(), Functor1D(), and operator=().

Collaboration diagram for ROOT::Math::Functor1D:
[legend]

The documentation for this class was generated from the following file: