#include <DataFormats/Common/interface/IDVectorMap.h>
Public Types | |
typedef C::const_iterator | container_iterator |
typedef std::map< ID, C > | map |
typedef map::const_iterator | map_iterator |
typedef C::value_type | value_type |
Public Member Functions | |
template<typename M> | |
match_iterator< M > | begin (const M &m) const |
const_iterator | begin () const |
template<typename M> | |
match_iterator< M > | end (const M &m) const |
const_iterator | end () const |
range | get (ID id) const |
id_iterator | id_begin () const |
id_iterator | id_end () const |
size_t | id_size () const |
IDVectorMap () | |
template<typename CI> | |
void | insert (ID id, CI begin, CI end) |
void | insert (ID id, const value_type &t) |
IDVectorMap & | operator= (IDVectorMap const &rhs) |
void | swap (IDVectorMap &other) |
Private Attributes | |
C | collection_ |
map | map_ |
Classes | |
struct | const_iterator |
struct | id_iterator |
struct | match_iterator |
struct | range |
Definition at line 9 of file IDVectorMap.h.
typedef C::const_iterator edm::IDVectorMap< ID, C, P >::container_iterator |
Definition at line 12 of file IDVectorMap.h.
typedef std::map<ID, C> edm::IDVectorMap< ID, C, P >::map |
Definition at line 13 of file IDVectorMap.h.
typedef map::const_iterator edm::IDVectorMap< ID, C, P >::map_iterator |
Definition at line 14 of file IDVectorMap.h.
typedef C::value_type edm::IDVectorMap< ID, C, P >::value_type |
Definition at line 11 of file IDVectorMap.h.
edm::IDVectorMap< ID, C, P >::IDVectorMap | ( | ) | [inline] |
match_iterator<M> edm::IDVectorMap< ID, C, P >::begin | ( | const M & | m | ) | const [inline] |
Definition at line 136 of file IDVectorMap.h.
References edm::IDVectorMap< ID, C, P >::map_.
00136 { 00137 return match_iterator<M>(m, map_.end(), map_.begin(), map_.begin()->second.begin()); 00138 }
const_iterator edm::IDVectorMap< ID, C, P >::begin | ( | ) | const [inline] |
Definition at line 63 of file IDVectorMap.h.
References edm::IDVectorMap< ID, C, P >::map_.
Referenced by edm::IDVectorMap< ID, C, P >::get().
00063 { 00064 return const_iterator(map_.end(), map_.begin(), map_.begin()->second.begin()); 00065 }
match_iterator<M> edm::IDVectorMap< ID, C, P >::end | ( | const M & | m | ) | const [inline] |
const_iterator edm::IDVectorMap< ID, C, P >::end | ( | ) | const [inline] |
Definition at line 66 of file IDVectorMap.h.
References edm::IDVectorMap< ID, C, P >::map_.
Referenced by edm::IDVectorMap< ID, C, P >::get().
00066 { 00067 return const_iterator(map_.end()); 00068 }
range edm::IDVectorMap< ID, C, P >::get | ( | ID | id | ) | const [inline] |
Definition at line 84 of file IDVectorMap.h.
References edm::IDVectorMap< ID, C, P >::begin(), edm::IDVectorMap< ID, C, P >::end(), i, edm::IDVectorMap< ID, C, P >::map_, and range.
00084 { 00085 container_iterator begin, end; 00086 map_iterator i = map_.find(id); 00087 if (i != map_.end()) { 00088 begin = i->second.begin(); 00089 end = i->second.end(); 00090 } else { 00091 begin = end; 00092 } 00093 return range(begin, end); 00094 }
id_iterator edm::IDVectorMap< ID, C, P >::id_begin | ( | ) | const [inline] |
Definition at line 162 of file IDVectorMap.h.
References edm::IDVectorMap< ID, C, P >::map_.
00162 { return id_iterator(map_.begin()); }
id_iterator edm::IDVectorMap< ID, C, P >::id_end | ( | ) | const [inline] |
Definition at line 163 of file IDVectorMap.h.
References edm::IDVectorMap< ID, C, P >::map_.
00163 { return id_iterator(map_.end()); }
size_t edm::IDVectorMap< ID, C, P >::id_size | ( | ) | const [inline] |
Definition at line 164 of file IDVectorMap.h.
References edm::IDVectorMap< ID, C, P >::map_.
00164 { return map_.size(); }
void edm::IDVectorMap< ID, C, P >::insert | ( | ID | id, | |
CI | begin, | |||
CI | end | |||
) | [inline] |
void edm::IDVectorMap< ID, C, P >::insert | ( | ID | id, | |
const value_type & | t | |||
) | [inline] |
Definition at line 69 of file IDVectorMap.h.
References clone(), and edm::IDVectorMap< ID, C, P >::map_.
IDVectorMap& edm::IDVectorMap< ID, C, P >::operator= | ( | IDVectorMap< ID, C, P > const & | rhs | ) |
void edm::IDVectorMap< ID, C, P >::swap | ( | IDVectorMap< ID, C, P > & | other | ) |
Referenced by edm::swap().
C edm::IDVectorMap< ID, C, P >::collection_ [private] |
Definition at line 168 of file IDVectorMap.h.
map edm::IDVectorMap< ID, C, P >::map_ [private] |
Definition at line 169 of file IDVectorMap.h.
Referenced by edm::IDVectorMap< ID, C, P >::begin(), edm::IDVectorMap< ID, C, P >::end(), edm::IDVectorMap< ID, C, P >::get(), edm::IDVectorMap< ID, C, P >::id_begin(), edm::IDVectorMap< ID, C, P >::id_end(), edm::IDVectorMap< ID, C, P >::id_size(), and edm::IDVectorMap< ID, C, P >::insert().