utils::Singleton< T > Class Template Reference

An abstract Meyer's singleton class. More...

#include <singleton.h>

List of all members.

Static Public Member Functions

static T & instance (void)
 Create an instance of Singleton.

Protected Member Functions

 Singleton (void) throw ()
 Default constructor.
virtual ~Singleton (void) throw ()
 Destructor.


Detailed Description

template<typename T>
class utils::Singleton< T >

An abstract Meyer's singleton class.

Definition at line 32 of file singleton.h.


Member Function Documentation

template<typename T>
static T& utils::Singleton< T >::instance ( void   )  [inline, static]

Create an instance of Singleton.

Returns:
the unique instance of Singleton.

Definition at line 41 of file singleton.h.


The documentation for this class was generated from the following file:

Generated on Sun Apr 26 17:30:47 2009 for TMW Server Collection by  doxygen 1.5.5