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

Derived Callback to call to a function. More...

#include <CallBack.h>

Inheritance diagram for FunctionCallback< Tr, Tp1, Tp2 >:
Collaboration diagram for FunctionCallback< Tr, Tp1, Tp2 >:

Public Member Functions

 FunctionCallback (Tr(*fun)(Tp1, Tp2))
 
virtual ~FunctionCallback ()
 
virtual void callback (void, void)=0
 
virtual Tr callback (Tp1 parm1, Tp2 parm2)
 
void setFun (Tr(*fun)(Tp1, Tp2))
 Change the Memberfunction for the Callback.
 

Protected Attributes

Tr(* m_fun )(Tp1, Tp2)
 

Detailed Description

template<class Tr = void, class Tp1 = void, class Tp2 = void>
class FunctionCallback< Tr, Tp1, Tp2 >

Derived Callback to call to a function.

Template Parameters
Tr
Tp1
Tp2

Constructor & Destructor Documentation

◆ FunctionCallback()

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

◆ ~FunctionCallback()

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

Member Function Documentation

◆ callback() [1/2]

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

◆ callback() [2/2]

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

◆ setFun()

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

Change the Memberfunction for the Callback.

Parameters
fun

Member Data Documentation

◆ m_fun

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

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