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;
Singleton template class.
Definition: SingletonT.hh:33
virtual ~SingletonT()
Destructor.
Definition: SingletonT.hh:45
SingletonT()
Constructor.
Definition: SingletonT.hh:42
static T * Instance()
Get an instance of the singleton.
Definition: SingletonT.hh:36