![]() |
The Gaudi Framework
v30r4 (9b837755)
|
Base class to all DataHandles interacting with the transient event store. More...
#include <GaudiKernel/EventDataHandle.h>
Classes | |
class | Metadata |
DataHandle subclass metadata for event data handles. More... | |
Public Member Functions | |
void | initialize (const IDataHandleHolder &owner) final override |
Initialize the data handle. More... | |
![]() | |
DataHandle (const DataHandle &)=delete | |
DataHandle & | operator= (const DataHandle &)=delete |
DataHandle (DataHandle &&)=default | |
DataHandle & | operator= (DataHandle &&)=delete |
AccessMode | access () const |
const DataObjID & | targetKey () const |
(Configurable) ID of the data being accessed via this handle More... | |
void | setTargetKey (const DataObjID &id) |
Change the ID of the target data. More... | |
bool | ownerSetupDone () const |
Truth that owner setup has been performed. More... | |
template<typename Owner , std::enable_if_t< std::is_base_of< IDataHandleHolder, Owner >::value > * = nullptr> | |
void | setOwner (Owner &owner) |
Setup the owner of this DataHandle. More... | |
Protected Types | |
using | AccessMode = DataHandle::AccessMode |
Protected Member Functions | |
template<typename Owner > | |
EventDataHandle (Owner &owner, const std::string &propertyName, DataObjID &&defaultID, const std::string &docString, const Metadata &metadata) | |
Handles are constructed like a Gaudi property (and effectively behave as one, which sets the associated data object identifier) More... | |
![]() | |
template<typename Owner , typename T = DataObjID, std::enable_if_t< std::is_base_of< IDataHandleHolder, Owner >::value > * = nullptr> | |
DataHandle (Owner &owner, const std::string &propertyName, T &&defaultID, const std::string &docString, const IDataHandleMetadata &metadata) | |
Handles are constructed like a Gaudi property (and effectively behave as one, which sets the associated data object identifier) More... | |
template<typename T = DataObjID> | |
DataHandle (const std::string &propertyName, T &&defaultID, const std::string &docString, const IDataHandleMetadata &metadata) | |
The above constructor is easier to use correctly, and therefore preferred. More... | |
Protected Attributes | |
IDataProviderSvc * | m_whiteBoard = nullptr |
Pointer to the whiteboard, set during initialize() More... | |
Static Protected Attributes | |
static const Metadata | s_readHandleMetadata |
static const Metadata | s_writeHandleMetadata |
Private Member Functions | |
void | registerToOwner (IDataHandleHolder &owner) |
Register ourselves to the owner (algorithm or tool) More... | |
Additional Inherited Members | |
![]() | |
using | AccessMode = IDataHandleMetadata::AccessMode |
Base class to all DataHandles interacting with the transient event store.
This is internal machinery which clients can safely ignore.
Definition at line 32 of file EventDataHandle.h.
|
protected |
Definition at line 39 of file EventDataHandle.h.
|
inlineprotected |
Handles are constructed like a Gaudi property (and effectively behave as one, which sets the associated data object identifier)
Definition at line 65 of file EventDataHandle.h.
|
finaloverridevirtual |
Initialize the data handle.
Implements Gaudi::v2::DataHandle.
Definition at line 12 of file EventDataHandle.cpp.
|
private |
Register ourselves to the owner (algorithm or tool)
Definition at line 10 of file EventDataHandle.cpp.
|
protected |
Pointer to the whiteboard, set during initialize()
Definition at line 73 of file EventDataHandle.h.
|
staticprotected |
Definition at line 59 of file EventDataHandle.h.
|
staticprotected |
Definition at line 60 of file EventDataHandle.h.