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 305 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 309 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 308 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 314 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 319 of file Functor.h.

◆ ~MemFunHandler()

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

Definition at line 323 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 329 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 326 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 342 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 338 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 332 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 346 of file Functor.h.

◆ fMemFn

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

Definition at line 348 of file Functor.h.

◆ fObj

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

Definition at line 347 of file Functor.h.

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