|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #ifndef ATHCONTAINERS_CONSTACCESSOR_H
18 #define ATHCONTAINERS_CONSTACCESSOR_H
53 template <
class T,
class ALLOC = AuxAllocator_t<T> >
198 const std::
string& clsname,
221 #include "AthContainers/ConstAccessor.icc"
224 #endif // not ATHCONTAINERS_CONSTACCESSOR_H
typename AuxDataTraits< PackedLink< CONT >, ALLOC >::element_type element_type
Type the user sees.
Flag that a class may have auxiliary data associated with it.
const_span getDataSpan(const AuxVectorData &container) const
Get a span over the auxilary data array.
typename AuxDataTraits< PackedLink< CONT >, ALLOC >::const_container_pointer_type const_container_pointer_type
Pointer into the container holding this item.
SG::auxid_t auxid() const
Return the aux id for this variable.
const element_type & const_reference_type
typename AuxDataTraits< PackedLink< CONT >, ALLOC >::const_span const_span
A span over elements in the container.
ConstAccessor(const std::string &name)
Constructor.
ConstAccessor(const SG::auxid_t auxid)
Constructor taking an auxid directly.
#define ATH_REQUIRES(...)
Helper class to provide constant type-safe access to aux data.
bool const RAWDATA *ch2 const
typename vector_type::const_pointer const_container_pointer_type
Simplified version of the C++20 std::span.
typename AuxDataTraits< PackedLink< CONT >, ALLOC >::const_reference_type const_reference_type
Type referencing an item.
size_t auxid_t
Identifier for a particular aux data item.
SG::auxid_t m_auxid
The cached auxid.
AuxVarFlags
Additional flags to qualify an auxiliary variable.
Manage lookup of vectors of auxiliary data.
T element_type
The type the user sees.
Basic definitions for auxiliary types.
ConstAccessor(const std::string &name, const std::string &clsname)
Constructor.
Handle mappings between names and auxid_t.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
const_container_pointer_type getDataArray(const AuxVectorData &container) const
Get a pointer to the start of the auxiliary data array.
Manage lookup of vectors of auxiliary data.
const_reference_type withDefault(const ELT &e, const T &deflt) const
Fetch the variable for one element, as a const reference, with a default.