ATLAS Offline Software
Loading...
Searching...
No Matches
MetaContDataBucket.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4*/
11
12
13#ifndef ATHENAKERNEL_METACONTDATABUCKET_H
14#define ATHENAKERNEL_METACONTDATABUCKET_H
15
16
21
22
23class EventContext;
24
25
26namespace SG {
27
28
40template <class T>
42 : public DataBucket<T>
43{
44public:
45 // Constructor inherited from base class.
47
48
57 virtual void* cast (CLID clid,
58 IRegisterTransient* irt = 0,
59 bool isConst = true) override;
60
61
70 virtual void* cast (const std::type_info& tinfo,
71 IRegisterTransient* irt = 0,
72 bool isConst = true) override;
73
74
87 virtual void* cast (CLID clid,
88 const std::type_info& tinfo,
90 bool isConst = true) override;
91
92
93private:
98 const SourceID getSID() const;
99};
100
101
102} // namespace SG
103
104
106
107
108#endif // not ATHENAKERNEL_METACONTDATABUCKET_H
Type used to identify a metadata source.
Provide an interface for finding inheritance information at run time.
uint32_t CLID
The Class ID type.
virtual const std::type_info & tinfo() const override
Definition DataBucket.h:58
Interface for registering a transient object in t2p map.
Allow converting MetaCont<T> to 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.
const SourceID getSID() const
Return the metadata source id for the current event store.
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 * 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.
Forward declaration.
Some out-of-line helpers for ExtendedEventContext.