Singleton< T > Class Template Reference

#include <SingletonDeclaration.h>

Inherited by Config, Core, Error, License, and Syslog.

Inheritance diagram for Singleton< T >:

Inheritance graph
[legend]
Collaboration diagram for Singleton< T >:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static T * instance ()

Protected Member Functions

 Singleton ()
virtual ~Singleton ()

Private Member Functions

 Singleton (const Singleton &source)

Static Private Attributes

static T * _instance
static bool _fabricaLocked

Detailed Description

template<class T>
class Singleton< T >

Definition at line 11 of file SingletonDeclaration.h.


Constructor & Destructor Documentation

template<class T>
Singleton< T >::Singleton (  )  [inline, protected]

Definition at line 20 of file SingletonDeclaration.h.

template<class T>
Singleton< T >::~Singleton (  )  [protected, virtual]

Definition at line 56 of file Singleton.h.

References Singleton< T >::_fabricaLocked, and Singleton< T >::_instance.

template<class T>
Singleton< T >::Singleton ( const Singleton< T > &  source  )  [inline, private]

Definition at line 25 of file SingletonDeclaration.h.


Member Function Documentation

template<class T>
T * Singleton< T >::instance (  )  [static]

Definition at line 27 of file Singleton.h.

References Singleton< T >::_fabricaLocked, Singleton< T >::_instance, ERROR_BACKTRACE(), ERROR_FATAL, FAILED(), MSG_OBJECT_CANNOT_CREATE, and MSG_UNPERMITTED_RECURSION.

Referenced by CONFIG(), CORE(), ERR(), Core::fork(), Core::kill(), Core::notify(), Core::spawn(), and SYSLOG().


Member Data Documentation

template<class T>
T * Singleton< T >::_instance [static, private]

Definition at line 25 of file SingletonDeclaration.h.

Referenced by Singleton< T >::instance(), and Singleton< T >::~Singleton().

template<class T>
bool Singleton< T >::_fabricaLocked [static, private]

Definition at line 28 of file SingletonDeclaration.h.

Referenced by Singleton< T >::instance(), and Singleton< T >::~Singleton().


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:54 2007 for Pylon Application Platform by  doxygen 1.5.1