Go to the documentation of this file. 1 #ifndef ECALDETID_ECALCONTAINER_H
2 #define ECALDETID_ECALCONTAINER_H
15 template <
typename DetId,
typename T>
21 typedef typename std::vector<Item>
Items;
23 typedef typename std::vector<Item>::iterator
iterator;
32 void insert(std::pair<uint32_t, Item>
const&
a) { (*this)[
a.first] =
a.second; }
44 return m_items[
id.hashedIndex()];
50 m_items.resize(DetId::kSizeForDenseIndexing);
70 return m_items[
id.hashedIndex()];
77 return m_items.begin() +
ib.hashedIndex();
90 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
93 static const Item s_dummy{};
105 #endif // ECALCONTAINER
const_iterator end() const
const Items & items() const
const Item & item(size_t hashid) const
Item const & operator[](uint32_t rawId) const
void checkAndResize(size_t priv_size)
std::vector< Item >::iterator iterator
std::vector< Item > m_items
bool isValidId(const DetId id) const
std::vector< Item > Items
static const Item & dummy_item()
const_iterator find(uint32_t rawId) const
Item & operator[](uint32_t rawId)
void setItems(const std::vector< Item > &items)
void insert(std::pair< uint32_t, Item > const &a)
const_iterator begin() const
std::vector< Item >::const_iterator const_iterator