#include <utilmm/singleton/use.hh>
Public Member Functions | |
| use () | |
| Constructor. | |
| use (use const &other) | |
| Copy constructor. | |
| ~use () | |
| Destructor. | |
| Ty & | instance () const |
| Access to singleton. | |
| Ty & | operator * () const |
| Access to singleton. | |
| Ty * | operator-> () const |
| Access to singleton. | |
This class is the used to acces to a singleton with type Ty . It also manage the singleton life time indicating to the server that this singleton has a new client.
| utilmm::singleton::use< Ty >::use | ( | ) |
| utilmm::singleton::use< Ty >::use | ( | use< Ty > const & | other | ) |
Copy constructor.
This constructor only indicate to server that there's a new client to sinbgleton Ty.
| utilmm::singleton::use< Ty >::~use | ( | ) |
Destructor.
Indicate to server that singlerton Ty has lost one client if the number of client to Ty becomes null then the singleton is destroyed.
| Ty& utilmm::singleton::use< Ty >::instance | ( | ) | const |
| Ty& utilmm::singleton::use< Ty >::operator * | ( | ) | const |
| Ty* utilmm::singleton::use< Ty >::operator-> | ( | ) | const |
Access to singleton.
This operator allow client to directly access to singlton's attributes.
1.5.3