ATLAS Offline Software
|
#include <SGIterator.h>
Public Member Functions | |
Iterator () | |
Default constructor. More... | |
Iterator (const SG::ConstProxyIterator &itr, const SG::ConstProxyIterator &itrEnd) | |
Constructor from proxy iterator pair. More... | |
StatusCode | setState (const SG::ConstProxyIterator &itr, const SG::ConstProxyIterator &itrEnd) |
Reset state of the iterator. More... | |
DataProxy * | proxy () const |
The proxy pointed at by this iterator. More... | |
const std::string & | key () const |
Get the key string with which the current object was stored. More... | |
Protected Member Functions | |
StatusCode | setState (SG::ConstProxyIterator itr, SG::ConstProxyIterator itrEnd, bool isConst) |
Reset state of the iterator. More... | |
void | increment () |
Move to the next valid proxy. More... | |
bool | eql (const IteratorBase &rhs) const |
Equality check. More... | |
void | const_check () const |
Const check: throw an exception if we're pointing at a const proxy. More... | |
Private Member Functions | |
bool | equal (const Iterator< DATA > &rhs) const |
Equality check. More... | |
DATA & | dereference () const |
Dereference the iterator. More... | |
void | addRef () |
Add a reference count to all proxies in our range. More... | |
void | release () |
Remove a reference count from all proxies in our range. More... | |
Private Attributes | |
std::vector< SG::DataProxy * > | m_proxies |
All proxies in our range, in reverse order. More... | |
Friends | |
class | boost::iterator_core_access |
an iterator facade to DataHandle. Behaves like a forward iterator
Definition at line 223 of file SGIterator.h.
SG::Iterator< DATA >::Iterator | ( | ) |
Default constructor.
|
explicit |
Constructor from proxy iterator pair.
itr | Starting proxy iterator. |
itrEnd | Ending proxy iterator. |
Will skip ahead to the first valid proxy.
|
privateinherited |
Add a reference count to all proxies in our range.
|
protectedinherited |
Const check: throw an exception if we're pointing at a const proxy.
Called when dereferencing a non-const iterator.
Definition at line 137 of file SGIterator.cxx.
|
private |
Dereference the iterator.
Used by the boost iterator adapter.
Will throw SG::ExcInvalidIterator() if the proxy is not valid. Will throw SG::ExcConstObject if the proxy is const.
|
protectedinherited |
Equality check.
|
private |
Equality check.
Used by the boost iterator adapter.
|
protectedinherited |
Move to the next valid proxy.
Used by the boost iterator adapter.
Definition at line 123 of file SGIterator.cxx.
|
inherited |
Get the key string with which the current object was stored.
Definition at line 155 of file SGIterator.cxx.
|
inherited |
The proxy pointed at by this iterator.
|
privateinherited |
Remove a reference count from all proxies in our range.
StatusCode SG::Iterator< DATA >::setState | ( | const SG::ConstProxyIterator< DATA > & | itr, |
const SG::ConstProxyIterator< DATA > & | itrEnd | ||
) |
Reset state of the iterator.
itr | Starting proxy iterator. |
itrEnd | Ending proxy iterator. |
Will skip ahead to the first valid proxy. Will return failure if the first proxy is const or if the range is empty.
|
protectedinherited |
Reset state of the iterator.
itr | Starting proxy iterator. |
itrEnd | Ending proxy iterator. |
isConst | Is this for a const iterator? |
Will skip ahead to the first valid proxy. Returns FAILURE if the range is empty.
Definition at line 94 of file SGIterator.cxx.
|
friend |
Definition at line 262 of file SGIterator.h.
|
privateinherited |
All proxies in our range, in reverse order.
Definition at line 145 of file SGIterator.h.