Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::Singleton< _T, _Mutex > Class Template Reference
[Core library]

Singleton base template class. More...

#include <psingleton.h>

List of all members.

Public Types

typedef LockTraits< _Mutex
>::MutexType 
MutexType
typedef LockTraits< _Mutex
>::WriteLock 
WriteLock

Static Public Member Functions

_T & instance ()

Protected Member Functions

 Singleton ()
 ~Singleton ()


Detailed Description

template<typename _T, class _Mutex = VoidMutex>
class P::Singleton< _T, _Mutex >

Singleton base template class.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 33 of file psingleton.h.


Member Typedef Documentation

template<typename _T, class _Mutex = VoidMutex>
typedef LockTraits<_Mutex>::MutexType P::Singleton< _T, _Mutex >::MutexType
 

Definition at line 35 of file psingleton.h.

template<typename _T, class _Mutex = VoidMutex>
typedef LockTraits<_Mutex>::WriteLock P::Singleton< _T, _Mutex >::WriteLock
 

Definition at line 36 of file psingleton.h.

Referenced by P::Singleton< MimeTypeDb, CriticalSection >::instance().


Constructor & Destructor Documentation

template<typename _T, class _Mutex = VoidMutex>
P::Singleton< _T, _Mutex >::Singleton  )  [inline, protected]
 

Definition at line 48 of file psingleton.h.

template<typename _T, class _Mutex = VoidMutex>
P::Singleton< _T, _Mutex >::~Singleton  )  [inline, protected]
 

Definition at line 49 of file psingleton.h.


Member Function Documentation

template<typename _T, class _Mutex = VoidMutex>
_T& P::Singleton< _T, _Mutex >::instance  )  [inline, static]
 

Definition at line 38 of file psingleton.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:36 2004 for P::Classes by doxygen 1.3.3