OGRE  1.9.0
Public Member Functions | Static Public Member Functions | Static Protected Attributes | Private Member Functions | List of all members
Ogre::Singleton< T > Class Template Reference

Template class for creating single-instance global classes. More...

#include <OgreSingleton.h>

Public Member Functions

 Singleton (void)
 
 ~Singleton (void)
 

Static Public Member Functions

static TgetSingleton (void)
 
static TgetSingletonPtr (void)
 

Static Protected Attributes

static TmsSingleton
 

Private Member Functions

 Singleton (const Singleton< T > &)
 Explicit private copy constructor.
 
Singletonoperator= (const Singleton< T > &)
 Private operator= .
 

Detailed Description

template<typename T>
class Ogre::Singleton< T >

Template class for creating single-instance global classes.

Definition at line 64 of file OgreSingleton.h.

Constructor & Destructor Documentation

◆ Singleton() [1/2]

template<typename T >
Ogre::Singleton< T >::Singleton ( const Singleton< T > &  )
private

Explicit private copy constructor.

This is a forbidden operation.

◆ Singleton() [2/2]

template<typename T >
Ogre::Singleton< T >::Singleton ( void  )

Definition at line 78 of file OgreSingleton.h.

References Ogre::Singleton< T >::msSingleton.

◆ ~Singleton()

template<typename T >
Ogre::Singleton< T >::~Singleton ( void  )

Definition at line 88 of file OgreSingleton.h.

References Ogre::Singleton< T >::msSingleton.

Member Function Documentation

◆ getSingleton()

template<typename T >
static T & Ogre::Singleton< T >::getSingleton ( void  )
static

Definition at line 90 of file OgreSingleton.h.

References Ogre::Singleton< T >::msSingleton.

◆ getSingletonPtr()

template<typename T >
static T * Ogre::Singleton< T >::getSingletonPtr ( void  )
static

Definition at line 92 of file OgreSingleton.h.

References Ogre::Singleton< T >::msSingleton.

◆ operator=()

template<typename T >
Singleton & Ogre::Singleton< T >::operator= ( const Singleton< T > &  )
private

Private operator= .

This is a forbidden operation.

Member Data Documentation

◆ msSingleton

template<typename T >
T* Ogre::Singleton< T >::msSingleton
staticprotected

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