FreeRTOScpp
Loading...
Searching...
No Matches
MemberFunctionCallback< Tc, Tr, Tp1, Tp2 > Class Template Referenceabstract

#include <CallBack.h>

Inheritance diagram for MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >:
Collaboration diagram for MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >:

Public Member Functions

 MemberFunctionCallback (Tc *obj, Tr(Tc::*fun)(Tp1, Tp2))
 
virtual ~MemberFunctionCallback ()
 
virtual void callback (void, void)=0
 
virtual Tr callback (Tp1 parm1, Tp2 parm2)
 
void setFun (Tr(Tc::*fun)(Tp1, Tp2))
 Change the Memberfunction for the Callback.
 
void setObj (Tc *obj)
 Change the Object for the Callback.
 

Protected Attributes

Tr(Tc::* m_fun )(Tp1, Tp2)
 
Tc * m_obj
 

Constructor & Destructor Documentation

◆ MemberFunctionCallback()

template<class Tc , class Tr = void, class Tp1 = void, class Tp2 = void>
MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >::MemberFunctionCallback ( Tc * obj,
Tr(Tc::* fun )(Tp1, Tp2) )
inline

◆ ~MemberFunctionCallback()

template<class Tc , class Tr = void, class Tp1 = void, class Tp2 = void>
virtual MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >::~MemberFunctionCallback ( )
inlinevirtual

Member Function Documentation

◆ callback() [1/2]

virtual void CallBack< void, void, void >::callback ( void ,
void  )
pure virtualinherited

◆ callback() [2/2]

template<class Tc , class Tr = void, class Tp1 = void, class Tp2 = void>
virtual Tr MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >::callback ( Tp1 parm1,
Tp2 parm2 )
inlinevirtual

◆ setFun()

template<class Tc , class Tr = void, class Tp1 = void, class Tp2 = void>
void MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >::setFun ( Tr(Tc::* fun )(Tp1, Tp2))
inline

Change the Memberfunction for the Callback.

Parameters
fun

◆ setObj()

template<class Tc , class Tr = void, class Tp1 = void, class Tp2 = void>
void MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >::setObj ( Tc * obj)
inline

Change the Object for the Callback.

Parameters
objthe new object

Member Data Documentation

◆ m_fun

template<class Tc , class Tr = void, class Tp1 = void, class Tp2 = void>
Tr(Tc::* MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >::m_fun) (Tp1, Tp2)
protected

◆ m_obj

template<class Tc , class Tr = void, class Tp1 = void, class Tp2 = void>
Tc* MemberFunctionCallback< Tc, Tr, Tp1, Tp2 >::m_obj
protected

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