50 #ifndef COMMON_SINGLETON_H 51 #define COMMON_SINGLETON_H 53 #include <boost/noncopyable.hpp> 76 #if defined (_WIN32_WCE) || defined (_MSC_VER) || defined (__WINS__) 105 T::destroyInstance();
122 #define DECLARE_SINGLETON(T) \ 124 template<> T *Singleton<T>::_singleton = 0; \ 125 } // End of namespace Common 129 #endif // COMMON_SINGLETON_H
static T * makeInstance()
The default object factory used by the template class Singleton.
Generic template base class for implementing the singleton design pattern.
static void destroyInstance()
Aurora::TwoDARegistry * _singleton
Singleton< T > & operator=(const Singleton< T > &)