#include <GiGa/GiGaMap.h>
Collaboration diagram for GiGaMap< KEY, VALUE >:
Public Types | |
typedef KEY | Key |
type of the key | |
typedef VALUE | Value |
type of the mapped value | |
typedef std::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 | |
GiGaMap () | |
Standard constructor. | |
virtual | ~GiGaMap () |
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 underlying MAP container |
The code actually is imported from LHCb Calo software.
Definition at line 42 of file GiGaMap.h.
typedef Map::const_iterator GiGaMap< KEY, VALUE >::const_iterator |
Value& GiGaMap< 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 94 of file GiGaMap.h.
00095 { return m_map[key]; };
Value& GiGaMap< KEY, VALUE >::operator[] | ( | const Key & | key | ) | [inline] |
void GiGaMap< KEY, VALUE >::clear | ( | ) | [inline] |
unsigned int GiGaMap< KEY, VALUE >::size | ( | ) | const [inline] |
Map::iterator GiGaMap< KEY, VALUE >::begin | ( | ) | [inline] |
Map::const_iterator GiGaMap< KEY, VALUE >::begin | ( | ) | const [inline] |
Map::iterator GiGaMap< KEY, VALUE >::end | ( | ) | [inline] |
Map::const_iterator GiGaMap< KEY, VALUE >::end | ( | ) | const [inline] |