|
FreeNOS
|
Singleton design pattern: only one instance is allowed. More...
#include <Singleton.h>
Public Member Functions | |
| WeakSingleton (T *obj) | |
| Constructor. More... | |
Static Public Member Functions | |
| static T * | instance () |
| Retrieve the instance. More... | |
Static Private Attributes | |
| static T * | m_instance = 0 |
| One and only instance. More... | |
Singleton design pattern: only one instance is allowed.
The WeakSingleton follows weaker rules than the StrictSingleton:
Definition at line 69 of file Singleton.h.
|
inline |
|
inlinestatic |
Retrieve the instance.
Definition at line 86 of file Singleton.h.
1.8.17