ATLAS Offline Software
|
Helper object for holding something through a THolder. More...
Public Member Functions | |
THolderBucket (const std::string &key, const std::type_info &ti, xAOD::TEvent &event) | |
Constructor with an existing holder. More... | |
void * | object () override |
Return the object held. More... | |
const std::type_info & | tinfo () const override |
Return the type_info of the stored object. More... | |
void * | cast (CLID, SG::IRegisterTransient *, bool) override |
Return the object, cast to a CLID's type. More... | |
void * | cast (const std::type_info &tinfo, SG::IRegisterTransient *, bool isConst) override |
Return the object, cast to a certain type. More... | |
void * | cast (CLID, const std::type_info &tinfo, SG::IRegisterTransient *irt, bool isConst) override |
Return the object, cast to type. More... | |
void | relinquish () override |
Give up ownership of the bucket's contents. A no-op. More... | |
void | lock () override |
Lock the held object. A no-op. More... | |
template<class T > | |
T * | cast (SG::IRegisterTransient *irt=0, bool isConst=true) |
Return the contents of the DataBucket , converted to type T. More... | |
Private Attributes | |
const std::string | m_key |
The key of the object. More... | |
const std::type_info & | m_ti |
The type info of the object. More... | |
xAOD::TEvent & | m_event |
The original TEvent object. More... | |
Helper object for holding something through a THolder.
Definition at line 46 of file TEventProxyDict.cxx.
|
inline |
|
inlineoverridevirtual |
Return the object, cast to type.
Reimplemented from DataBucketBase.
Definition at line 126 of file TEventProxyDict.cxx.
|
inlineoverridevirtual |
Return the object, cast to a CLID's type.
Implements DataBucketBase.
Definition at line 85 of file TEventProxyDict.cxx.
|
inlineoverridevirtual |
Return the object, cast to a certain type.
Implements DataBucketBase.
Definition at line 93 of file TEventProxyDict.cxx.
|
inherited |
Return the contents of the DataBucket
, converted to type T.
Note that only derived->base conversions are allowed here. T must have a valid Class ID for this to work.
irt | To be called if we make a new instance. |
isConst | True if the object being converted is regarded as const. |
|
inlineoverridevirtual |
Lock the held object. A no-op.
Implements DataBucketBase.
Definition at line 137 of file TEventProxyDict.cxx.
|
inlineoverridevirtual |
Return the object held.
Implements DataBucketBase.
Definition at line 56 of file TEventProxyDict.cxx.
|
inlineoverridevirtual |
Give up ownership of the bucket's contents. A no-op.
Implements DataBucketBase.
Definition at line 135 of file TEventProxyDict.cxx.
|
inlineoverridevirtual |
Return the type_info of the stored object.
Implements DataBucketBase.
Definition at line 79 of file TEventProxyDict.cxx.
|
private |
The original TEvent object.
Definition at line 145 of file TEventProxyDict.cxx.
|
private |
The key of the object.
Definition at line 141 of file TEventProxyDict.cxx.
|
private |
The type info of the object.
Definition at line 143 of file TEventProxyDict.cxx.