ATLAS Offline Software
|
#include <SGIterator.h>
Public Member Functions | |
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 | |
IteratorBase () | |
Default constructor. More... | |
IteratorBase (SG::ConstProxyIterator itr, SG::ConstProxyIterator itrEnd, bool isConst) | |
Constructor from proxy iterator pair. More... | |
IteratorBase (const IteratorBase &other) | |
Copy constructor. More... | |
~IteratorBase () | |
Destructor. More... | |
IteratorBase & | operator= (const IteratorBase &other) |
Assignment. More... | |
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 | |
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 |
class | ::SGImplSvc |
Implementation class, not to be used directly Iterates over valid proxies it the range. Maintains a reference count on proxies within the range.
Definition at line 36 of file SGIterator.h.
|
protected |
|
explicitprotected |
Constructor from proxy iterator pair.
itr | Starting proxy iterator. |
itrEnd | Ending proxy iterator. |
isConst | If false, take only non-const proxies. |
Will skip ahead to the first valid proxy.
Definition at line 31 of file SGIterator.cxx.
|
protected |
Copy constructor.
Definition at line 50 of file SGIterator.cxx.
|
protected |
Destructor.
Definition at line 61 of file SGIterator.cxx.
|
private |
Add a reference count to all proxies in our range.
|
protected |
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.
|
protected |
Equality check.
|
protected |
Move to the next valid proxy.
Used by the boost iterator adapter.
Definition at line 123 of file SGIterator.cxx.
const std::string & SG::detail::IteratorBase::key | ( | ) | const |
Get the key string with which the current object was stored.
Definition at line 155 of file SGIterator.cxx.
|
protected |
DataProxy* SG::detail::IteratorBase::proxy | ( | ) | const |
The proxy pointed at by this iterator.
|
private |
Remove a reference count from all proxies in our range.
|
protected |
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 42 of file SGIterator.h.
|
friend |
Definition at line 39 of file SGIterator.h.
|
private |
All proxies in our range, in reverse order.
Definition at line 145 of file SGIterator.h.