Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
17 #ifndef ATHCONTAINERS_DECORATOR_H
18 #define ATHCONTAINERS_DECORATOR_H
57 template <
class T,
class ALLOC = AuxAllocator_t<T> >
114 template <IsConstAuxElement ELT>
140 template <IsConstAuxElement ELT>
186 template <IsConstAuxElement ELT>
194 template <IsConstAuxElement ELT>
228 const std::string& clsname,
255 #endif // not ATHCONTAINERS_DECORATOR_H
typename vector_type::pointer container_pointer_type
Pointers to the data within the container.
bool isAvailable(const AuxVectorData &c) const
Test to see if this variable exists in the store.
element_type & reference_type
Reference types returned by aux data accessors.
typename AuxDataTraits< std::pair< float, std::string >, AuxAllocator_t< std::pair< float, std::string > > >::const_container_pointer_type const_container_pointer_type
const_span getDataSpan(const AuxVectorData &container) const
Get a span over the auxilary data array.
Flag that a class may have auxiliary data associated with it.
Decorator(const SG::auxid_t auxid)
Constructor taking an auxid directly.
Decorator(const std::string &name, const std::string &clsname)
Constructor.
typename AuxDataTraits< std::pair< float, std::string >, AuxAllocator_t< std::pair< float, std::string > > >::span span
A span over elements in the container.
container_pointer_type getDecorationArray(const AuxVectorData &container) const
Get a pointer to the start of the auxiliary data array.
SG::auxid_t auxid() const
Return the aux id for this variable.
const_container_pointer_type getDataArray(const AuxVectorData &container) const
Get a pointer to the start of the auxiliary data array.
typename vector_type::const_pointer const_container_pointer_type
void set(const ELT &e, const element_type &x) const
Set the variable for one element.
Simplified version of the C++20 std::span.
size_t auxid_t
Identifier for a particular aux data item.
reference_type operator()(const ELT &e) const
Fetch the variable for one element, as a non-const reference.
Helper class to provide type-safe access to aux data.
Decorator(const SG::auxid_t auxid, const SG::AuxVarFlags flags)
Constructor taking an auxid directly.
AuxVarFlags
Additional flags to qualify an auxiliary variable.
typename AuxDataTraits< std::pair< float, std::string >, AuxAllocator_t< std::pair< float, std::string > > >::container_pointer_type container_pointer_type
Pointer into the container holding this item.
Manage lookup of vectors of auxiliary data.
typename AuxDataTraits< std::pair< float, std::string >, AuxAllocator_t< std::pair< float, std::string > > >::reference_type reference_type
Type referencing an item.
T element_type
The type the user sees.
SG::auxid_t m_auxid
The cached auxid.
Basic definitions for auxiliary types.
Decorator(const std::string &name)
Constructor.
span getDecorationSpan(const AuxVectorData &container) const
Get a span over the auxilary data array.
typename AuxDataTraits< std::pair< float, std::string >, AuxAllocator_t< std::pair< float, std::string > > >::const_span const_span
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
bool isAvailableWritable(const AuxVectorData &c) const
Test to see if this variable exists in the store and is writable.
Handle mappings between names and auxid_t.
Manage lookup of vectors of auxiliary data.
bool isAvailableWritable(const ELT &e) const
Test to see if this variable exists in the store and is writable.
typename AuxDataTraits< std::pair< float, std::string >, AuxAllocator_t< std::pair< float, std::string > > >::element_type element_type
Type the user sees.
Decorator(const std::string &name, const std::string &clsname, const SG::AuxVarFlags flags)
Constructor.