template<typename TObject>
class etl::singleton< TObject >
Creates .
Singleton pattern base class.
Public Types |
typedef T | type |
|
Static Public Member Functions |
static TObject & | get_instance () |
|
static void | create () |
| Constructs the instance of the singleton type.
|
|
template<typename T1 > |
static void | create (const T1 &p1) |
|
template<typename T1 , typename T2 > |
static void | create (const T1 &p1, const T2 &p2) |
|
template<typename T1 , typename T2 , typename T3 > |
static void | create (const T1 &p1, const T2 &p2, const T3 &p3) |
|
template<typename T1 , typename T2 , typename T3 , typename T4 > |
static void | create (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) |
|
static void | destroy () |
| Destructs the instance of the singleton type.
|
|
static T & | instance () |
|
static bool | is_valid () |
| Checks the validity of the singleton.
|
|
Static Protected Attributes |
static TObject * | p_instance |
|