HyperspaceExplorer 0.7.1
Public Types | Static Public Member Functions | Private Types | Static Private Member Functions | Static Private Attributes
Loki::SingletonHolder< T, CreationPolicy > Class Template Reference

Provides Singleton amenities for a type T To protect that type from spurious instantiations, you have to protect it yourself. More...

#include <SingletonHolder.h>

List of all members.

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?

Detailed Description

template<typename T, template< class > class CreationPolicy = CreateUsingNew>
class Loki::SingletonHolder< T, CreationPolicy >

Provides Singleton amenities for a type T To protect that type from spurious instantiations, you have to protect it yourself.

Parameters:
CreationPolicyCreation policy, default: CreateUsingNew
LifetimePolicyLifetime policy, default: DefaultLifetime,
ThreadingModelThreading policy, default: LOKI_DEFAULT_THREADING_NO_OBJ_LEVEL

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo