|
HyperspaceExplorer 0.7.1
|
Provides Singleton amenities for a type T To protect that type from spurious instantiations, you have to protect it yourself. More...
#include <SingletonHolder.h>
Public Types | |
| typedef T | ObjectType |
| Type of the singleton object. | |
Static Public Member Functions | |
| static T & | Instance () |
| Returns a reference to singleton object. | |
Private Types | |
| typedef T * | PtrInstanceType |
| pointer to singleton object | |
Static Private Member Functions | |
| static void | MakeInstance () |
| create singleton object | |
| static void | DestroySingleton () |
| destroy singleton object | |
Static Private Attributes | |
| static PtrInstanceType | pInstance_ = 0 |
| pointer to singleton object | |
| static bool | destroyed_ = false |
| is singleton object destroyed? | |
Provides Singleton amenities for a type T To protect that type from spurious instantiations, you have to protect it yourself.
| CreationPolicy | Creation policy, default: CreateUsingNew |
| LifetimePolicy | Lifetime policy, default: DefaultLifetime, |
| ThreadingModel | Threading policy, default: LOKI_DEFAULT_THREADING_NO_OBJ_LEVEL |
1.7.4
-
Hosted by