![]() |
The Gaudi Framework
v28r0
|
DataObjectHandle.h GaudiKernel/DataObjectHandle.h. More...
#include <GaudiKernel/AlgTool.h>
Public Member Functions | |
DataObjectHandle () | |
DataObjectHandle (const DataObjID &k, Gaudi::DataHandle::Mode a, IDataHandleHolder *o) | |
DataObjectHandle (const std::string &k, Gaudi::DataHandle::Mode a, IDataHandleHolder *o) | |
virtual | ~DataObjectHandle () |
T * | get () |
Retrieve object from transient data store. More... | |
T * | getIfExists () |
Bypass check of existence of object in transient store Only uses main location of the. More... | |
bool | exist () |
Check the existence of the object in the transient store. More... | |
T * | getOrCreate () |
Get object from store or create a new one if it doesn't exist. More... | |
void | put (T *object) |
Register object in transient store. More... | |
![]() | |
DataObjectHandleBase () | |
DataObjectHandleBase (const DataObjID &k, Gaudi::DataHandle::Mode a, IDataHandleHolder *o) | |
DataObjectHandleBase (const std::string &k, Gaudi::DataHandle::Mode a, IDataHandleHolder *o) | |
virtual | ~DataObjectHandleBase () |
const std::string | toString () const |
const std::string | pythonRepr () const override |
void | fromString (const std::string &s) |
bool | isOptional () const |
Check if the data object declared is optional for the algorithm. More... | |
void | setOptional (bool optional=true) |
const std::vector< std::string > & | alternativeDataProductNames () const |
void | setAlternativeDataProductNames (const std::vector< std::string > &alternativeAddresses) |
bool | initialized () const |
bool | wasRead () const |
bool | wasWritten () const |
bool | isValid () const |
![]() | |
DataHandle () | |
DataHandle (const DataObjID &k, Mode a=Reader, IDataHandleHolder *owner=0) | |
virtual | ~DataHandle () |
virtual void | setOwner (IDataHandleHolder *o) |
virtual IDataHandleHolder * | owner () const |
virtual Mode | mode () const |
virtual void | setKey (const DataObjID &key) |
virtual void | updateKey (const std::string &key) |
virtual const std::string & | objKey () const |
virtual const DataObjID & | fullKey () const |
virtual void | reset (bool) |
virtual StatusCode | commit () |
Private Member Functions | |
T * | get (bool mustExist) |
Try to retrieve from the transient store. More... | |
Additional Inherited Members | |
![]() | |
enum | Mode { Reader = 1<<2, Writer = 1<<4, Updater = Reader | Writer } |
![]() | |
void | setRead (bool wasRead=true) |
void | setWritten (bool wasWritten=true) |
void | init () |
![]() | |
virtual void | setMode (const Mode &mode) |
![]() | |
SmartIF< IDataProviderSvc > | m_EDS |
SmartIF< IMessageSvc > | m_MS |
bool | m_init |
bool | m_goodType |
bool | m_optional |
bool | m_wasRead |
bool | m_wasWritten |
std::vector< std::string > | m_altNames |
![]() | |
DataObjID | m_key |
IDataHandleHolder * | m_owner |
DataObjectHandle.h GaudiKernel/DataObjectHandle.h.
Templated Handle class for objects in the event store
Inheritance: DataHandle->DataObjectHandleBase->DataObjectHandle<T>
DataObjectHandle< T >::DataObjectHandle | ( | ) |
Definition at line 75 of file DataObjectHandle.h.
DataObjectHandle< T >::DataObjectHandle | ( | const DataObjID & | k, |
Gaudi::DataHandle::Mode | a, | ||
IDataHandleHolder * | o | ||
) |
Definition at line 80 of file DataObjectHandle.h.
DataObjectHandle< T >::DataObjectHandle | ( | const std::string & | k, |
Gaudi::DataHandle::Mode | a, | ||
IDataHandleHolder * | o | ||
) |
Definition at line 86 of file DataObjectHandle.h.
|
inlinevirtual |
Definition at line 38 of file DataObjectHandle.h.
|
inline |
Check the existence of the object in the transient store.
Definition at line 54 of file DataObjectHandle.h.
|
inline |
Retrieve object from transient data store.
Definition at line 43 of file DataObjectHandle.h.
|
private |
Try to retrieve from the transient store.
If the retrieval succeded and this is the first time we retrieve, perform a dynamic cast to the desired object. Then finally set the handle as Read. If this is not the first time we cast and the cast worked, just use the static cast: we do not need the checks of the dynamic cast for every access!
Definition at line 101 of file DataObjectHandle.h.
|
inline |
Bypass check of existence of object in transient store Only uses main location of the.
Definition at line 49 of file DataObjectHandle.h.
T * DataObjectHandle< T >::getOrCreate | ( | ) |
Get object from store or create a new one if it doesn't exist.
Definition at line 173 of file DataObjectHandle.h.
void DataObjectHandle< T >::put | ( | T * | object | ) |
Register object in transient store.
Definition at line 159 of file DataObjectHandle.h.