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: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
SingletonPtr< T > Struct Template Reference
[Platform]
Utility class for creating an using a singleton. More...
#include <SingletonPtr.h>
Public Member Functions | |
T * | get () |
Get a pointer to the underlying singleton. | |
T * | operator-> () |
Get a pointer to the underlying singleton. |
Detailed Description
template<class T>
struct SingletonPtr< T >
Utility class for creating an using a singleton.
- Note:
- Synchronization level: Thread safe
- : This class must only be used in a static context - this class must never be allocated or created on the stack.
- : This class is lazily initialized on first use. This class is a POD type so if it is not used it will be garbage collected.
Definition at line 74 of file SingletonPtr.h.
Member Function Documentation
T* get | ( | ) |
Get a pointer to the underlying singleton.
- Returns:
- A pointer to the singleton
Definition at line 81 of file SingletonPtr.h.
T* operator-> | ( | ) |
Get a pointer to the underlying singleton.
- Returns:
- A pointer to the singleton
Definition at line 100 of file SingletonPtr.h.
Generated on Tue Jul 12 2022 19:39:50 by
