#include <service.h>
Public Types | |
typedef service_map | map_type |
typedef IndexScheme | index_scheme |
Public Member Functions | |
Registry (super::caller_type &caller) | |
virtual | ~Registry () |
bool | is_leader () |
string | leader_name () |
void | service_join (const string &service_name) |
void | service_leave (const string &service_name) |
template<typename InputIterator > | |
void | register_service (const string &service_name, InputIterator service_type, const InputIterator &end_of_range) |
template<typename InputIterator > | |
void | reregister_service (const string &service_name, InputIterator service_type, const InputIterator &end_of_range) |
template<typename InputIterator > | |
void | unregister_service (const string &service_name, InputIterator service_type, const InputIterator &end_of_range) |
bool | empty () const |
map_type::template nth_index < scheme >::type::size_type | size () const |
map_type::template nth_index_iterator< scheme > ::type | begin () |
map_type::template nth_index_const_iterator < scheme >::type | begin () const |
map_type::template nth_index_iterator< scheme > ::type | end () |
map_type::template nth_index_const_iterator < scheme >::type | end () const |
std::pair< typename map_type::template nth_index_iterator< scheme > ::type, bool > | insert (const typename map_type::template nth_index< scheme >::type::value_type &value) |
map_type::template nth_index < scheme >::type::size_type | erase (const typename map_type::template nth_index< scheme >::type::key_type &key) |
bool | replace (typename map_type::template nth_index_iterator< scheme >::type position, const typename map_type::template nth_index< scheme >::type::value_type &value) |
map_type::template nth_index_iterator< scheme > ::type | find (const CompatibleKey &key) const |
std::pair< typename map_type::template nth_index_iterator< scheme > ::type, typename map_type::template nth_index_iterator< scheme > ::type > | equal_range (const CompatibleKey &key) const |
map_type::template nth_index < scheme >::type::size_type | count (const CompatibleKey &key) const |
Static Public Attributes | |
static const bool | GroupMembership |
Protected Member Functions | |
void | process_query (const QueryType &msg, const MessageInfo &msginfo) |
void | process_single_query (const SingleQueryType &msg, const MessageInfo &msginfo) |
map_type::template nth_index < scheme >::type & | get_index () |
const map_type::template nth_index< scheme >::type & | get_index () const |
virtual void | transition (typename super::State state) |
Protected Attributes | |
map_type | _index |
Friends | |
class | NS_SSRC_WISP_SERVICE::ServiceProtocolProcessor< packing_traits > |
class | NS_SSRC_WISP_SERVICE::ServiceProtocolProcessor< typename super::packing_traits > |
Detailed Description
Definition at line 39 of file registry/service.h.
Member Typedef Documentation
typedef IndexScheme IndexService< service_map , IndexScheme, group_membership >::index_scheme [inherited] |
Definition at line 50 of file IndexService.h.
typedef service_map IndexService< service_map , IndexScheme, group_membership >::map_type [inherited] |
Definition at line 49 of file IndexService.h.
Constructor & Destructor Documentation
Registry::Registry | ( | super::caller_type & | caller | ) | [inline, explicit] |
Definition at line 102 of file registry/service.h.
virtual Registry::~Registry | ( | ) | [inline, virtual] |
Definition at line 115 of file registry/service.h.
Member Function Documentation
map_type::template nth_index_iterator<scheme>::type IndexService< service_map , IndexScheme, group_membership >::begin | ( | ) | [inline, inherited] |
Definition at line 143 of file IndexService.h.
map_type::template nth_index_const_iterator<scheme>::type IndexService< service_map , IndexScheme, group_membership >::begin | ( | ) | const [inline, inherited] |
Definition at line 152 of file IndexService.h.
map_type::template nth_index<scheme>::type::size_type IndexService< service_map , IndexScheme, group_membership >::count | ( | const CompatibleKey & | key | ) | const [inline, inherited] |
Definition at line 225 of file IndexService.h.
bool IndexService< service_map , IndexScheme, group_membership >::empty | ( | ) | const [inline, inherited] |
Definition at line 125 of file IndexService.h.
map_type::template nth_index_iterator<scheme>::type IndexService< service_map , IndexScheme, group_membership >::end | ( | ) | [inline, inherited] |
Definition at line 161 of file IndexService.h.
map_type::template nth_index_const_iterator<scheme>::type IndexService< service_map , IndexScheme, group_membership >::end | ( | ) | const [inline, inherited] |
Definition at line 170 of file IndexService.h.
std::pair<typename map_type::template nth_index_iterator<scheme>::type, typename map_type::template nth_index_iterator<scheme>::type> IndexService< service_map , IndexScheme, group_membership >::equal_range | ( | const CompatibleKey & | key | ) | const [inline, inherited] |
Definition at line 216 of file IndexService.h.
map_type::template nth_index<scheme>::type::size_type IndexService< service_map , IndexScheme, group_membership >::erase | ( | const typename map_type::template nth_index< scheme >::type::key_type & | key | ) | [inline, inherited] |
Definition at line 189 of file IndexService.h.
map_type::template nth_index_iterator<scheme>::type IndexService< service_map , IndexScheme, group_membership >::find | ( | const CompatibleKey & | key | ) | const [inline, inherited] |
Definition at line 206 of file IndexService.h.
map_type::template nth_index<scheme>::type& IndexService< service_map , IndexScheme, group_membership >::get_index | ( | ) | [inline, protected, inherited] |
Definition at line 94 of file IndexService.h.
const map_type::template nth_index<scheme>::type& IndexService< service_map , IndexScheme, group_membership >::get_index | ( | ) | const [inline, protected, inherited] |
Definition at line 100 of file IndexService.h.
std::pair<typename map_type::template nth_index_iterator<scheme>::type, bool> IndexService< service_map , IndexScheme, group_membership >::insert | ( | const typename map_type::template nth_index< scheme >::type::value_type & | value | ) | [inline, inherited] |
Definition at line 179 of file IndexService.h.
bool Registry::is_leader | ( | ) | [inline] |
Definition at line 120 of file registry/service.h.
string Registry::leader_name | ( | ) | [inline] |
Definition at line 127 of file registry/service.h.
void IndexService< service_map , IndexScheme, group_membership >::process_query | ( | const QueryType & | msg, |
const MessageInfo & | msginfo | ||
) | [inline, protected, inherited] |
Definition at line 57 of file IndexService.h.
void IndexService< service_map , IndexScheme, group_membership >::process_single_query | ( | const SingleQueryType & | msg, |
const MessageInfo & | msginfo | ||
) | [inline, protected, inherited] |
Definition at line 78 of file IndexService.h.
void Registry::register_service | ( | const string & | service_name, |
InputIterator | service_type, | ||
const InputIterator & | end_of_range | ||
) | [inline] |
Definition at line 151 of file registry/service.h.
References service_type(), and service_type_unknown().
bool IndexService< service_map , IndexScheme, group_membership >::replace | ( | typename map_type::template nth_index_iterator< scheme >::type | position, |
const typename map_type::template nth_index< scheme >::type::value_type & | value | ||
) | [inline, inherited] |
Definition at line 195 of file IndexService.h.
void Registry::reregister_service | ( | const string & | service_name, |
InputIterator | service_type, | ||
const InputIterator & | end_of_range | ||
) | [inline] |
Definition at line 174 of file registry/service.h.
void Registry::service_join | ( | const string & | service_name | ) | [inline] |
Definition at line 134 of file registry/service.h.
References service_type_unknown().
void Registry::service_leave | ( | const string & | service_name | ) | [inline] |
Definition at line 143 of file registry/service.h.
map_type::template nth_index<scheme>::type::size_type IndexService< service_map , IndexScheme, group_membership >::size | ( | ) | const [inline, inherited] |
Definition at line 134 of file IndexService.h.
virtual void IndexService< service_map , IndexScheme, group_membership >::transition | ( | typename super::State | state | ) | [inline, protected, virtual, inherited] |
Definition at line 104 of file IndexService.h.
void Registry::unregister_service | ( | const string & | service_name, |
InputIterator | service_type, | ||
const InputIterator & | end_of_range | ||
) | [inline] |
Definition at line 186 of file registry/service.h.
References service_type(), and service_type_unknown().
Friends And Related Function Documentation
friend class NS_SSRC_WISP_SERVICE::ServiceProtocolProcessor< packing_traits > [friend] |
Definition at line 43 of file registry/service.h.
friend class NS_SSRC_WISP_SERVICE::ServiceProtocolProcessor< typename super::packing_traits > [friend, inherited] |
Definition at line 44 of file IndexService.h.
Member Data Documentation
map_type IndexService< service_map , IndexScheme, group_membership >::_index [protected, inherited] |
Definition at line 54 of file IndexService.h.
const bool IndexService< service_map , IndexScheme, group_membership >::GroupMembership [static, inherited] |
Definition at line 47 of file IndexService.h.
The documentation for this class was generated from the following files: