ATLAS Offline Software
|
Helper: Make a span from a jagged vector element. More...
#include <JaggedVecConversions.h>
Public Types | |
using | Payload_t = PAYLOAD_T |
The type of the jagged vector payload. More... | |
using | const_Payload_span = detail::AuxDataConstSpan< Payload_t > |
An AuxDataSpan representing the payload vector. More... | |
using | element_type = CxxUtils::range_with_conv< typename AuxDataTraits< Payload_t >::const_span > |
The type of the span we produce. More... | |
Public Member Functions | |
JaggedVecConstConverter (const JaggedVecEltBase *elts, const_Payload_span payload) | |
Constructor. More... | |
const element_type | operator() (const JaggedVecEltBase &elt) const |
Convert to a span. More... | |
Private Attributes | |
const JaggedVecEltBase * | m_elts |
The vector of elements. More... | |
const_Payload_span | m_payload |
The span over the payload vector. More... | |
Helper: Make a span from a jagged vector element.
An instance of this class is constructed from an AuxDataSpan
over the payload vector. (This has a reference to the range held by the AuxTypeVector
, so if the payload vector changes, we'll see it here.) operator()
then takes a JaggedVecElt
and produces a span representing that element.
Definition at line 48 of file JaggedVecConversions.h.
using SG::detail::JaggedVecConstConverter< PAYLOAD_T >::const_Payload_span = detail::AuxDataConstSpan<Payload_t> |
An AuxDataSpan
representing the payload vector.
Definition at line 55 of file JaggedVecConversions.h.
using SG::detail::JaggedVecConstConverter< PAYLOAD_T >::element_type = CxxUtils::range_with_conv<typename AuxDataTraits<Payload_t>::const_span> |
The type of the span we produce.
Definition at line 58 of file JaggedVecConversions.h.
using SG::detail::JaggedVecConstConverter< PAYLOAD_T >::Payload_t = PAYLOAD_T |
The type of the jagged vector payload.
Definition at line 52 of file JaggedVecConversions.h.
SG::detail::JaggedVecConstConverter< PAYLOAD_T >::JaggedVecConstConverter | ( | const JaggedVecEltBase * | elts, |
const_Payload_span | payload | ||
) |
Constructor.
elts | Start of the element vector. |
payload | Span over the payload vector. |
const element_type SG::detail::JaggedVecConstConverter< PAYLOAD_T >::operator() | ( | const JaggedVecEltBase & | elt | ) | const |
Convert to a span.
elt | The jagged vector element to transform. |
|
private |
The vector of elements.
Definition at line 79 of file JaggedVecConversions.h.
|
private |
The span over the payload vector.
Definition at line 82 of file JaggedVecConversions.h.