32#ifndef ETL_SINGLETON_BASE_INCLUDED
33#define ETL_SINGLETON_BASE_INCLUDED
116 template <
typename T>
136 return (m_self != ETL_NULLPTR);
157 m_self = ETL_NULLPTR;
169 T* singleton_base<T>::m_self = ETL_NULLPTR;
Singleton instance already exists.
Definition singleton_base.h:77
Base singleton error exception.
Definition singleton_base.h:51
Singleton not created error exception.
Definition singleton_base.h:64
Definition singleton_base.h:118
static bool is_valid()
Returns whether an instance has been attached to singleton<T> or not.
Definition singleton_base.h:134
~singleton_base()
Removes the internal reference to the instance passed in the constructor.
Definition singleton_base.h:155
singleton_base(T &theInstance)
Definition singleton_base.h:145
#define ETL_ASSERT(b, e)
Definition error_handler.h:356
Definition exception.h:47
bitset_ext
Definition absolute.h:38
pair holds two objects of arbitrary type
Definition utility.h:164