Templates::Singleton< T > Class Template Reference

Implementation of a generic singleton. More...

#include <singleton.h>

List of all members.

Static Public Member Functions

static T & instance ()
 Returns instance of the holding object.

Private Member Functions

 Singleton ()
 ~Singleton ()
 Singleton (const Singleton &)
Singletonoperator= (const Singleton &)


Detailed Description

template<class T>
class Templates::Singleton< T >

Implementation of a generic singleton.

Implements "singleton" design pattern - it is used to restrict instantiation of a class to one object only.


Constructor & Destructor Documentation

template<class T>
Templates::Singleton< T >::Singleton (  )  [private]

template<class T>
Templates::Singleton< T >::~Singleton (  )  [private]

template<class T>
Templates::Singleton< T >::Singleton ( const Singleton< T > &   )  [private]


Member Function Documentation

template<class T>
Singleton& Templates::Singleton< T >::operator= ( const Singleton< T > &   )  [private]

template<class T>
static T& Templates::Singleton< T >::instance (  )  [inline, static]

Returns instance of the holding object.

This function always returns a reference to the same object.


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

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6