![]() |
The Gaudi Framework
v33r0 (d5ea422b)
|
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h. More...
#include <GaudiKernel/DataObjectHandleBase.h>


Public Types | |
| using | PropertyType = DataObjectHandleProperty |
Public Types inherited from Gaudi::DataHandle | |
| enum | Mode { Reader = 1 << 2, Writer = 1 << 4, Updater = Reader | Writer } |
Public Member Functions | |
| DataObjectHandleBase (const DataObjID &k, Gaudi::DataHandle::Mode a, IDataHandleHolder *owner) | |
| DataObjectHandleBase (const std::string &k, Gaudi::DataHandle::Mode a, IDataHandleHolder *owner) | |
| virtual | ~DataObjectHandleBase () |
| DataObjectHandleBase (const DataObjectHandleBase &)=delete | |
| DataObjectHandleBase (DataObjectHandleBase &&) | |
| DataObjectHandleBase & | operator= (const DataObjectHandleBase &) |
| template<class OWNER , class K , typename = std::enable_if_t<std::is_base_of_v<IProperty, OWNER>>> | |
| DataObjectHandleBase (OWNER *owner, Gaudi::DataHandle::Mode m, std::string name, const K &key={}, std::string doc="") | |
| Autodeclaring constructor with property name, mode, key and documentation. More... | |
| std::string | toString () 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) |
| bool | initialized () const |
| bool | wasRead () const |
| bool | wasWritten () const |
| bool | isValid () const |
Public Member Functions inherited from Gaudi::DataHandle | |
| DataHandle (const DataObjID &k, Mode a=Reader, IDataHandleHolder *owner=nullptr) | |
| DataHandle (const DataObjID &k, const bool &isCond, Mode a=Reader, IDataHandleHolder *owner=nullptr) | |
| virtual | ~DataHandle ()=default |
| virtual void | setOwner (IDataHandleHolder *o) |
| virtual IDataHandleHolder * | owner () const |
| virtual Mode | mode () const |
| virtual void | setKey (const DataObjID &key) const |
| virtual void | updateKey (const std::string &key) const |
| virtual const std::string & | objKey () const |
| virtual const DataObjID & | fullKey () const |
| virtual void | reset (bool) |
| virtual bool | isCondition () const |
Protected Member Functions | |
| void | setRead (bool wasRead=true) |
| void | setWritten (bool wasWritten=true) |
| bool | init () override |
| DataObject * | fetch () const |
Protected Attributes | |
| SmartIF< IDataProviderSvc > | m_EDS |
| SmartIF< IMessageSvc > | m_MS |
| bool | m_init = false |
| bool | m_optional = false |
| bool | m_wasRead = false |
| bool | m_wasWritten = false |
| bool | m_searchDone = false |
| Whether the search part of the fetch method (so dealing with alt names was already executed or not. More... | |
| std::mutex | m_searchMutex |
| A Mutex protecting the calls to the search part of the fetch method, so that we are sure that we only call it once. More... | |
Protected Attributes inherited from Gaudi::DataHandle | |
| DataObjID | m_key = {"NONE"} |
| The key of the object behind this DataHandle Although it may look strange to have it mutable, this can actually change in case the object had alternative names, and it should not be visible to the end user, for which the Handle is still the same. More... | |
| IDataHandleHolder * | m_owner = nullptr |
Static Protected Attributes | |
| static const std::string | default_type = "unknown_t" |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const DataObjectHandleBase &d) |
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
Base class for handles to Data Objects in the Event Store, to simplify access via Properties.
Definition at line 36 of file DataObjectHandleBase.h.
Definition at line 63 of file DataObjectHandleBase.h.
| DataObjectHandleBase::DataObjectHandleBase | ( | const DataObjID & | k, |
| Gaudi::DataHandle::Mode | a, | ||
| IDataHandleHolder * | owner | ||
| ) |
Definition at line 57 of file DataObjectHandleBase.cpp.
| DataObjectHandleBase::DataObjectHandleBase | ( | const std::string & | k, |
| Gaudi::DataHandle::Mode | a, | ||
| IDataHandleHolder * | owner | ||
| ) |
Definition at line 64 of file DataObjectHandleBase.cpp.
|
virtual |
Definition at line 68 of file DataObjectHandleBase.cpp.
|
delete |
| DataObjectHandleBase::DataObjectHandleBase | ( | DataObjectHandleBase && | other | ) |
Definition at line 28 of file DataObjectHandleBase.cpp.
|
inline |
Autodeclaring constructor with property name, mode, key and documentation.
Definition at line 50 of file DataObjectHandleBase.h.
|
protected |
Definition at line 71 of file DataObjectHandleBase.cpp.
| void DataObjectHandleBase::fromString | ( | const std::string & | s | ) |
Definition at line 141 of file DataObjectHandleBase.cpp.
|
overrideprotectedvirtual |
Reimplemented from Gaudi::DataHandle.
Definition at line 145 of file DataObjectHandleBase.cpp.
|
inline |
Definition at line 69 of file DataObjectHandleBase.h.
|
inline |
Check if the data object declared is optional for the algorithm.
Definition at line 66 of file DataObjectHandleBase.h.
| bool DataObjectHandleBase::isValid | ( | ) | const |
Definition at line 174 of file DataObjectHandleBase.cpp.
| DataObjectHandleBase & DataObjectHandleBase::operator= | ( | const DataObjectHandleBase & | other | ) |
Definition at line 41 of file DataObjectHandleBase.cpp.
|
overridevirtual |
Reimplemented from Gaudi::DataHandle.
Reimplemented in DataObjectHandle<::details::Payload_t< T > >, and DataObjectHandle< DataObject >.
Definition at line 124 of file DataObjectHandleBase.cpp.
|
inline |
Definition at line 67 of file DataObjectHandleBase.h.
|
inlineprotected |
Definition at line 76 of file DataObjectHandleBase.h.
|
inlineprotected |
Definition at line 77 of file DataObjectHandleBase.h.
| std::string DataObjectHandleBase::toString | ( | ) | const |
Definition at line 121 of file DataObjectHandleBase.cpp.
|
inline |
Definition at line 70 of file DataObjectHandleBase.h.
|
inline |
Definition at line 71 of file DataObjectHandleBase.h.
|
friend |
Definition at line 178 of file DataObjectHandleBase.cpp.
|
staticprotected |
Definition at line 105 of file DataObjectHandleBase.h.
|
protected |
Definition at line 84 of file DataObjectHandleBase.h.
|
protected |
Definition at line 87 of file DataObjectHandleBase.h.
|
protected |
Definition at line 85 of file DataObjectHandleBase.h.
|
protected |
Definition at line 88 of file DataObjectHandleBase.h.
|
mutableprotected |
Whether the search part of the fetch method (so dealing with alt names was already executed or not.
On subsequent calls (when this is true), it will be skipped.
Definition at line 97 of file DataObjectHandleBase.h.
|
mutableprotected |
A Mutex protecting the calls to the search part of the fetch method, so that we are sure that we only call it once.
Definition at line 103 of file DataObjectHandleBase.h.
|
protected |
Definition at line 89 of file DataObjectHandleBase.h.
|
protected |
Definition at line 90 of file DataObjectHandleBase.h.