Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef ATHENAKERNEL_DATABUCKET_H
8 #define ATHENAKERNEL_DATABUCKET_H
13 #include "GaudiKernel/ClassID.h"
15 #include <type_traits>
25 class IRegisterTransient;
26 class CopyConversionBase;
52 return const_cast<T_nc*
>(
m_ptr);
58 virtual const std::type_info&
tinfo()
const override
71 operator T*() {
return ptr(); }
72 operator const T*()
const {
return cptr(); }
84 bool isConst =
true)
override;
97 bool isConst =
true)
override;
112 const std::type_info&
tinfo,
114 bool isConst =
true)
override;
158 typedef std::pair<const CopyConversionBase*, void*>
ent_t;
168 #endif // ATHENAKERNEL_DATABUCKET_H
Interface for registering a transient object in t2p map.
std::pair< const CopyConversionBase *, void * > ent_t
Objects made by copy conversion.
char data[hepevt_bytes_allocation_ATLAS]
DataBucket & operator=(const DataBucket &)
virtual void * cast(CLID clid, const std::type_info &tinfo, SG::IRegisterTransient *irt=0, bool isConst=true) override
Return the contents of the DataBucket, converted to type given by clid.
virtual void * object() override
DataBucket(const DataBucket &)
std::vector< ent_t > vec_t
virtual void * cast(CLID clid, IRegisterTransient *irt=0, bool isConst=true) override
Return the contents of the DataBucket, converted to type given by clid.
A non-templated base class for DataBucket, allows to access the transient object address as a void*.
virtual void relinquish() override
Give up ownership of the DataBucket contents.
void * tryStaticConversion(const std::type_info &tinfo)
Try a conversion using static SG_BASES information.
virtual const std::type_info & tinfo() const override
Return the type_info for the stored object.
void * tryStaticConversion(CLID clid)
Try a conversion using static SG_BASES information.
DataBucket(std::unique_ptr< U > data)
uint32_t CLID
The Class ID type.
virtual const CLID & clID() const override
static const CLID & classID()
virtual void * cast(const std::type_info &tinfo, IRegisterTransient *irt=0, bool isConst=true) override
Return the contents of the DataBucket, converted to type given by std::type_info.
virtual void lock() override
If the held object derives from ILockable, call lock() on it.