36 #ifndef _CEGUISingleton_h_
37 #define _CEGUISingleton_h_
39 #include "CEGUIBase.h"
73 assert( !ms_Singleton );
74 ms_Singleton =
static_cast<T*
>(
this);
77 { assert( ms_Singleton ); ms_Singleton = 0; }
78 static T& getSingleton(
void )
79 { assert( ms_Singleton );
return ( *ms_Singleton ); }
80 static T* getSingletonPtr(
void )
81 {
return ( ms_Singleton ); }
92 #endif // end of guard _CEGUISingleton_h_
Definition: CEGUISingleton.h:56