Radio Structures in OOP

Dependencies:   mbed mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

FunctionPointerRJ Class Reference

FunctionPointerRJ Class Reference

A class for storing and calling a pointer to a static or member void function. More...

#include <FunctionPointerRJ.h>

Public Member Functions

 FunctionPointerRJ (void(*function)(void)=0)
 Create a FunctionPointer, attaching a static function.
template<typename T >
 FunctionPointerRJ (T *object, void(T::*member)(void))
 Create a FunctionPointer, attaching a member function.
void attach (void(*function)(void)=0)
 Attach a static function.
template<typename T >
void attach (T *object, void(T::*member)(void))
 Attach a member function.
template<typename T >
void attach (T *object, void(T::*member)(RTP_t *))
 Attach a member function.
void call ()
 Call the attached static or member function.

Detailed Description

A class for storing and calling a pointer to a static or member void function.

Definition at line 26 of file FunctionPointerRJ.h.


Constructor & Destructor Documentation

FunctionPointerRJ ( void(*)(void)  function = 0 )

Create a FunctionPointer, attaching a static function.

Parameters:
functionThe void static function to attach (default is none)

Definition at line 18 of file FunctionPointerRJ.cpp.

FunctionPointerRJ ( T *  object,
void(T::*)(void)  member 
)

Create a FunctionPointer, attaching a member function.

Parameters:
objectThe object pointer to invoke the member function on (i.e. the this pointer)
functionThe address of the void member function to attach

Definition at line 42 of file FunctionPointerRJ.h.


Member Function Documentation

void attach ( void(*)(void)  function = 0 )

Attach a static function.

Parameters:
functionThe void static function to attach (default is none)

Definition at line 26 of file FunctionPointerRJ.cpp.

void attach ( T *  object,
void(T::*)(void)  member 
)

Attach a member function.

Parameters:
objectThe object pointer to invoke the member function on (i.e. the this pointer)
functionThe address of the void member function to attach

Definition at line 60 of file FunctionPointerRJ.h.

void attach ( T *  object,
void(T::*)(RTP_t *)  member 
)

Attach a member function.

Parameters:
objectThe object pointer to invoke the member function on (i.e. the this pointer)
functionThe address of the void member function to attach

Definition at line 73 of file FunctionPointerRJ.h.

void call ( void   )

Call the attached static or member function.

Definition at line 44 of file FunctionPointerRJ.cpp.