mbed library sources for airmote
Fork of mbed-src by
FunctionPointerArg1< R, A1 > Class Template Reference
A class for storing and calling a pointer to a static or member function. More...
#include <FunctionPointer.h>
Public Member Functions | |
FunctionPointerArg1 (R(*function)(A1)=0) | |
Create a FunctionPointer, attaching a static function. | |
template<typename T > | |
FunctionPointerArg1 (T *object, R(T::*member)(A1)) | |
Create a FunctionPointer, attaching a member function. | |
void | attach (R(*function)(A1)) |
Attach a static function. | |
template<typename T > | |
void | attach (T *object, R(T::*member)(A1)) |
Attach a member function. | |
R | call (A1 a) |
Call the attached static or member function. | |
Data Fields | |
R(*)() | get_function (A1) |
Get registered static function. |
Detailed Description
template<typename R, typename A1>
class mbed::FunctionPointerArg1< R, A1 >
A class for storing and calling a pointer to a static or member function.
Definition at line 29 of file FunctionPointer.h.
Constructor & Destructor Documentation
FunctionPointerArg1 | ( | R(*)(A1) | function = 0 ) |
Create a FunctionPointer, attaching a static function.
- Parameters:
-
function The static function to attach (default is none)
Definition at line 35 of file FunctionPointer.h.
FunctionPointerArg1 | ( | T * | object, |
R(T::*)(A1) | member | ||
) |
Create a FunctionPointer, attaching a member function.
- Parameters:
-
object The object pointer to invoke the member function on (i.e. the this pointer) function The address of the member function to attach
Definition at line 45 of file FunctionPointer.h.
Member Function Documentation
void attach | ( | R(*)(A1) | function ) |
Attach a static function.
- Parameters:
-
function The static function to attach (default is none)
Definition at line 53 of file FunctionPointer.h.
void attach | ( | T * | object, |
R(T::*)(A1) | member | ||
) |
Attach a member function.
- Parameters:
-
object The object pointer to invoke the member function on (i.e. the this pointer) function The address of the member function to attach
Definition at line 64 of file FunctionPointer.h.
R call | ( | A1 | a ) |
Call the attached static or member function.
Definition at line 72 of file FunctionPointer.h.
Field Documentation
R(*)() get_function(A1) |
Get registered static function.
Definition at line 83 of file FunctionPointer.h.
Generated on Tue Jul 12 2022 16:19:21 by 1.7.2