23#ifndef DD_CACHE__LOCAL_MULTI_MAP_INCLUDED
24#define DD_CACHE__LOCAL_MULTI_MAP_INCLUDED
35template <
typename K,
typename E>
88 return m_map<const T *>()->begin();
93 return m_map<const T *>()->begin();
106 return m_map<const T *>()->end();
111 return m_map<const T *>()->end();
125 template <
typename K>
127 m_map<K>()->get(
key, element);
168 size_t size()
const {
return m_map<const T *>()->size(); }
Implementation of a dictionary client.
Definition: cache_element.h:68
Implementation of a map between a key type and an element type.
Definition: element_map.h:71
Implementation of a local set of maps for a given object type.
Definition: local_multi_map.h:52
void dump() const
Debug dump of the local multi map to stderr.
Definition: local_multi_map.cc:129
Multi_map_base< T >::Iterator begin()
Definition: local_multi_map.h:92
void erase()
Remove and delete all objects from the map.
Definition: local_multi_map.cc:109
size_t size() const
Get the number of elements in the map.
Definition: local_multi_map.h:168
Multi_map_base< T >::Const_iterator begin() const
Get an iterator to the beginning of the map.
Definition: local_multi_map.h:87
const Element_map< K, Cache_element< T > > * m_map() const
Definition: local_multi_map.h:73
Multi_map_base< T >::Const_iterator end() const
Get an iterator to one past the end of the map.
Definition: local_multi_map.h:105
void get(const K &key, Cache_element< T > **element) const
Get an element from the map handling the given key type.
Definition: local_multi_map.h:126
Element_map< K, Cache_element< T > > * m_map()
Template helper function getting the element map.
Definition: local_multi_map.h:68
void remove(Cache_element< T > *element)
Remove an element from the map.
Definition: local_multi_map.cc:85
Multi_map_base< T >::Iterator end()
Definition: local_multi_map.h:110
void put(Cache_element< T > *element)
Put a new element into the map.
Definition: local_multi_map.cc:58
Implementation of a set of maps for a given object type.
Definition: multi_map_base.h:63
Element_map< constT *, Cache_element< T > >::Iterator Iterator
Definition: multi_map_base.h:127
Element_map< constT *, Cache_element< T > >::Const_iterator Const_iterator
Definition: multi_map_base.h:125
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
required string key
Definition: replication_asynchronous_connection_failover.proto:59