Savarese Software Research Corporation
IndexService< MapType, IndexScheme, group_membership > Class Template Reference

#include <IndexService.h>

Inheritance diagram for IndexService< MapType, IndexScheme, group_membership >:

List of all members.

Public Types

typedef MapType map_type
typedef IndexScheme index_scheme

Public Member Functions

virtual ~IndexService ()
template<index_scheme scheme>
bool empty () const
template<index_scheme scheme>
map_type::template nth_index
< scheme >::type::size_type 
size () const
template<index_scheme scheme>
map_type::template
nth_index_iterator< scheme >
::type 
begin ()
template<index_scheme scheme>
map_type::template
nth_index_const_iterator
< scheme >::type 
begin () const
template<index_scheme scheme>
map_type::template
nth_index_iterator< scheme >
::type 
end ()
template<index_scheme scheme>
map_type::template
nth_index_const_iterator
< scheme >::type 
end () const
template<index_scheme scheme>
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)
template<index_scheme scheme>
map_type::template nth_index
< scheme >::type::size_type 
erase (const typename map_type::template nth_index< scheme >::type::key_type &key)
template<index_scheme scheme>
bool replace (typename map_type::template nth_index_iterator< scheme >::type position, const typename map_type::template nth_index< scheme >::type::value_type &value)
template<index_scheme scheme, typename CompatibleKey >
map_type::template
nth_index_iterator< scheme >
::type 
find (const CompatibleKey &key) const
template<index_scheme scheme, typename CompatibleKey >
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
template<index_scheme scheme, typename CompatibleKey >
map_type::template nth_index
< scheme >::type::size_type 
count (const CompatibleKey &key) const

Static Public Attributes

static const bool GroupMembership = group_membership

Protected Member Functions

template<index_scheme scheme, typename ResultTraits , typename QueryType >
void process_query (const QueryType &msg, const MessageInfo &msginfo)
template<index_scheme scheme, typename SingleResultTraits , typename SingleQueryType >
void process_single_query (const SingleQueryType &msg, const MessageInfo &msginfo)
template<index_scheme scheme>
map_type::template nth_index
< scheme >::type & 
get_index ()
template<index_scheme scheme>
const map_type::template
nth_index< scheme >::type & 
get_index () const
virtual void transition (typename super::State state)
 IndexService (typename super::caller_type &caller)

Protected Attributes

map_type _index

Friends

class NS_SSRC_WISP_SERVICE::ServiceProtocolProcessor< typename super::packing_traits >

Detailed Description

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
class IndexService< MapType, IndexScheme, group_membership >

Definition at line 42 of file IndexService.h.


Member Typedef Documentation

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
typedef IndexScheme IndexService< MapType, IndexScheme, group_membership >::index_scheme

Definition at line 50 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
typedef MapType IndexService< MapType, IndexScheme, group_membership >::map_type

Definition at line 49 of file IndexService.h.


Constructor & Destructor Documentation

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
IndexService< MapType, IndexScheme, group_membership >::IndexService ( typename super::caller_type &  caller) [inline, explicit, protected]

Definition at line 110 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
virtual IndexService< MapType, IndexScheme, group_membership >::~IndexService ( ) [inline, virtual]

Definition at line 119 of file IndexService.h.


Member Function Documentation

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
map_type::template nth_index_iterator<scheme>::type IndexService< MapType, IndexScheme, group_membership >::begin ( ) [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
map_type::template nth_index_const_iterator<scheme>::type IndexService< MapType, IndexScheme, group_membership >::begin ( ) const [inline]

Definition at line 152 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme, typename CompatibleKey >
map_type::template nth_index<scheme>::type::size_type IndexService< MapType, IndexScheme, group_membership >::count ( const CompatibleKey &  key) const [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
bool IndexService< MapType, IndexScheme, group_membership >::empty ( ) const [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
map_type::template nth_index_iterator<scheme>::type IndexService< MapType, IndexScheme, group_membership >::end ( ) [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
map_type::template nth_index_const_iterator<scheme>::type IndexService< MapType, IndexScheme, group_membership >::end ( ) const [inline]

Definition at line 170 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme, typename CompatibleKey >
std::pair<typename map_type::template nth_index_iterator<scheme>::type, typename map_type::template nth_index_iterator<scheme>::type> IndexService< MapType, IndexScheme, group_membership >::equal_range ( const CompatibleKey &  key) const [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
map_type::template nth_index<scheme>::type::size_type IndexService< MapType, IndexScheme, group_membership >::erase ( const typename map_type::template nth_index< scheme >::type::key_type &  key) [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme, typename CompatibleKey >
map_type::template nth_index_iterator<scheme>::type IndexService< MapType, IndexScheme, group_membership >::find ( const CompatibleKey &  key) const [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
map_type::template nth_index<scheme>::type& IndexService< MapType, IndexScheme, group_membership >::get_index ( ) [inline, protected]

Definition at line 94 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
const map_type::template nth_index<scheme>::type& IndexService< MapType, IndexScheme, group_membership >::get_index ( ) const [inline, protected]

Definition at line 100 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
std::pair<typename map_type::template nth_index_iterator<scheme>::type, bool> IndexService< MapType, IndexScheme, group_membership >::insert ( const typename map_type::template nth_index< scheme >::type::value_type &  value) [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme, typename ResultTraits , typename QueryType >
void IndexService< MapType, IndexScheme, group_membership >::process_query ( const QueryType &  msg,
const MessageInfo &  msginfo 
) [inline, protected]

Definition at line 57 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme, typename SingleResultTraits , typename SingleQueryType >
void IndexService< MapType, IndexScheme, group_membership >::process_single_query ( const SingleQueryType &  msg,
const MessageInfo &  msginfo 
) [inline, protected]

Definition at line 78 of file IndexService.h.

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
bool IndexService< MapType, 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]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
template<index_scheme scheme>
map_type::template nth_index<scheme>::type::size_type IndexService< MapType, IndexScheme, group_membership >::size ( ) const [inline]
template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
virtual void IndexService< MapType, IndexScheme, group_membership >::transition ( typename super::State  state) [inline, protected, virtual]

Friends And Related Function Documentation

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
friend class NS_SSRC_WISP_SERVICE::ServiceProtocolProcessor< typename super::packing_traits > [friend]

Definition at line 44 of file IndexService.h.


Member Data Documentation

template<typename MapType, typename IndexScheme = unsigned int, bool group_membership = GroupMembershipDisable>
const bool IndexService< MapType, IndexScheme, group_membership >::GroupMembership = group_membership [static]

Definition at line 47 of file IndexService.h.


The documentation for this class was generated from the following file:

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.