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

Singleton< T, Creator > Class Template Reference

#include </home/clem/local/src/opie/noncore/multimedia/opieplayer2/singleton.h>

Inheritance diagram for Singleton< T, Creator >:

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

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static T & self ()

Protected Member Functions

 Singleton ()
 ~Singleton ()

Private Member Functions

 Singleton (const Singleton< T, Creator > &rhs)
Singleton< T, Creator > & operator= (const Singleton< T, Creator > &rhs)

Static Private Attributes

static T * s_self = 0
static ThreadUtil::Mutex s_guard

template<class T, template< class > class Creator = DefaultSingletonCreator>
class Singleton< T, Creator >


Constructor & Destructor Documentation

template<class T, template< class > class Creator = DefaultSingletonCreator>
Singleton< T, Creator >::Singleton  )  [inline, protected]
 

Definition at line 56 of file singleton.h.

template<class T, template< class > class Creator = DefaultSingletonCreator>
Singleton< T, Creator >::~Singleton  )  [inline, protected]
 

Definition at line 58 of file singleton.h.

template<class T, template< class > class Creator = DefaultSingletonCreator>
Singleton< T, Creator >::Singleton const Singleton< T, Creator > &  rhs  )  [private]
 


Member Function Documentation

template<class T, template< class > class Creator = DefaultSingletonCreator>
Singleton<T, Creator>& Singleton< T, Creator >::operator= const Singleton< T, Creator > &  rhs  )  [private]
 

template<class T, template< class > class Creator = DefaultSingletonCreator>
static T& Singleton< T, Creator >::self  )  [inline, static]
 

Definition at line 45 of file singleton.h.


Member Data Documentation

template<class T, template< class > class Creator = DefaultSingletonCreator>
ThreadUtil::Mutex Singleton< T, Creator >::s_guard [static, private]
 

Definition at line 73 of file singleton.h.

Referenced by Singleton< SkinCache >::self().

template<class T, template< class > class Creator = DefaultSingletonCreator>
T * Singleton< T, Creator >::s_self = 0 [static, private]
 

Definition at line 70 of file singleton.h.

Referenced by Singleton< SkinCache >::self(), Singleton< SkinCache >::Singleton(), and Singleton< SkinCache >::~Singleton().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:51:57 2005 for OPIE by  doxygen 1.4.2