OGRE-Next: Ogre::Singleton< T > Class Template Reference

| OGRE-Next 3.0.0 Object-Oriented Graphics Rendering Engine

Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Ogre::Singleton< T > Class Template Reference
Core » General

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:

- OgreSingleton.h