17#ifndef ATHCONTAINERS_DECORATOR_H
18#define ATHCONTAINERS_DECORATOR_H
57template <
class T,
class ALLOC = AuxAllocator_t<T> >
94 Decorator (
const std::string& name,
const std::string& clsname);
114 template <IsConstAuxElement ELT>
140 template <IsConstAuxElement ELT>
186 template <IsConstAuxElement ELT>
194 template <IsConstAuxElement ELT>
228 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.
typename vector_type::pointer container_pointer_type
Pointers to the data within the container.
CxxUtils::span< container_value_type > span
CxxUtils::span< const container_value_type > const_span
element_type & reference_type
Reference types returned by aux data accessors.
T element_type
The type the user sees.
typename vector_type::const_pointer const_container_pointer_type
Manage lookup of vectors of auxiliary data.
bool isAvailableWritable(const AuxVectorData &c) const
const_container_pointer_type getDataArray(const AuxVectorData &container) const
typename AuxDataTraits< T, ALLOC >::span span
Decorator(const std::string &name, const std::string &clsname, const SG::AuxVarFlags flags)
void set(const ELT &e, const element_type &x) const
span getDecorationSpan(const AuxVectorData &container) const
typename AuxDataTraits< T, ALLOC >::const_container_pointer_type const_container_pointer_type
Decorator(const SG::auxid_t auxid, const SG::AuxVarFlags flags)
bool isAvailable(const ELT &e) const
Decorator(const std::string &name)
Constructor.
Decorator(const std::string &name, const std::string &clsname)
bool isAvailable(const AuxVectorData &c) const
SG::auxid_t auxid() const
const_span getDataSpan(const AuxVectorData &container) const
bool isAvailableWritable(const ELT &e) const
typename AuxDataTraits< T, ALLOC >::element_type element_type
container_pointer_type getDecorationArray(const AuxVectorData &container) const
typename AuxDataTraits< T, ALLOC >::reference_type reference_type
typename AuxDataTraits< T, ALLOC >::const_span const_span
typename AuxDataTraits< T, ALLOC >::container_pointer_type container_pointer_type
reference_type operator()(const ELT &e) const
Fetch the variable for one element, as a non-const reference.
Decorator(const SG::auxid_t auxid)
AuxVarFlags
Additional flags to qualify an auxiliary variable.
size_t auxid_t
Identifier for a particular aux data item.