1 #ifndef _BASE_SINGLETON_H_ 2 #define _BASE_SINGLETON_H_ 6 template<
class Derived>
11 static Derived* msInstance;
23 msInstance =
new Derived();
58 #endif // _BASE_SINGLETON_H_ Definition: Singleton.hpp:7
virtual ~Singleton()
Definition: Singleton.hpp:29
friend class CGuard
Definition: Singleton.hpp:49
Definition: logging_iostream_style.h:48
~CGuard()
Definition: Singleton.hpp:38
Singleton()
Definition: Singleton.hpp:14
Definition: Singleton.hpp:35
static Derived * getInstance()
Definition: Singleton.hpp:17