 |
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef STOREGATE_READDECORHANDLE_H
14 #define STOREGATE_READDECORHANDLE_H
21 #include "GaudiKernel/EventContext.h"
22 #include <type_traits>
91 template <
class T,
class D>
134 const EventContext& ctx);
216 typename = std::enable_if_t<!std::is_void_v<POINTER_TYPE> > >
300 template <
class D,
class T>
324 template <
class D,
class T>
326 const EventContext& ctx);
340 const EventContext& ctx);
349 #endif // not STOREGATE_READDECORHANDLE_READDECORHANDLE_H
ReadDecorHandle(const ReadDecorHandleKey< T > &key, const EventContext &ctx)
Constructor from a ReadDecorHandleKey and an explicit event context.
const_reference_type withDefault(size_t index, const D &deflt)
Fetch the variable for one element, as a const reference.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
POINTER_TYPE getDataArray()
Get a pointer to the start of the auxiliary data array, for the referenced object.
Base class for elements of a container that can have aux data.
typename AuxDataTraits< T, ALLOC >::const_container_pointer_type const_container_pointer_type
Pointer into the container holding this item.
typename AuxDataTraits< T, ALLOC >::const_span const_span
A span over elements in the container.
ReadDecorHandle(ReadDecorHandle &&rhs)
Move constructor.
bool isPresent() const
Is the referenced container present in SG?
Helper class to provide constant type-safe access to aux data.
const_reference_type operator()(const AuxElement &e) const
Fetch the variable for one element, as a const reference.
const SG::AuxVectorData * vectorData(std::false_type)
Return the referenced object as a SG::AuxVectorData.
Some common helper functions used by decoration handles.
typename accessor_t::const_span const_span
Span of aux data items.
ReadDecorHandle & operator=(const ReadDecorHandle &rhs)
Assignment operator.
const SG::AuxVectorData * vectorData(std::true_type)
Return the referenced object as a SG::AuxVectorData.
typename AuxDataTraits< T, ALLOC >::const_reference_type const_reference_type
Type referencing an item.
a smart pointer to an object of a given type in an IProxyDict (such as StoreGateSvc)....
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
size_t auxid_t
Identifier for a particular aux data item.
Handle class for reading a decoration on an object.
const std::string & decorKey() const
Return the name of the decoration alias (CONT.DECOR).
const_reference_type withDefault(const AuxElement &e, const D &deflt) const
Fetch the variable for one element, as a const reference.
SG::auxid_t auxid() const
Return the aux id for this variable.
const_span getDataSpan()
Get a span over the auxilary data array, for the referenced object.
typename accessor_t::const_container_pointer_type const_container_pointer_type
Pointer into the vector holding an aux data item.
ReadDecorHandle(const ReadDecorHandleKey< T > &key)
Constructor from a ReadDecorHandleKey.
typename accessor_t::const_reference_type const_reference_type
Type referencing an aux data item.
ReadDecorHandle(const ReadDecorHandle &rhs)
Copy constructor.
const SG::AuxVectorData * vectorData()
Return the referenced object as a SG::AuxVectorData.
Manage lookup of vectors of auxiliary data.
Handle class for reading from StoreGate.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
bool isAvailable()
Test to see if this variable exists in the store, for the referenced object.
Base class for elements of a container that can have aux data.
std::string m_decorKey
Name of the decoration alias.
accessor_t m_acc
Accessor for the aux data item.