Loki::DeletableSingleton< T > Struct Template Reference
[Lifetime policies]

#include <Singleton.h>

List of all members.

Static Public Member Functions

static void ScheduleDestruction (T *, atexit_pfn_t pFun)
static void OnDeadReference ()
static void GracefulDelete ()
 delete singleton object manually

Static Protected Member Functions

static void atexitCallback ()

Static Protected Attributes

static atexit_pfn_t deleter
static bool isDead
static bool needCallback

Detailed Description

template<class T>
struct Loki::DeletableSingleton< T >

A DeletableSingleton allows the instantiated singleton to be destroyed at any time. The singleton can be reinstantiated at any time, even during program termination. If the singleton exists when the program terminates, it will be automatically deleted.

The singleton can be deleted manually:

Definition at line 417 of file Singleton.h.

The documentation for this struct was generated from the following file:
Generated on Sun Feb 25 16:52:46 2007 for Loki by  doxygen 1.5.1-p1