Loki::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel > Class Template Reference
[Singleton]

#include <Singleton.h>

List of all members.

Static Public Member Functions

static T & Instance ()
 Returns a reference to singleton object.


Detailed Description

template<typename T, template< class > class CreationPolicy = CreateUsingNew, template< class > class LifetimePolicy = DefaultLifetime, template< class > class ThreadingModel = ::Loki::SingleThreaded>
class Loki::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel >

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

Parameters:
CreationPolicy Creation policy, default: CreateUsingNew
LifetimePolicy Lifetime policy, default: DefaultLifetime,
ThreadingModel Threading policy, default: LOKI_DEFAULT_THREADING_NO_OBJ_LEVEL


The documentation for this class was generated from the following file:
Generated on Mon Jan 9 09:34:36 2006 for Loki by  doxygen 1.4.5