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.
Dependents: EEPROMWrite Full-Project
Fork of mbed-src by
Diff: api/FunctionPointer.h
- Revision:
- 15:4892fe388435
- Parent:
- 13:0645d8841f51
- Child:
- 212:34d62c0b2af6
--- a/api/FunctionPointer.h Mon Aug 05 14:54:27 2013 +0000
+++ b/api/FunctionPointer.h Wed Aug 07 16:43:59 2013 +0300
@@ -20,6 +20,8 @@
namespace mbed {
+typedef void (*pvoidf_t)(void);
+
/** A class for storing and calling a pointer to a static or member void function
*/
class FunctionPointer {
@@ -64,6 +66,14 @@
*/
void call();
+ pvoidf_t get_function() const {
+ return (pvoidf_t)_function;
+ }
+
+#ifdef MBED_OPERATORS
+ void operator ()(void);
+#endif
+
private:
template<typename T>
static void membercaller(void *object, char *member) {
