Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 233 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
 
 MemFunHandler (unsigned int dim, const PointerToObj &pObj, PointerToMemFn pMemFn)
 constructor from a pointer to the class and a pointer to the function
 
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 (const double *x) const
 
double DoEval (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 237 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 236 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 242 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 247 of file Functor.h.

◆ ~MemFunHandler()

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

Definition at line 251 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 257 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 254 of file Functor.h.

◆ DoEval() [1/2]

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

Definition at line 270 of file Functor.h.

◆ DoEval() [2/2]

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

Definition at line 266 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 260 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 274 of file Functor.h.

◆ fMemFn

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

Definition at line 276 of file Functor.h.

◆ fObj

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

Definition at line 275 of file Functor.h.

  • math/mathcore/inc/Math/Functor.h