Wrapper for singleton instances. More...
#include <wrapper.hh>
Static Public Member Functions | |
static void | attach () |
New attachement to singleton. | |
static void | detach () |
Detachment to singleton. | |
static Ty & | instance () |
Acces to the singleton. | |
Private Member Functions | |
wrapper () | |
~wrapper () | |
Static Private Member Functions | |
static std::string | name () |
Private Attributes | |
Ty | value |
Friends | |
class | details::wrapper_factory< Ty > |
Wrapper for singleton instances.
This class offer the interface used by utilmm::singleton::use
to manipulate the instance of type Ty
Ty | the type of the singleton instance |
Definition at line 31 of file wrapper.hh.
utilmm::singleton::wrapper< Ty >::wrapper | ( | ) | [private] |
utilmm::singleton::wrapper< Ty >::~wrapper | ( | ) | [private] |
static void utilmm::singleton::wrapper< Ty >::attach | ( | ) | [static] |
New attachement to singleton.
Indicates to the singleton server that there's a new client to the Ty
singleton.
Ty
exist static void utilmm::singleton::wrapper< Ty >::detach | ( | ) | [static] |
Detachment to singleton.
Indicates to the singleton server thet the singleton Ty
has lost one client
Ty
exist Ty
then this one is destroyed static Ty& utilmm::singleton::wrapper< Ty >::instance | ( | ) | [static] |
Acces to the singleton.
Ty
instance.Ty
exist static std::string utilmm::singleton::wrapper< Ty >::name | ( | ) | [static, private] |
friend class details::wrapper_factory< Ty > [friend] |
Definition at line 68 of file wrapper.hh.
Ty utilmm::singleton::wrapper< Ty >::value [private] |
Definition at line 66 of file wrapper.hh.