base class for utilmm::singleton::wrapper
More...
#include <dummy.hh>

Protected Member Functions | |
| dummy () | |
| Default Constructor. | |
| dummy () | |
| Default Constructor. | |
| virtual | ~dummy ()=0 |
| Destructor. | |
| virtual | ~dummy ()=0 |
| Destructor. | |
Static Protected Member Functions | |
| static void | attach (std::string const &name, details::dummy_factory const &factory) |
| Attach a new singleton. | |
| static void | attach (std::string const &name, details::dummy_factory const &factory) |
| Attach a new singleton. | |
| static void | detach (std::string const &name) |
| Detach to a singleton. | |
| static void | detach (std::string const &name) |
| Detach to a singleton. | |
| static dummy * | instance (std::string const &name) |
| Singleton generic access. | |
| static dummy * | instance (std::string const &name) |
| Singleton generic access. | |
Private Member Functions | |
| bool | decr_ref () const |
| bool | decr_ref () const |
| void | incr_ref () const |
| void | incr_ref () const |
Private Attributes | |
| size_t | ref_counter |
Friends | |
| class | utilmm::singleton::server |
base class for utilmm::singleton::wrapper
This class is the base class for all the singletons wrapper and the "public" interface to the singleton server.
Definition at line 30 of file install/include/utilmm/singleton/bits/dummy.hh.
| utilmm::singleton::dummy::dummy | ( | ) | [protected] |
Default Constructor.
| virtual utilmm::singleton::dummy::~dummy | ( | ) | [protected, pure virtual] |
Destructor.
| static void utilmm::singleton::dummy::attach | ( | std::string const & | name, | |
| details::dummy_factory const & | factory | |||
| ) | [static, protected] |
Attach a new singleton.
| name | Internal id of the singleton. | |
| inst | Candidate as singleton. |
This function called by wrapper::attach try to create a new singleton with name as unique id. If there's allready a singleton name then inst is deleted
| void dummy::attach | ( | std::string const & | name, | |
| details::dummy_factory const & | factory | |||
| ) | [static, protected] |
Attach a new singleton.
| name | Internal id of the singleton. | |
| inst | Candidate as singleton. |
This function called by wrapper::attach try to create a new singleton with name as unique id. If there's allready a singleton name then inst is deleted
| bool utilmm::singleton::dummy::decr_ref | ( | ) | const [private] |
| static void utilmm::singleton::dummy::detach | ( | std::string const & | name | ) | [static, protected] |
Detach to a singleton.
| name | Internal id of a singleton |
This function called by wrapper::detach indicate to the singleton server that the singleton identified as name has lost one client.
| void dummy::detach | ( | std::string const & | name | ) | [static, protected] |
Detach to a singleton.
| name | Internal id of a singleton |
This function called by wrapper::detach indicate to the singleton server that the singleton identified as name has lost one client.
| void utilmm::singleton::dummy::incr_ref | ( | ) | const [private] |
| static dummy* utilmm::singleton::dummy::instance | ( | std::string const & | name | ) | [static, protected] |
Singleton generic access.
| name | Internal id of a singleton |
| dummy * dummy::instance | ( | std::string const & | name | ) | [static, protected] |
utilmm::singleton::server [friend] |
Definition at line 72 of file install/include/utilmm/singleton/bits/dummy.hh.
size_t utilmm::singleton::dummy::ref_counter [mutable, private] |
Definition at line 70 of file install/include/utilmm/singleton/bits/dummy.hh.