4#ifndef TrigOutputHandling_BareDataBucket_h
5#define TrigOutputHandling_BareDataBucket_h
42 virtual const std::type_info&
tinfo()
const override {
49 bool isConst =
true)
override {
50 return (
m_clid == clid and isConst ) ?
m_data :
nullptr;
55 bool isConst =
true)
override {
63 virtual void lock()
override { };
uint32_t CLID
The Class ID type.
char data[hepevt_bytes_allocation_ATLAS]
virtual void * cast(const std::type_info &tinfo, SG::IRegisterTransient *, 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.
BareDataBucket(void *data, CLID clid, RootType type)
BareDataBucket(BareDataBucket &&)=delete
BareDataBucket & operator=(const BareDataBucket &)=delete
BareDataBucket(const BareDataBucket &)=delete
virtual void relinquish() override
Give up ownership of the DataBucket contents.
virtual const CLID & clID() const override
virtual void * cast(CLID clid, SG::IRegisterTransient *, bool isConst=true) override
Return the contents of the DataBucket, converted to type given by clid.
virtual const std::type_info & tinfo() const override
Return the type_info for the stored object.
virtual ~BareDataBucket() override
virtual void * object() override
BareDataBucket & operator=(BareDataBucket &&)=delete
T * cast(SG::IRegisterTransient *irt=0, bool isConst=true)
Return the contents of the DataBucket, converted to type T.
Interface for registering a transient object in t2p map.