Wrapper for singleton instances.
More...
#include <utilmm/singleton/bits/wrapper.hh>
template<typename Ty>
class utilmm::singleton::wrapper< Ty >
Wrapper for singleton instances.
This class offer the interface used by utilmm::singleton::use to manipulate the instance of type Ty
- Parameters
-
| Ty | the type of the singleton instance |
- Author
- Frédéric Py fpy@l.nosp@m.aas..nosp@m.fr
- Note
- All the mathods of this class are for internal use do not call them directly.
New attachement to singleton.
Indicates to the singleton server that there's a new client to the Ty singleton.
- Postcondition
- The singleton
Ty exist
Detachment to singleton.
Indicates to the singleton server thet the singleton Ty has lost one client
- Precondition
- The singleton
Ty exist
- Postcondition
- If there's no more client to singleton
Ty then this one is destroyed
Acces to the singleton.
- Returns
- A reference to singleton
Ty instance.
- Precondition
- singleton
Ty exist
The documentation for this class was generated from the following file: