Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::util::Automatic< T > Class Template Reference

Inheritance diagram for ONE::util::Automatic< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T>
class ONE::util::Automatic< T >

automatic singleton Lifetime policy

Singleton classes created with this policy are automatically created on first access and deleted on system shutdown. Note that no shudown order is defined. The OrderedAutomatic policy is provided for cases where singletons need to be shut down is a well defined order.

Author:
Daniel Seibert


Static Public Member Functions

static void destroyInstance ()
 may be used to manually destroy the singleton instance

Static Protected Member Functions

static void destroyedError ()
static void initInstance ()

Classes

struct  Mgr


Member Function Documentation

template<class T>
void ONE::util::Automatic< T >::destroyedError  )  [inline, static, protected]
 

template<class T>
void ONE::util::Automatic< T >::destroyInstance  )  [inline, static]
 

may be used to manually destroy the singleton instance

If this function is not called, the instance is destroyed automatically during shutdown.

template<class T>
void ONE::util::Automatic< T >::initInstance  )  [inline, static, protected]
 


Generated on Wed Sep 7 19:03:30 2005 for ONEngine by  doxygen 1.4.3