Go to the documentation of this file.
37 #ifndef _SINGLETON_H__
38 #define _SINGLETON_H__
43 #if OGRE_COMPILER == OGRE_COMPILER_MSVC
45 # pragma warning (disable : 4311)
46 # pragma warning (disable : 4312)
47 # pragma warning (disable : 4661)
50 #if defined ( OGRE_GCC_VISIBILITY )
51 # pragma GCC visibility push(default)
81 #if defined( _MSC_VER ) && _MSC_VER < 1200
99 #if defined ( OGRE_GCC_VISIBILITY )
100 # pragma GCC visibility pop
static T * getSingletonPtr(void)
Template class for creating single-instance global classes.
static T & getSingleton(void)
Singleton & operator=(const Singleton< T > &)
Private operator= .
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15