utilmm::singleton::dummy Class Reference
[Singleton pattern design.]

base class for utilmm::singleton::wrapper More...

#include <utilmm/singleton/bits/dummy.hh>

Inheritance diagram for utilmm::singleton::dummy:

utilmm::singleton::wrapper< Ty >

List of all members.

Protected Member Functions

 dummy ()
 Default Constructor.
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 detach (std::string const &name)
 Detach to a singleton.
static dummyinstance (std::string const &name)
 Singleton generic access.

Friends

class utilmm::singleton::server


Detailed Description

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.

Author:
Frédéric Py <fpy@laas.fr>

Constructor & Destructor Documentation

utilmm::singleton::dummy::dummy (  )  [protected]

Default Constructor.

virtual utilmm::singleton::dummy::~dummy (  )  [protected, pure virtual]

Destructor.


Member Function Documentation

static void utilmm::singleton::dummy::attach ( std::string const &  name,
details::dummy_factory const &  factory 
) [static, protected]

Attach a new singleton.

Parameters:
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

static void utilmm::singleton::dummy::detach ( std::string const &  name  )  [static, protected]

Detach to a singleton.

Parameters:
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.

static dummy* utilmm::singleton::dummy::instance ( std::string const &  name  )  [static, protected]

Singleton generic access.

Parameters:
name Internal id of a singleton
Returns:
a pointer to the dummy wrapper of the singleton attached to name


Friends And Related Function Documentation

friend class utilmm::singleton::server [friend]


The documentation for this class was generated from the following file:
Generated on Tue Feb 19 10:51:02 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page