OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::Singleton< T > Class Template Reference

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

#include <OgreSingleton.h>

Public Member Functions

 Singleton ()
 
 ~Singleton ()
 

Static Public Member Functions

static T & getSingleton ()
 
static T * getSingletonPtr ()
 

Detailed Description

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

Template class for creating single-instance global classes.

Constructor & Destructor Documentation

◆ Singleton()

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

◆ ~Singleton()

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

Member Function Documentation

◆ getSingleton()

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

◆ getSingletonPtr()

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

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