hgl 0.5.25
A compiler/interpreter suite for developing images
Static Public Member Functions | List of all members
HGL::Common::Singleton< T > Class Template Reference

Template providing the singleton pattern. More...

#include "singleton.h"

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

Static Public Member Functions

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

Detailed Description

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

Template providing the singleton pattern.

Template Parameters
Tclass which has to become a singleton
Author
Heiko Schäfer heiko.nosp@m.@hgl.nosp@m..rang.nosp@m.un.d.nosp@m.e

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