Logo ROOT   6.13/01
Reference Guide
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn > Class Template Reference

template<class ParentFunctor, typename PointerToObj, typename PointerToMemFn>
class ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >

Functor Handler to Wrap pointers to member functions The member function type must be (XXX means any name is allowed) : double XXX ( double x) for 1D functions and double XXXX (const double *x) for multi-dimensional functions.

Definition at line 225 of file Functor.h.

Public Member Functions

 MemFunHandler (const PointerToObj &pObj, PointerToMemFn pMemFn)
 constructor from a pointer to the class and a pointer to the function More...
 
 MemFunHandler (unsigned int dim, const PointerToObj &pObj, PointerToMemFn pMemFn)
 constructor from a pointer to the class and a pointer to the function More...
 
virtual ~MemFunHandler ()
 
BaseFuncClone () const
 
ImplFuncCopy () const
 
unsigned int NDim () const
 

Private Types

typedef ImplFunc::BaseFunc BaseFunc
 
typedef ParentFunctor::Impl ImplFunc
 

Private Member Functions

double DoEval (double x) const
 
double DoEval (const double *x) const
 

Private Attributes

unsigned int fDim
 
PointerToMemFn fMemFn
 
PointerToObj fObj
 

#include <Math/Functor.h>

Inheritance diagram for ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >:
[legend]

Member Typedef Documentation

◆ BaseFunc

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
typedef ImplFunc::BaseFunc ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::BaseFunc
private

Definition at line 229 of file Functor.h.

◆ ImplFunc

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
typedef ParentFunctor::Impl ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::ImplFunc
private

Definition at line 228 of file Functor.h.

Constructor & Destructor Documentation

◆ MemFunHandler() [1/2]

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::MemFunHandler ( const PointerToObj &  pObj,
PointerToMemFn  pMemFn 
)
inline

constructor from a pointer to the class and a pointer to the function

Definition at line 234 of file Functor.h.

◆ MemFunHandler() [2/2]

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::MemFunHandler ( unsigned int  dim,
const PointerToObj &  pObj,
PointerToMemFn  pMemFn 
)
inline

constructor from a pointer to the class and a pointer to the function

Definition at line 239 of file Functor.h.

◆ ~MemFunHandler()

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
virtual ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::~MemFunHandler ( )
inlinevirtual

Definition at line 243 of file Functor.h.

Member Function Documentation

◆ Clone()

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
BaseFunc* ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::Clone ( ) const
inline

Definition at line 249 of file Functor.h.

◆ Copy()

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
ImplFunc* ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::Copy ( ) const
inline

Definition at line 246 of file Functor.h.

◆ DoEval() [1/2]

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
double ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::DoEval ( double  x) const
inlineprivate

Definition at line 258 of file Functor.h.

◆ DoEval() [2/2]

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
double ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::DoEval ( const double *  x) const
inlineprivate

Definition at line 262 of file Functor.h.

◆ NDim()

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
unsigned int ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::NDim ( ) const
inline

Definition at line 252 of file Functor.h.

Member Data Documentation

◆ fDim

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
unsigned int ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::fDim
private

Definition at line 266 of file Functor.h.

◆ fMemFn

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
PointerToMemFn ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::fMemFn
private

Definition at line 268 of file Functor.h.

◆ fObj

template<class ParentFunctor , typename PointerToObj , typename PointerToMemFn >
PointerToObj ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::fObj
mutableprivate

Definition at line 267 of file Functor.h.

Libraries for ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >:
[legend]

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