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
virtual ~SingletonT()
Destructor.
Definition: SingletonT.hh:45
SingletonT()
Constructor.
Definition: SingletonT.hh:42
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48