Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends
utilmm::singleton::server Class Reference

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 * > 

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


class utilmm::singleton::dummy

Detailed Description

Singleton server.

The central server for singleton instances.

Frédéric Py <>

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::~server ( ) [private]

Definition at line 23 of file

Member Function Documentation

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

Definition at line 28 of file

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

Definition at line 36 of file

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

Definition at line 50 of file

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

Definition at line 55 of file

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:

Author(s): Sylvain Joyeux/
autogenerated on Thu Jan 2 2014 11:38:32