#include <ValueMap.h>
Classes | |
struct | const_iterator |
struct | IDComparator |
Public Types | |
typedef container::const_reference | const_reference_type |
typedef std::vector< value_type > | container |
typedef helper::Filler < ValueMap< T > > | Filler |
typedef std::vector< std::pair < ProductID, offset > > | id_offset_vector |
typedef unsigned int | offset |
typedef container::reference | reference_type |
typedef T | value_type |
Public Member Functions | |
const_iterator | begin () const |
void | clear () |
bool | contains (ProductID id) const |
bool | empty () const |
const_iterator | end () const |
const_reference_type | get (ProductID id, size_t idx) const |
const_reference_type | get (size_t idx) const |
meant to be used in AssociativeIterator, not by the ordinary user | |
reference_type | get (ProductID id, size_t idx) |
const id_offset_vector & | ids () const |
meant to be used in AssociativeIterator, not by the ordinary user | |
size_t | idSize () const |
ValueMap< T > & | operator+= (const ValueMap< T > &o) |
ValueMap & | operator= (ValueMap const &rhs) |
template<typename RefKey > | |
reference_type | operator[] (const RefKey &r) |
template<typename RefKey > | |
const_reference_type | operator[] (const RefKey &r) const |
size_t | rawIndexOf (ProductID id, size_t idx) const |
size_t | size () const |
void | swap (ValueMap &other) |
ValueMap () | |
Protected Member Functions | |
id_offset_vector::const_iterator | getIdOffset (ProductID id) const |
void | throwIndexBound () const |
Protected Attributes | |
id_offset_vector | ids_ |
container | values_ |
Private Member Functions | |
void | add (const ValueMap< T > &o) |
void | throwNotExisting () const |
Friends | |
class | helper::Filler< ValueMap< T > > |
Definition at line 99 of file ValueMap.h.
typedef container::const_reference edm::ValueMap< T >::const_reference_type |
Definition at line 106 of file ValueMap.h.
typedef std::vector<value_type> edm::ValueMap< T >::container |
Definition at line 102 of file ValueMap.h.
typedef helper::Filler<ValueMap<T> > edm::ValueMap< T >::Filler |
Definition at line 157 of file ValueMap.h.
typedef std::vector<std::pair<ProductID, offset> > edm::ValueMap< T >::id_offset_vector |
Definition at line 104 of file ValueMap.h.
typedef unsigned int edm::ValueMap< T >::offset |
Reimplemented in edm::Association< C >.
Definition at line 103 of file ValueMap.h.
typedef container::reference edm::ValueMap< T >::reference_type |
Reimplemented in edm::Association< C >.
Definition at line 105 of file ValueMap.h.
typedef T edm::ValueMap< T >::value_type |
Definition at line 101 of file ValueMap.h.
edm::ValueMap< T >::ValueMap | ( | ) | [inline] |
Definition at line 108 of file ValueMap.h.
{ }
void edm::ValueMap< T >::add | ( | const ValueMap< T > & | o | ) | [inline, private] |
Definition at line 231 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::operator+=().
const_iterator edm::ValueMap< T >::begin | ( | void | ) | const [inline] |
Definition at line 196 of file ValueMap.h.
Referenced by CastorTowerJetMonitor::processEventJetIDs(), and CandIsolatorFromDeposits::produce().
void edm::ValueMap< T >::clear | ( | void | ) | [inline] |
Reimplemented in edm::Association< C >.
Definition at line 155 of file ValueMap.h.
Referenced by edm::Association< C >::clear().
bool edm::ValueMap< T >::contains | ( | ProductID | id | ) | const [inline] |
Reimplemented in edm::Association< C >.
Definition at line 149 of file ValueMap.h.
Referenced by edm::Association< C >::contains(), and pat::helper::RefHelper< T >::recursiveLookup().
{ return getIdOffset(id) != ids_.end(); }
bool edm::ValueMap< T >::empty | ( | ) | const [inline] |
Reimplemented in edm::Association< C >.
Definition at line 154 of file ValueMap.h.
Referenced by edm::Association< C >::empty().
{ return values_.empty(); }
const_iterator edm::ValueMap< T >::end | ( | void | ) | const [inline] |
Definition at line 197 of file ValueMap.h.
Referenced by CastorTowerJetMonitor::processEventJetIDs(), and CandIsolatorFromDeposits::produce().
const_reference_type edm::ValueMap< T >::get | ( | size_t | idx | ) | const [inline] |
meant to be used in AssociativeIterator, not by the ordinary user
Reimplemented in edm::Association< C >.
Definition at line 202 of file ValueMap.h.
const_reference_type edm::ValueMap< T >::get | ( | ProductID | id, |
size_t | idx | ||
) | const [inline] |
Reimplemented in edm::Association< C >.
Definition at line 134 of file ValueMap.h.
{ return values_[rawIndexOf(id,idx)]; }
reference_type edm::ValueMap< T >::get | ( | ProductID | id, |
size_t | idx | ||
) | [inline] |
Definition at line 141 of file ValueMap.h.
{ return values_[rawIndexOf(id,idx)]; }
id_offset_vector::const_iterator edm::ValueMap< T >::getIdOffset | ( | ProductID | id | ) | const [inline, protected] |
Definition at line 211 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::contains(), and edm::ValueMap< reco::MuonMETCorrectionData >::rawIndexOf().
const id_offset_vector& edm::ValueMap< T >::ids | ( | ) | const [inline] |
meant to be used in AssociativeIterator, not by the ordinary user
Reimplemented in edm::Association< C >.
Definition at line 200 of file ValueMap.h.
{ return ids_; }
size_t edm::ValueMap< T >::idSize | ( | ) | const [inline] |
Definition at line 153 of file ValueMap.h.
{ return ids_.size(); }
ValueMap<T>& edm::ValueMap< T >::operator+= | ( | const ValueMap< T > & | o | ) | [inline] |
Definition at line 145 of file ValueMap.h.
ValueMap& edm::ValueMap< T >::operator= | ( | ValueMap< T > const & | rhs | ) | [inline] |
reference_type edm::ValueMap< T >::operator[] | ( | const RefKey & | r | ) | [inline] |
Definition at line 138 of file ValueMap.h.
const_reference_type edm::ValueMap< T >::operator[] | ( | const RefKey & | r | ) | const [inline] |
Reimplemented in edm::Association< C >.
Definition at line 122 of file ValueMap.h.
size_t edm::ValueMap< T >::rawIndexOf | ( | ProductID | id, |
size_t | idx | ||
) | const [inline] |
Definition at line 126 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::get().
{ typename id_offset_vector::const_iterator f = getIdOffset(id); if(f==ids_.end()) throwNotExisting(); offset off = f->second; size_t j = off+idx; if(j >= values_.size()) throwIndexBound(); return j; }
size_t edm::ValueMap< T >::size | ( | void | ) | const [inline] |
Reimplemented in edm::Association< C >.
Definition at line 152 of file ValueMap.h.
Referenced by CandIsolatorFromDeposits::produce(), TrackProducerWithSCAssociation::produce(), and edm::Association< C >::size().
{ return values_.size(); }
void edm::ValueMap< T >::swap | ( | ValueMap< T > & | other | ) | [inline] |
Definition at line 110 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::operator=(), and edm::swap().
void edm::ValueMap< T >::throwIndexBound | ( | ) | const [inline, protected] |
Definition at line 217 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::rawIndexOf().
{ Exception::throwThis(errors::InvalidReference, "ValueMap: index out of upper boundary\n"); }
void edm::ValueMap< T >::throwNotExisting | ( | ) | const [inline, private] |
Definition at line 227 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::rawIndexOf().
{ Exception::throwThis(errors::InvalidReference, "ValueMap: no associated value for given product and index\n"); }
friend class helper::Filler< ValueMap< T > > [friend] |
Definition at line 237 of file ValueMap.h.
id_offset_vector edm::ValueMap< T >::ids_ [protected] |
Definition at line 209 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::begin(), edm::ValueMap< reco::MuonMETCorrectionData >::clear(), edm::ValueMap< reco::MuonMETCorrectionData >::contains(), edm::ValueMap< reco::MuonMETCorrectionData >::end(), edm::ValueMap< reco::MuonMETCorrectionData >::ids(), edm::ValueMap< reco::MuonMETCorrectionData >::idSize(), edm::ValueMap< reco::MuonMETCorrectionData >::rawIndexOf(), and edm::ValueMap< reco::MuonMETCorrectionData >::swap().
container edm::ValueMap< T >::values_ [protected] |
Definition at line 208 of file ValueMap.h.
Referenced by edm::ValueMap< reco::MuonMETCorrectionData >::begin(), edm::ValueMap< reco::MuonMETCorrectionData >::clear(), edm::ValueMap< reco::MuonMETCorrectionData >::empty(), edm::ValueMap< reco::MuonMETCorrectionData >::end(), edm::ValueMap< reco::MuonMETCorrectionData >::get(), edm::ValueMap< reco::MuonMETCorrectionData >::rawIndexOf(), edm::ValueMap< reco::MuonMETCorrectionData >::size(), and edm::ValueMap< reco::MuonMETCorrectionData >::swap().