Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
FunctionPointer0< R > Class Template Reference
A class for storing and calling a pointer to a static or member void function without arguments. More...
#include <FunctionPointer.h>
Inherits mbed::FunctionPointerBase< R >, and mbed::FunctionPointerBase< R >.
Public Member Functions | |
FunctionPointer0 (static_fp function=0) | |
Create a FunctionPointer, attaching a static function. | |
template<typename T > | |
FunctionPointer0 (T *object, R(T::*member)(void)) | |
Create a FunctionPointer, attaching a member function. | |
void | attach (static_fp function) |
Attach a static function. | |
template<typename T > | |
void | attach (T *object, R(T::*member)(void)) |
Attach a member function. | |
R | call () |
Call the attached static or member function. | |
FunctionPointer0 (static_fp function=0) | |
Create a FunctionPointer, attaching a static function. | |
template<typename T > | |
FunctionPointer0 (T *object, R(T::*member)(void)) | |
Create a FunctionPointer, attaching a member function. | |
void | attach (static_fp function) |
Attach a static function. | |
template<typename T > | |
void | attach (T *object, R(T::*member)(void)) |
Attach a member function. | |
R | call () |
Call the attached static or member function. | |
virtual void | clear () |
Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL) | |
virtual void | clear () |
Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL) | |
Protected Member Functions | |
R | call (void *arg) |
Calls the member pointed to by object::member or (function)object. |
Detailed Description
template<typename R>
class mbed::FunctionPointer0< R >
A class for storing and calling a pointer to a static or member void function without arguments.
Definition at line 31 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.
Constructor & Destructor Documentation
FunctionPointer0 | ( | static_fp | function = 0 ) |
Create a FunctionPointer, attaching a static function.
- Parameters:
-
function The void static function to attach (default is none)
Definition at line 40 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.
FunctionPointer0 | ( | T * | object, |
R(T::*)(void) | 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 void member function to attach
Definition at line 52 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.
FunctionPointer0 | ( | static_fp | function = 0 ) |
Create a FunctionPointer, attaching a static function.
- Parameters:
-
function The void static function to attach (default is none)
Definition at line 40 of file test/mbedclient/utest/common/FunctionPointer.h.
FunctionPointer0 | ( | T * | object, |
R(T::*)(void) | 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 void member function to attach
Definition at line 52 of file test/mbedclient/utest/common/FunctionPointer.h.
Member Function Documentation
void attach | ( | static_fp | function ) |
Attach a static function.
- Parameters:
-
function The void static function to attach (default is none)
Definition at line 62 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.
void attach | ( | T * | object, |
R(T::*)(void) | 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 void member function to attach
Definition at line 73 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.
void attach | ( | T * | object, |
R(T::*)(void) | 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 void member function to attach
Definition at line 73 of file test/mbedclient/utest/common/FunctionPointer.h.
void attach | ( | static_fp | function ) |
Attach a static function.
- Parameters:
-
function The void static function to attach (default is none)
Definition at line 62 of file test/mbedclient/utest/common/FunctionPointer.h.
R call | ( | void * | arg ) | [protected, inherited] |
Calls the member pointed to by object::member or (function)object.
- Parameters:
-
arg
- Returns:
Definition at line 66 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointerBase.h.
R call | ( | void | ) |
Call the attached static or member function.
Definition at line 81 of file test/mbedclient/utest/common/FunctionPointer.h.
R call | ( | void | ) |
Call the attached static or member function.
Definition at line 81 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.
virtual void clear | ( | void | ) | [virtual, inherited] |
Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL)
Definition at line 36 of file test/mbedclient/utest/common/FunctionPointerBase.h.
virtual void clear | ( | void | ) | [virtual, inherited] |
Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL)
Definition at line 36 of file mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointerBase.h.
Generated on Tue Jul 12 2022 21:20:34 by
