#include <GiGa/GiGaHashMap.h>
Public Types | |
typedef KEY | Key |
type of the key | |
typedef VALUE | Value |
type of the mapped value | |
typedef hash_map< Key, Value > | Map |
the map itself | |
typedef Map::iterator | iterator |
the type of iterator | |
typedef Map::const_iterator | const_iterator |
the type of const_iterator | |
Public Member Functions | |
GiGaHashMap () | |
Standard constructor. | |
virtual | ~GiGaHashMap () |
destructor (virtual) | |
Value & | operator() (const Key &key) |
access to elements by the key (non-const!) for Linux the implementation is trivial | |
Value & | operator[] (const Key &key) |
access to elements by the key (non-const!) for Linux the implementation is trivial | |
void | erase (iterator first, iterator last) |
erase the sequence from the map | |
void | erase (iterator it) |
erase the sequence from the map | |
void | erase (const Key &key) |
remove/erase element from the map (by key) | |
void | clear () |
clear the content of all containers | |
unsigned int | size () const |
get the size ( == number of elements ) | |
Map::iterator | begin () |
iterator for sequential access to the content of the "map" | |
Map::const_iterator | begin () const |
iterator for sequential access to the content of the "map" | |
Map::iterator | end () |
iterator for sequential access to the content of the "map" | |
Map::const_iterator | end () const |
iterator for sequential access to the content of the "map" | |
Private Attributes | |
Map | m_map |
the map itself |
An auxillary class to hide underlying std::hash_map implementation for Microsoft Visual-C++ (Win32)
The code actually is imported from LHCb Calo software.
Definition at line 49 of file GiGaHashMap.h.
typedef KEY GiGaHashMap< KEY, VALUE >::Key |
typedef VALUE GiGaHashMap< KEY, VALUE >::Value |
typedef hash_map<Key,Value> GiGaHashMap< KEY, VALUE >::Map |
the map itself
Definition at line 67 of file GiGaHashMap.h.
typedef Map::iterator GiGaHashMap< KEY, VALUE >::iterator |
the type of iterator
Definition at line 73 of file GiGaHashMap.h.
typedef Map::const_iterator GiGaHashMap< KEY, VALUE >::const_iterator |
the type of const_iterator
Definition at line 78 of file GiGaHashMap.h.
GiGaHashMap< KEY, VALUE >::GiGaHashMap | ( | ) | [inline] |
virtual GiGaHashMap< KEY, VALUE >::~GiGaHashMap | ( | ) | [inline, virtual] |
Value& GiGaHashMap< KEY, VALUE >::operator() | ( | const Key & | key | ) | [inline] |
access to elements by the key (non-const!) for Linux the implementation is trivial
key | key |
Definition at line 101 of file GiGaHashMap.h.
00102 { return m_map[key]; };
Value& GiGaHashMap< KEY, VALUE >::operator[] | ( | const Key & | key | ) | [inline] |
access to elements by the key (non-const!) for Linux the implementation is trivial
key | key |
Definition at line 115 of file GiGaHashMap.h.
void GiGaHashMap< KEY, VALUE >::erase | ( | iterator | first, | |
iterator | last | |||
) | [inline] |
erase the sequence from the map
first | the "begin" iterator for the sequence | |
last | the "end" iterator for the sequence |
Definition at line 122 of file GiGaHashMap.h.
00124 { 00125 m_map.erase( first , last ); 00126 };
void GiGaHashMap< KEY, VALUE >::erase | ( | iterator | it | ) | [inline] |
erase the sequence from the map
it | the "begin" iterator for the sequence | |
last | the "end" iterator for the sequence |
Definition at line 133 of file GiGaHashMap.h.
00134 { 00135 m_map.erase ( it ); 00136 };
void GiGaHashMap< KEY, VALUE >::erase | ( | const Key & | key | ) | [inline] |
remove/erase element from the map (by key)
key | key of element to be removed |
Definition at line 143 of file GiGaHashMap.h.
00144 { 00145 m_map.erase ( key ) ; 00146 };
void GiGaHashMap< KEY, VALUE >::clear | ( | ) | [inline] |
clear the content of all containers
Definition at line 149 of file GiGaHashMap.h.
00149 { m_map.clear() ; }
unsigned int GiGaHashMap< KEY, VALUE >::size | ( | ) | const [inline] |
get the size ( == number of elements )
Definition at line 154 of file GiGaHashMap.h.
00154 { return m_map.size() ; }
Map::iterator GiGaHashMap< KEY, VALUE >::begin | ( | ) | [inline] |
iterator for sequential access to the content of the "map"
Definition at line 159 of file GiGaHashMap.h.
00159 { return m_map.begin () ; }
Map::const_iterator GiGaHashMap< KEY, VALUE >::begin | ( | ) | const [inline] |
iterator for sequential access to the content of the "map"
Definition at line 164 of file GiGaHashMap.h.
00164 { 00165 return m_map.begin (); 00166 }
Map::iterator GiGaHashMap< KEY, VALUE >::end | ( | ) | [inline] |
iterator for sequential access to the content of the "map"
Definition at line 171 of file GiGaHashMap.h.
00171 { return m_map.end () ; }
Map::const_iterator GiGaHashMap< KEY, VALUE >::end | ( | ) | const [inline] |
iterator for sequential access to the content of the "map"
Definition at line 176 of file GiGaHashMap.h.
00176 { return m_map.end() ; }
Map GiGaHashMap< KEY, VALUE >::m_map [private] |