PixelLightAPI
.
|
Go to the source code of this file.
Functions | |
PL_WARNING_PUSH | PL_WARNING_DISABLE (4251) namespace PLCore |
PL_WARNING_PUSH PL_WARNING_DISABLE | ( | 4251 | ) |
Singleton template
Please note that the example above may not be compatible with each legacy compiler like GCC 4.2.1 used on Mac OS X 10.6. -> The C++11 feature "extern template" (C++11, see e.g. http://www2.research.att.com/~bs/C++0xFAQ.html#extern-templates) can only be used on modern compilers like GCC 4.6 -> In PixelLight itself, we can't break legacy compiler support, especially when only the singletons are responsible for the break -> As workaround, singleton implementations adding "GetInstance()" and "HasInstance()" within their interface
Returns the class instance
Returns whether or not there's an instance
Constructor
Destructor
Destruction guard, deletes a singleton on deinitialization
< Destroys the object on shutdown
< Pointer to the singleton instance, can be a null pointer
< Destruction flag - set only on shutdown
|