22 #ifndef _SINGLETONT_HH_
23 #define _SINGLETONT_HH_
38 return &GetInstance();
48 private:
static T &GetInstance()
51 return static_cast<T &
>(t);
55 private:
static T &myself;
static T * Instance()
Get an instance of the singleton.
Definition: SingletonT.hh:36
Singleton template class.
Definition: SingletonT.hh:33
#define GZ_COMMON_VISIBLE
Definition: system.hh:84
virtual ~SingletonT()
Destructor.
Definition: SingletonT.hh:45
SingletonT()
Constructor.
Definition: SingletonT.hh:42