17#ifndef ATHCONTAINERS_CONSTACCESSOR_H
18#define ATHCONTAINERS_CONSTACCESSOR_H
53template <
class T,
class ALLOC = AuxAllocator_t<T> >
104 template <IsConstAuxElement ELT>
129 template <IsConstAuxElement ELT>
168 template <IsConstAuxElement ELT>
195 const std::string& clsname,
Handle mappings between names and auxid_t.
Basic definitions for auxiliary types.
Manage lookup of vectors of auxiliary data.
Flag that a class may have auxiliary data associated with it.
const element_type & const_reference_type
CxxUtils::span< const container_value_type > const_span
T element_type
The type the user sees.
typename vector_type::const_pointer const_container_pointer_type
Manage lookup of vectors of auxiliary data.
const_container_pointer_type getDataArray(const AuxVectorData &container) const
const_reference_type withDefault(const AuxVectorData &container, size_t index, const T &deflt) const
bool isAvailable(const ELT &e) const
const_span getDataSpan(const AuxVectorData &container) const
typename AuxDataTraits< T, ALLOC >::const_container_pointer_type const_container_pointer_type
const_reference_type withDefault(const ELT &e, const T &deflt) const
ConstAccessor(const std::string &name, const std::string &clsname)
ConstAccessor(const SG::auxid_t auxid)
typename AuxDataTraits< T, ALLOC >::const_reference_type const_reference_type
ConstAccessor(const std::string &name, const std::string &clsname, const SG::AuxVarFlags flags)
ConstAccessor(const std::string &name)
Constructor.
ConstAccessor(const SG::auxid_t auxid, const SG::AuxVarFlags flags)
typename AuxDataTraits< T, ALLOC >::element_type element_type
const_reference_type operator()(const ELT &e) const
Fetch the variable for one element, as a const reference.
bool isAvailable(const AuxVectorData &c) const
typename AuxDataTraits< T, ALLOC >::const_span const_span
SG::auxid_t auxid() const
AuxVarFlags
Additional flags to qualify an auxiliary variable.
size_t auxid_t
Identifier for a particular aux data item.