Planeshift
Public Member Functions | Static Public Member Functions

Singleton< T > Class Template Reference

#include <singleton.h>

List of all members.

Public Member Functions

 Singleton (T *ptr)
 Singleton (void)
 ~Singleton ()

Static Public Member Functions

static T & GetSingleton (void)
static T * GetSingletonPtr (void)

Detailed Description

template<typename T>
class Singleton< T >

Definition at line 26 of file singleton.h.


Constructor & Destructor Documentation

template<typename T>
Singleton< T >::Singleton ( T *  ptr) [inline]

Definition at line 31 of file singleton.h.

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

Definition at line 38 of file singleton.h.

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

Definition at line 44 of file singleton.h.


Member Function Documentation

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

Definition at line 49 of file singleton.h.

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

Definition at line 53 of file singleton.h.


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