LibCT 2.0
Public Member Functions | Private Attributes

LibCT::TemplateFunctor< T, U > Class Template Reference

TemplateFunctor is a class that allows storing pointers to member functions. More...

#include <TemplateFunctor.h>

Inheritance diagram for LibCT::TemplateFunctor< T, U >:
LibCT::Functor

List of all members.

Public Member Functions

 TemplateFunctor (T *pObject, void(T::*pFunction)(U *))
 Constructor.
virtual void operator() (void *pArg)
 Call operator.

Private Attributes

T * m_pObject
 Instance of member class.
void(T::* m_pFunction )(U *)
 Pointer to member function.

Detailed Description

template<class T, class U>
class LibCT::TemplateFunctor< T, U >

TemplateFunctor is a class that allows storing pointers to member functions.


Constructor & Destructor Documentation

template<class T , class U >
LibCT::TemplateFunctor< T, U >::TemplateFunctor ( T *  pObject,
void(T::*)(U *)  pFunction 
) [inline]

Constructor.

Parameters:
pObjectInstance of the member class
pFunctionPointer to the member function

Member Function Documentation

template<class T , class U >
virtual void LibCT::TemplateFunctor< T, U >::operator() ( void *  pArg) [inline, virtual]

Call operator.

Parameters:
pArgArgument to pass to the function

Implements LibCT::Functor.


Member Data Documentation

template<class T , class U >
void(T::* LibCT::TemplateFunctor< T, U >::m_pFunction)(U *) [private]

Pointer to member function.

template<class T , class U >
T* LibCT::TemplateFunctor< T, U >::m_pObject [private]

Instance of member class.


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