ROOT  6.06/09
Reference Guide
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 227 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 ()
 
ImplFuncCopy () const
 
BaseFuncClone () const
 
unsigned int NDim () const
 

Private Types

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

Private Member Functions

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

Private Attributes

unsigned int fDim
 
PointerToObj fObj
 
PointerToMemFn fMemFn
 

#include <Math/Functor.h>

+ Inheritance diagram for ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >:
+ Collaboration diagram for ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >:

Member Typedef Documentation

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

Definition at line 231 of file Functor.h.

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

Definition at line 230 of file Functor.h.

Constructor & Destructor Documentation

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 236 of file Functor.h.

Referenced by ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::Clone(), and ROOT::Math::MemFunHandler< ParentFunctor, PointerToObj, PointerToMemFn >::Copy().

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 241 of file Functor.h.

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

Definition at line 245 of file Functor.h.

Member Function Documentation

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

Definition at line 251 of file Functor.h.

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

Definition at line 248 of file Functor.h.

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

Definition at line 260 of file Functor.h.

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

Definition at line 264 of file Functor.h.

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

Definition at line 254 of file Functor.h.

Member Data Documentation

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

Definition at line 269 of file Functor.h.


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