#include <MultiAssociation.h>
Public Member Functions | |
FastFiller (IndexRangeAssociation &assoc, ProductID id, unsigned int size) | |
Make a filler for a collection with a given product id and size. More... | |
template<typename RefKey > | |
void | insert (const RefKey &r, unsigned int startingOffset, unsigned int size) |
Sets the starting offset for this key. More... | |
void | insert (edm::ProductID id, unsigned int key, unsigned int startingOffset, unsigned int size) |
Sets the starting offset for this key (non-templated variant) More... | |
~FastFiller () | |
When the FastFiller goes out of scope, it unlocks the map so you can make a new one. More... | |
Private Attributes | |
IndexRangeAssociation & | assoc_ |
unsigned int | end_ |
const ProductID | id_ |
int | lastKey_ |
last key used to fill (to check that the new key must be strictly greater than lastKey_) More... | |
unsigned int | start_ |
FastFiller for the IndexRangeAssociation: It requires to fill items in strict key order. You can have a single FastFiller for a given map at time You can't access the map for this collection while filling it
Definition at line 103 of file MultiAssociation.h.
IndexRangeAssociation::FastFiller::FastFiller | ( | IndexRangeAssociation & | assoc, |
ProductID | id, | ||
unsigned int | size | ||
) |
Make a filler for a collection with a given product id and size.
Definition at line 44 of file MultiAssociation.cc.
References assoc_, end_, Exception, triggerObjects_cff::id, edm::helper::IndexRangeAssociation::id_offsets_, edm::helper::IndexRangeAssociation::isFilling_, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, edm::helper::IndexRangeAssociation::ref_offsets_, and start_.
Referenced by edm::MultiAssociation< C >::fastFiller().
IndexRangeAssociation::FastFiller::~FastFiller | ( | ) |
When the FastFiller goes out of scope, it unlocks the map so you can make a new one.
Definition at line 72 of file MultiAssociation.cc.
References assoc_, end_, edm::helper::IndexRangeAssociation::isFilling_, PFRecoTauDiscriminationByIsolation_cfi::offset, edm::helper::IndexRangeAssociation::ref_offsets_, and start_.
|
inline |
Sets the starting offset for this key.
Definition at line 113 of file MultiAssociation.h.
References crabWrapper::key, and edm::helper::IndexRangeAssociation::size().
Referenced by BeautifulSoup.PageElement::append().
void IndexRangeAssociation::FastFiller::insert | ( | edm::ProductID | id, |
unsigned int | key, | ||
unsigned int | startingOffset, | ||
unsigned int | size | ||
) |
Sets the starting offset for this key (non-templated variant)
Definition at line 96 of file MultiAssociation.cc.
References assoc_, end_, Exception, id_, crabWrapper::key, lastKey_, edm::helper::IndexRangeAssociation::ref_offsets_, edm::helper::IndexRangeAssociation::size(), start_, and edm::helper::IndexRangeAssociation::throwUnexpectedProductID().
Referenced by BeautifulSoup.PageElement::append().
|
private |
Definition at line 120 of file MultiAssociation.h.
Referenced by FastFiller(), edm::MultiAssociation< C >::LazyFiller::fill(), insert(), edm::MultiAssociation< C >::FastFiller::setValues(), and ~FastFiller().
|
private |
Definition at line 122 of file MultiAssociation.h.
Referenced by FastFiller(), insert(), and ~FastFiller().
|
private |
Definition at line 121 of file MultiAssociation.h.
Referenced by edm::MultiAssociation< C >::LazyFiller::fill(), insert(), edm::MultiAssociation< C >::LazyFiller::setValues(), and edm::MultiAssociation< C >::LazyFiller::swapValues().
|
private |
last key used to fill (to check that the new key must be strictly greater than lastKey_)
Definition at line 124 of file MultiAssociation.h.
Referenced by insert().
|
private |
Definition at line 122 of file MultiAssociation.h.
Referenced by FastFiller(), insert(), and ~FastFiller().