#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 45 of file MultiAssociation.cc.
References assoc_, end_, edm::hlt::Exception, errorMatrix2Lands_multiChannel::id, edm::helper::IndexRangeAssociation::id_offsets_, edm::helper::IndexRangeAssociation::isFilling_, pos, edm::helper::IndexRangeAssociation::ref_offsets_, and start_.
IndexRangeAssociation::FastFiller::~FastFiller | ( | ) |
When the FastFiller goes out of scope, it unlocks the map so you can make a new one.
Definition at line 73 of file MultiAssociation.cc.
References evf::evtn::offset().
|
inline |
Sets the starting offset for this key.
Definition at line 113 of file MultiAssociation.h.
References edm::helper::IndexRangeAssociation::size().
Referenced by BeautifulSoup.PageElement::_invert().
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 97 of file MultiAssociation.cc.
References edm::hlt::Exception, combine::key, edm::helper::IndexRangeAssociation::size(), and edm::helper::IndexRangeAssociation::throwUnexpectedProductID().
Referenced by BeautifulSoup.PageElement::_invert().
|
private |
Definition at line 120 of file MultiAssociation.h.
Referenced by FastFiller().
|
private |
Definition at line 122 of file MultiAssociation.h.
Referenced by FastFiller().
|
private |
Definition at line 121 of file MultiAssociation.h.
|
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.
|
private |
Definition at line 122 of file MultiAssociation.h.
Referenced by FastFiller().