FreeRTOScpp
FreeRTOScpp::FunctionCallback< Tr, Tp1, Tp2 > Class Template Reference

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

#include <CallBack.h>

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

Public Member Functions

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

Protected Attributes

Tr(* m_fun )(Tp1, Tp2)
 

Detailed Description

template<class Tr = void, class Tp1 = void, class Tp2 = void>
class FreeRTOScpp::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>
FreeRTOScpp::FunctionCallback< Tr, Tp1, Tp2 >::FunctionCallback ( Tr(*)(Tp1, Tp2)  fun)
inline

◆ ~FunctionCallback()

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

Member Function Documentation

◆ callback()

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

◆ setFun()

template<class Tr = void, class Tp1 = void, class Tp2 = void>
void FreeRTOScpp::FunctionCallback< Tr, Tp1, Tp2 >::setFun ( Tr(*)(Tp1, Tp2)  fun)
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(* FreeRTOScpp::FunctionCallback< Tr, Tp1, Tp2 >::m_fun) (Tp1, Tp2)
protected

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