67 static void killSingleton() {
if(s_instance !=
nullptr)
delete s_instance;}
93 std::atexit(killSingleton);
96 return static_cast<T*
>(s_instance);
103 #endif // __SINGLETON_H__ main definition of types and namespace
implementation files for RibExport class
virtual ~Singleton()
Destructor.
static T * instance()
Get the instance.
static void killSingleton()
static T * s_instance
unique instance of the singleton
Singleton template added to NGL framework 20/04/10 by jmacey.