HGL::Common::Singleton< T > Class Template Reference
[Utility classes]

Template providing the singleton pattern. More...

#include <singleton.h>

Inheritance diagram for HGL::Common::Singleton< T >:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static T * getInstance ()
 Gets the single instance of T.

Detailed Description

template<class T>
class HGL::Common::Singleton< T >

Template providing the singleton pattern.

Template Parameters:
T class which has to become a singleton
Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Function Documentation

template<class T>
static T* HGL::Common::Singleton< T >::getInstance (  )  [static]

Gets the single instance of T.

Returns:
an instance of T

Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1