MURE
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
TSpecificFunctor< T > Class Template Reference

Template class to assign a method of class T as argument. More...

#include <TFunctor.hxx>

Inheritance diagram for TSpecificFunctor< T >:
TFunctor

Public Member Functions

 TSpecificFunctor (T *_pt2Object, void(T::*_fpt)())
 
 ~TSpecificFunctor () override
 
void operator() () override
 call using operator
 
void Call () override
 call using function
 
virtual void SetObj (T *obj)
 
- Public Member Functions inherited from TFunctor
virtual void operator() ()=0
 call using operator
 
virtual void Call ()=0
 call using function
 
virtual ~TFunctor ()=default
 Virtual destructor to avoid GCC 4.0 warnings.
 

Private Attributes

void(T::* fpt )()
 pointer to member function
 
T * pt2Object
 pointer to object
 

Detailed Description

template<class T>
class TSpecificFunctor< T >

Template class to assign a method of class T as argument.

This class is used to pass methods of the template class T as argument of others function.

Author
PTO
Version
0.1

Constructor & Destructor Documentation

◆ TSpecificFunctor()

template<class T >
TSpecificFunctor< T >::TSpecificFunctor ( T *  _pt2Object,
void(T::*)()  _fpt 
)
inline

< Normal Constructor

◆ ~TSpecificFunctor()

template<class T >
TSpecificFunctor< T >::~TSpecificFunctor ( )
inlineoverride

Member Function Documentation

◆ Call()

template<class T >
void TSpecificFunctor< T >::Call ( )
inlineoverridevirtual

call using function

< override function "Call"

Implements TFunctor.

◆ operator()()

template<class T >
void TSpecificFunctor< T >::operator() ( )
inlineoverridevirtual

call using operator

< override operator "()"

Implements TFunctor.

◆ SetObj()

template<class T >
virtual void TSpecificFunctor< T >::SetObj ( T *  obj)
inlinevirtual

< Set the object to the pointer

Member Data Documentation

◆ fpt

template<class T >
void(T::* TSpecificFunctor< T >::fpt) ()
private

pointer to member function

◆ pt2Object

template<class T >
T* TSpecificFunctor< T >::pt2Object
private

pointer to object


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

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024