59 storeInstance(T::staticMetaObject.className(),
this);
64 storeInstance(T::staticMetaObject.className(),
nullptr);
73 return static_cast<T*
>(getInstance(T::staticMetaObject.className()));
bool preDestroy()
Tries to call preDestroy() on the represented singleton. Does nothing if the represented class is a c...
Definition: startup_helper.cpp:352
bool postInit()
Tries to call postInit() on the represented singleton. Does nothing if the represented class is a com...
Definition: startup_helper.cpp:339
The ObjectState class represents the State of a Singleton or Component and helps calling create/delet...
Definition: startup_helper_p.h:11
static T * instance()
Returns the current instance of the singleton.
Definition: singleton.h:71
The AbstractSingleton class defines functions that every singleton must implement Every Singleton mus...
Definition: singleton.h:12
The SingletonStorage class is a helper to provide a unique, once-per-application, shared-across-all-p...
Definition: singleton.h:38
The Singleton Template figures as baseclass for all Singletons. It provides a instance() functions wh...
Definition: singleton.h:54