![]() |
ATLAS Offline Software
|
an iterator over instances of a given type in an IProxyDict
(such as StoreGateSvc). It d-casts and caches locally the pointed-at object, to speed-up subsequent accesses. It can be reset by the store for asynchronous updates (IOVSvc)
More...
#include <DataHandleBase.h>
Public Types | |
typedef std::string | ID_type |
Public Member Functions | |
DataHandleBase () | |
Default constructor: More... | |
DataHandleBase (const DataHandleBase &rhs) | |
Copy constructor: More... | |
DataHandleBase & | operator= (const DataHandleBase &rhs) |
Assignment operator: More... | |
DataHandleBase (SG::DataProxy *proxy) | |
Constructor with parameters: More... | |
DataHandleBase (const SG::ConstProxyIterator &itr1, const SG::ConstProxyIterator &itr2) | |
virtual | ~DataHandleBase () |
Destructor: More... | |
virtual void | reset (bool hard)=0 |
Clear cached data from this object. More... | |
virtual void | finalReset () |
optional special action on final reset call (e.g. in caller destructor) More... | |
validity checks | |
SG::ConstProxyIterator | m_itr |
iterator pointing at the beginning of the range of proxies More... | |
SG::ConstProxyIterator | m_itrEnd |
iterator pointing at the end of the range of proxies More... | |
SG::DataProxy * | m_proxy |
the proxy holding the object we are bound to More... | |
bool | m_useItr |
use the proxy-iterator or just the proxy ? More... | |
bool | isConst () const |
bool | isInitialized () const |
weaker test but it does not touch the disk! More... | |
bool | isSet () const |
const std::string & | key () const |
Get the key string with which the current object was stored. More... | |
StatusCode | setState (SG::DataProxy *proxy) const |
StatusCode | setState (IProxyDict *store, const ID_type &name) const |
StatusCode | setState (SG::ConstProxyIterator &itr1, const SG::ConstProxyIterator &itr2) const |
virtual CLID | clid () const =0 |
the CLID of the object we are bound to More... | |
ID_type | ID () const |
get the data object key (ID) More... | |
StatusCode | setState (SG::DataProxy *proxy) |
StatusCode | setState (IProxyDict *store, const ID_type &name) |
an iterator over instances of a given type in an IProxyDict
(such as StoreGateSvc). It d-casts and caches locally the pointed-at object, to speed-up subsequent accesses. It can be reset by the store for asynchronous updates (IOVSvc)
Definition at line 37 of file DataHandleBase.h.
typedef std::string DataHandleBase::ID_type |
Definition at line 44 of file DataHandleBase.h.
DataHandleBase::DataHandleBase | ( | ) |
DataHandleBase::DataHandleBase | ( | const DataHandleBase & | rhs | ) |
DataHandleBase::DataHandleBase | ( | SG::DataProxy * | proxy | ) |
DataHandleBase::DataHandleBase | ( | const SG::ConstProxyIterator & | itr1, |
const SG::ConstProxyIterator & | itr2 | ||
) |
|
virtual |
Destructor:
Definition at line 107 of file DataHandleBase.cxx.
|
pure virtual |
the CLID of the object we are bound to
Implemented in DataHandle< DATA >.
|
inlinevirtualinherited |
optional special action on final reset call (e.g. in caller destructor)
Reimplemented in SG::VarHandleBase.
Definition at line 33 of file IResetable.h.
|
inline |
bool DataHandleBase::isConst | ( | ) | const |
Definition at line 196 of file DataHandleBase.cxx.
bool DataHandleBase::isInitialized | ( | ) | const |
weaker test but it does not touch the disk!
Definition at line 207 of file DataHandleBase.cxx.
|
inlinevirtual |
|
virtual |
Get the key string with which the current object was stored.
Implements IResetable.
Definition at line 186 of file DataHandleBase.cxx.
DataHandleBase & DataHandleBase::operator= | ( | const DataHandleBase & | rhs | ) |
Assignment operator:
Definition at line 53 of file DataHandleBase.cxx.
|
pure virtualinherited |
Clear cached data from this object.
If HARD is true, then also clear any data that depends on the identity of the current event store. HARD will be set if the handle could potentially be looking at a different store the next time it is used. (This happens in Hive.)
For example, a VarHandle caches both a pointer to the referenced object and a pointer to the DataProxy used to reference it. If HARD is false, then only the object pointer need be cleared; but if it is true, then the DataProxy pointer should be cleared as well (and the object deregistered from the store).
Implemented in DataHandle< DATA >, DataHandle< ILArPedestal >, DataHandle< ILArShape >, DataHandle< CondMultChanCollection >, DataHandle< AthenaAttributeList >, DataHandle< GenericDbTable >, DataHandle< StrawDxContainer >, SG::VarHandleBase, and SG::UpdateHandle< T >.
StatusCode DataHandleBase::setState | ( | IProxyDict * | store, |
const ID_type & | name | ||
) |
StatusCode DataHandleBase::setState | ( | IProxyDict * | store, |
const ID_type & | name | ||
) | const |
StatusCode DataHandleBase::setState | ( | SG::ConstProxyIterator & | itr1, |
const SG::ConstProxyIterator & | itr2 | ||
) | const |
Definition at line 123 of file DataHandleBase.cxx.
StatusCode DataHandleBase::setState | ( | SG::DataProxy * | proxy | ) |
Definition at line 217 of file DataHandleBase.cxx.
StatusCode DataHandleBase::setState | ( | SG::DataProxy * | proxy | ) | const |
Definition at line 156 of file DataHandleBase.cxx.
|
mutableprotected |
iterator pointing at the beginning of the range of proxies
Definition at line 109 of file DataHandleBase.h.
|
mutableprotected |
iterator pointing at the end of the range of proxies
Definition at line 112 of file DataHandleBase.h.
|
mutableprotected |
the proxy holding the object we are bound to
Definition at line 115 of file DataHandleBase.h.
|
mutableprotected |
use the proxy-iterator or just the proxy ?
Definition at line 118 of file DataHandleBase.h.