$search

utilmm::singleton::server Class Reference
[Singleton pattern design.Library internal utilities]

Singleton server. More...

#include <server.hh>

List of all members.

Private Types

typedef mutex_type::scoped_lock lock_type
typedef boost::recursive_mutex mutex_type
typedef std::map< std::string,
dummy * > 
single_map

Private Member Functions

void attach (std::string const &name, details::dummy_factory const &factory)
bool detach (std::string const &name)
dummyget (std::string const &name) const
 server ()
 ~server ()

Static Private Member Functions

static serverinstance ()

Private Attributes

single_map singletons

Static Private Attributes

static mutex_type sing_mtx
static serverthe_instance = 0

Friends

class utilmm::singleton::dummy

Detailed Description

Singleton server.

The central server for singleton instances.

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

Definition at line 25 of file server.hh.


Member Typedef Documentation

typedef mutex_type::scoped_lock utilmm::singleton::server::lock_type [private]

Definition at line 44 of file server.hh.

typedef boost::recursive_mutex utilmm::singleton::server::mutex_type [private]

Definition at line 43 of file server.hh.

typedef std::map<std::string, dummy *> utilmm::singleton::server::single_map [private]

Definition at line 37 of file server.hh.


Constructor & Destructor Documentation

server::server (  )  [private]

Definition at line 19 of file server.cc.

server::~server (  )  [private]

Definition at line 23 of file server.cc.


Member Function Documentation

void server::attach ( std::string const &  name,
details::dummy_factory const &  factory 
) [private]

Definition at line 28 of file server.cc.

bool server::detach ( std::string const &  name  )  [private]

Definition at line 36 of file server.cc.

dummy * server::get ( std::string const &  name  )  const [private]

Definition at line 50 of file server.cc.

server & server::instance (  )  [static, private]

Definition at line 55 of file server.cc.


Friends And Related Function Documentation

friend class utilmm::singleton::dummy [friend]

Definition at line 48 of file server.hh.


Member Data Documentation

recursive_mutex utilmm::singleton::server::sing_mtx [static, private]

Definition at line 46 of file server.hh.

Definition at line 39 of file server.hh.

Definition at line 41 of file server.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Mar 1 16:28:53 2013