Public Member Functions | Private Member Functions | Private Attributes
karto::Singleton< T > Class Template Reference

#include <Karto.h>

List of all members.

Public Member Functions

T * Get ()
 Singleton ()
virtual ~Singleton ()

Private Member Functions

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

Private Attributes

T * m_pPointer

Detailed Description

template<class T>
class karto::Singleton< T >

Singleton class ensures only one instance of T is created

Definition at line 190 of file Karto.h.


Constructor & Destructor Documentation

template<class T>
karto::Singleton< T >::Singleton ( ) [inline]

Constructor

Definition at line 196 of file Karto.h.

template<class T>
virtual karto::Singleton< T >::~Singleton ( ) [inline, virtual]

Destructor

Definition at line 204 of file Karto.h.

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

Member Function Documentation

template<class T>
T* karto::Singleton< T >::Get ( ) [inline]

Gets the singleton

Returns:
singleton

Definition at line 213 of file Karto.h.

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

Member Data Documentation

template<class T>
T* karto::Singleton< T >::m_pPointer [private]

Definition at line 227 of file Karto.h.


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


open_karto
Author(s):
autogenerated on Thu Jun 6 2019 21:02:57