Singleton< T > Class Template Reference

#include <Singleton.h>

Collaboration diagram for Singleton< T >:
[legend]

List of all members.

Static Public Member Functions

static void Create ()
static void Release ()
static T & Get ()

Protected Member Functions

 Singleton ()
virtual ~Singleton ()


Detailed Description

template<typename T>
class Singleton< T >

Class Singleton Generic class for design pattern Singleton.
Author:
Adrian Gaudebert - adrian.gaudebert@gmail.com

Simon Stephan - s.stephan88@gmail.com


Constructor & Destructor Documentation

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

Default constructor

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

Destructor


Member Function Documentation

template<typename T>
static void Singleton< T >::Create (  )  [inline, static]

Create the instance

template<typename T>
static T& Singleton< T >::Get (  )  [inline, static]

Return a reference to the instance

template<typename T>
static void Singleton< T >::Release (  )  [inline, static]

Delete the instance


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

Generated on Mon Jan 19 22:14:51 2009 for saMP by  doxygen 1.5.8