![]() |
#include <utils/KillableSingleton.hpp>
Static Public Member Functions | |
static T * | instance () |
static void | kill () |
Protected Member Functions | |
KillableSingleton () | |
~KillableSingleton () | |
Static Protected Attributes | |
static T * | mp_Instance |
Singleton template class implementing a killable singleton design. This implementation is not thread safe.
Example of use to design an Example class as a killable singleton
|
inlineprotected |
|
inlineprotected |
|
inlinestatic |
Returns a pointer to the singleton object. Instantiates the class if it not has not been instantiated before or it has been killed before.
|
inlinestatic |
Kills the singleton class
|
staticprotected |