![]() |
ATLAS Offline Software
|
an iterator over instances of a given type in 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 <DataHandle.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = DATA |
| using | difference_type = std::ptrdiff_t |
| using | pointer = value_type * |
| using | reference = value_type & |
| typedef pointer | pointer_type |
| using | const_pointer_type = const DATA * |
| using | reference_type = reference |
| using | const_reference_type = const DATA & |
| typedef DataHandleBase::ID_type | ID_type |
Public Member Functions | |
| virtual void | finalReset () |
| optional special action on final reset call (e.g. in caller destructor) More... | |
constructors and assignment | |
| DataHandle () | |
| DataHandle (const DataHandle &h) | |
| DataHandle & | operator= (const DataHandle &h) |
| DataHandle & | operator= (const DATA &d) |
| virtual | ~DataHandle () |
| unbind from the proxy before we go More... | |
validity checks | |
| bool | isValid () const |
| RETRIEVES the DO to check it is valid and unlocked. More... | |
| bool | operator! () const |
| DEPRECATED for statements like: if (!DataHandle<XXX>) {...}. More... | |
| operator int () const | |
| DEPRECATED for statements like: if (DataHandle<XXX>) {...}. More... | |
iterator interface | |
| const DataHandle & | operator++ () const |
| prefix More... | |
| DataHandle | operator++ (int) const |
| postfix More... | |
| const_pointer_type | operator-> () const |
| const_reference_type | operator* () const |
access to the underlying ptr | |
| operator const_pointer_type () const | |
| often ambiguous More... | |
| const_pointer_type | cptr () const |
| safer explicit ptr accessor More... | |
| virtual void | reset (bool) override |
| reset pointer More... | |
validity checks | |
| bool | isConst () const |
| bool | isInitialized () const |
| weaker test but it does not touch the disk! More... | |
| virtual bool | isSet () const override |
| virtual const std::string & | key () const override |
| 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 |
| StatusCode | setState (SG::DataProxy *proxy) |
| StatusCode | setState (IProxyDict *store, const ID_type &name) |
| ID_type | ID () const |
| get the data object key (ID) More... | |
| 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... | |
other constructors and methods for SG internal use | |
| const_pointer_type | m_ptr |
| DataHandle (SG::DataProxy *proxy) | |
| DataHandle (const SG::ConstProxyIterator &itr1, const SG::ConstProxyIterator &itr2) | |
| virtual CLID | clid () const override |
| the CLID of the object we are bound to More... | |
| bool | operator==ATLAS_NOT_THREAD_SAFE (const DataHandle< DATA > &h1, const DataHandle< DATA > &h2) |
| bool | operator!=ATLAS_NOT_THREAD_SAFE (const DataHandle< DATA > &h1, const DataHandle< DATA > &h2) |
| const_pointer_type | dataPointer () const |
an iterator over instances of a given type in 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)
Holds a reference count on the proxy to which it's currently pointing. Note: one may think that we should hold reference counts for the entire range which the DataHandle references (if it is a range). The problem with this is that the range may change underneath us. For example, if someone does a SG record, then a new element may appear within the range. So we only hold the refcount for the object to which we're currently pointing.
| DATA | the data object type |
Definition at line 41 of file DataHandle.h.
| using DataHandle< DATA >::const_pointer_type = const DATA* |
Definition at line 52 of file DataHandle.h.
| using DataHandle< DATA >::const_reference_type = const DATA& |
Definition at line 54 of file DataHandle.h.
| using DataHandle< DATA >::difference_type = std::ptrdiff_t |
Definition at line 47 of file DataHandle.h.
| typedef DataHandleBase::ID_type DataHandle< DATA >::ID_type |
Definition at line 56 of file DataHandle.h.
| using DataHandle< DATA >::iterator_category = std::forward_iterator_tag |
Definition at line 45 of file DataHandle.h.
| using DataHandle< DATA >::pointer = value_type* |
Definition at line 48 of file DataHandle.h.
| typedef pointer DataHandle< DATA >::pointer_type |
Definition at line 51 of file DataHandle.h.
| using DataHandle< DATA >::reference = value_type& |
Definition at line 49 of file DataHandle.h.
| using DataHandle< DATA >::reference_type = reference |
Definition at line 53 of file DataHandle.h.
| using DataHandle< DATA >::value_type = DATA |
Definition at line 46 of file DataHandle.h.
| DataHandle< DATA >::DataHandle | ( | ) |
| DataHandle< DATA >::DataHandle | ( | const DataHandle< DATA > & | h | ) |
|
virtual |
unbind from the proxy before we go
| DataHandle< DATA >::DataHandle | ( | SG::DataProxy * | proxy | ) |
| DataHandle< DATA >::DataHandle | ( | const SG::ConstProxyIterator & | itr1, |
| const SG::ConstProxyIterator & | itr2 | ||
| ) |
|
inlineoverridevirtual |
the CLID of the object we are bound to
Implements DataHandleBase.
Definition at line 120 of file DataHandle.h.
| const_pointer_type DataHandle< DATA >::cptr | ( | ) | const |
safer explicit ptr accessor
|
private |
|
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.
|
inlineinherited |
|
inherited |
Definition at line 196 of file DataHandleBase.cxx.
|
inherited |
weaker test but it does not touch the disk!
Definition at line 207 of file DataHandleBase.cxx.
|
inlineoverridevirtualinherited |
| bool DataHandle< DATA >::isValid | ( | ) | const |
RETRIEVES the DO to check it is valid and unlocked.
|
overridevirtualinherited |
Get the key string with which the current object was stored.
Implements IResetable.
Definition at line 186 of file DataHandleBase.cxx.
|
inline |
often ambiguous
Definition at line 104 of file DataHandle.h.
|
inline |
DEPRECATED for statements like: if (DataHandle<XXX>) {...}.
Definition at line 89 of file DataHandle.h.
|
inline |
DEPRECATED for statements like: if (!DataHandle<XXX>) {...}.
Definition at line 85 of file DataHandle.h.
|
inline |
Definition at line 99 of file DataHandle.h.
| const DataHandle& DataHandle< DATA >::operator++ | ( | ) | const |
prefix
| DataHandle DataHandle< DATA >::operator++ | ( | int | ) | const |
postfix
|
inline |
Definition at line 97 of file DataHandle.h.
|
inline |
Definition at line 63 of file DataHandle.h.
| DataHandle& DataHandle< DATA >::operator= | ( | const DataHandle< DATA > & | h | ) |
|
inlineoverridevirtual |
|
inherited |
|
inherited |
|
inherited |
Definition at line 123 of file DataHandleBase.cxx.
|
inherited |
Definition at line 217 of file DataHandleBase.cxx.
|
inherited |
Definition at line 156 of file DataHandleBase.cxx.
|
friend |
Definition at line 130 of file DataHandle.h.
|
friend |
Definition at line 123 of file DataHandle.h.
|
mutableprotectedinherited |
iterator pointing at the beginning of the range of proxies
Definition at line 109 of file DataHandleBase.h.
|
mutableprotectedinherited |
iterator pointing at the end of the range of proxies
Definition at line 112 of file DataHandleBase.h.
|
mutableprotectedinherited |
the proxy holding the object we are bound to
Definition at line 115 of file DataHandleBase.h.
|
mutableprivate |
Definition at line 140 of file DataHandle.h.
|
mutableprotectedinherited |
use the proxy-iterator or just the proxy ?
Definition at line 118 of file DataHandleBase.h.
1.8.18