#include <service_registry.hpp>
Public Member Functions | |
template<typename Service > | |
bool | add_service (Service *new_service) |
template<typename Service > | |
bool | has_service () const |
service_registry (asio::io_service &o) | |
template<typename Service > | |
Service & | use_service () |
~service_registry () | |
Private Member Functions | |
void | init_service_id (asio::io_service::service &service, const asio::io_service::id &id) |
template<typename Service > | |
void | init_service_id (asio::io_service::service &service, const asio::detail::service_id< Service > &) |
Static Private Member Functions | |
static bool | service_id_matches (const asio::io_service::service &service, const asio::io_service::id &id) |
template<typename Service > | |
static bool | service_id_matches (const asio::io_service::service &service, const asio::detail::service_id< Service > &) |
Private Attributes | |
asio::io_service::service * | first_service_ |
asio::detail::mutex | mutex_ |
asio::io_service & | owner_ |
Definition at line 39 of file service_registry.hpp.
asio::detail::service_registry::service_registry | ( | asio::io_service & | o | ) | [inline] |
Definition at line 44 of file service_registry.hpp.
asio::detail::service_registry::~service_registry | ( | ) | [inline] |
Definition at line 51 of file service_registry.hpp.
bool asio::detail::service_registry::add_service | ( | Service * | new_service | ) | [inline] |
Definition at line 118 of file service_registry.hpp.
bool asio::detail::service_registry::has_service | ( | ) | const [inline] |
Definition at line 141 of file service_registry.hpp.
void asio::detail::service_registry::init_service_id | ( | asio::io_service::service & | service, |
const asio::io_service::id & | id | ||
) | [inline, private] |
Definition at line 158 of file service_registry.hpp.
void asio::detail::service_registry::init_service_id | ( | asio::io_service::service & | service, |
const asio::detail::service_id< Service > & | |||
) | [inline, private] |
Definition at line 168 of file service_registry.hpp.
static bool asio::detail::service_registry::service_id_matches | ( | const asio::io_service::service & | service, |
const asio::io_service::id & | id | ||
) | [inline, static, private] |
Definition at line 177 of file service_registry.hpp.
static bool asio::detail::service_registry::service_id_matches | ( | const asio::io_service::service & | service, |
const asio::detail::service_id< Service > & | |||
) | [inline, static, private] |
Definition at line 187 of file service_registry.hpp.
Service& asio::detail::service_registry::use_service | ( | ) | [inline] |
Definition at line 76 of file service_registry.hpp.
Definition at line 202 of file service_registry.hpp.
asio::detail::mutex asio::detail::service_registry::mutex_ [mutable, private] |
Definition at line 196 of file service_registry.hpp.
Definition at line 199 of file service_registry.hpp.