1#ifndef XAOD_INDETMEASUREMENT_UTILITIES_JAGGEDVECELTCACHE_H
2#define XAOD_INDETMEASUREMENT_UTILITIES_JAGGEDVECELTCACHE_H
14 m_elt = accessor.getEltSpan(cont);
15 m_payload = accessor.getPayloadSpan(cont);
19 assert(obj_i==0 || obj_i-1 <
m_elt.size());
20 return obj_i>0 ?
m_elt[obj_i-1].end() : 0u;
23 assert(obj_i <
m_elt.size());
24 return m_elt[obj_i].end();
30 void setValue(
unsigned int elm_i,
const T &value) {
36 assert(obj_i<
m_elt.size());
Helper class to provide type-safe access to aux data, specialized for JaggedVecElt.
Helper class to provide type-safe access to aux data.
Manage lookup of vectors of auxiliary data.
SG::IAuxStore * getStore()
Return the current store, as a non-const interface.
virtual void * getData(auxid_t auxid, size_t size, size_t capacity)=0
Return the data vector for one aux data item.
Describe one element of a jagged vector.
unsigned int getEndIndex(unsigned int obj_i) const
std::size_t nObjects() const
void updateEndIndex(unsigned int obj_i, unsigned int elm_i)
SG::Accessor< SG::JaggedVecElt< T > >::Payload_span m_payload
std::size_t nElements() const
unsigned int getBeginIndex(unsigned int obj_i) const
void setValue(unsigned int elm_i, T &&value)
void setValue(unsigned int elm_i, const T &value)
SG::Accessor< SG::JaggedVecElt< T > >::Elt_span m_elt
JaggedVecEltCache(SG::AuxVectorData &cont, const SG::Accessor< SG::JaggedVecElt< T > > &accessor, unsigned int n)