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.
Fork of mbedConnectorInterface by
InstancePointerTable Class Reference
InstancePointerTable class. More...
#include <InstancePointerTable.h>
Public Member Functions | |
| InstancePointerTable (const Logger *logger=NULL) | |
| Default constructor. | |
| virtual | ~InstancePointerTable () |
| Destructor. | |
| void | add (string key, void *instance) |
| Add pointer to the instance table. | |
| void * | get (string key) |
| Get a instance pointer index by the name of the key. | |
| void | setLogger (const Logger *logger) |
| Set the Logger instance. | |
Detailed Description
InstancePointerTable class.
Definition at line 43 of file InstancePointerTable.h.
Constructor & Destructor Documentation
| InstancePointerTable | ( | const Logger * | logger = NULL ) |
Default constructor.
- Parameters:
-
logger input the logger instance
Definition at line 26 of file InstancePointerTable.cpp.
| ~InstancePointerTable | ( | ) | [virtual] |
Destructor.
Definition at line 32 of file InstancePointerTable.cpp.
Member Function Documentation
| void add | ( | string | key, |
| void * | instance | ||
| ) |
Add pointer to the instance table.
- Parameters:
-
key input the key for the new pointer instance input the instance pointer to save
Definition at line 37 of file InstancePointerTable.cpp.
| void * get | ( | string | key ) |
Get a instance pointer index by the name of the key.
- Parameters:
-
key input the key to use for the lookup
- Returns:
- the instance pointer if found or NULL if not found
Definition at line 59 of file InstancePointerTable.cpp.
| void setLogger | ( | const Logger * | logger ) |
Set the Logger instance.
- Parameters:
-
logger input the logger instance
Definition at line 101 of file InstancePointerTable.cpp.
Generated on Wed Jul 13 2022 02:58:57 by
1.7.2
