![]() |
ATLAS Offline Software
|
Bidirectional iterator over occupied table entries. More...
#include <ConcurrentHashmapImpl.h>
Public Member Functions | |
| const_iterator (const Table &table, bool end) | |
| Constructor. | |
| const_iterator (const Table &table, size_t offset) | |
| Constructor. | |
| void | next () |
| Advance the iterator to the next occupied entry. | |
| void | prev () |
| Move the iterator back to the previous occupied entry. | |
| val_t | key () const |
| Return the key for this iterator. | |
| val_t | value () const |
| Return the value for this iterator. | |
| bool | operator!= (const const_iterator &other) const |
| Compare two iterators. | |
| bool | valid () const |
| Check that the iterator is valid (not pointing at the end). | |
Private Attributes | |
| *The table over which we re iterating const Table & | m_table |
| *The current position in the table *Set to for an end iterator size_t | m_offset |
Bidirectional iterator over occupied table entries.
This is not itself a compliant STL iterator. Derived classes are meant to build a user-facing iterator on top of this.
Definition at line 417 of file ConcurrentHashmapImpl.h.
Constructor.
| table | The table instance we're referencing. |
| end | If true, initialize this to an end iterator. Otherwise, initialize it to a a begin iterator. |
Constructor.
| table | The table instance we're referencing. |
| offset | Offset of the iterator within the table. (Must point at an occupied entry.) |
| val_t CxxUtils::detail::const_iterator::key | ( | ) | const |
Return the key for this iterator.
If deletions are allowed, then the key may change asynchronously to the tombstone value.
| void CxxUtils::detail::const_iterator::next | ( | ) |
Advance the iterator to the next occupied entry.
| bool CxxUtils::detail::const_iterator::operator!= | ( | const const_iterator & | other | ) | const |
Compare two iterators.
| void CxxUtils::detail::const_iterator::prev | ( | ) |
Move the iterator back to the previous occupied entry.
| bool CxxUtils::detail::const_iterator::valid | ( | ) | const |
Check that the iterator is valid (not pointing at the end).
| val_t CxxUtils::detail::const_iterator::value | ( | ) | const |
Return the value for this iterator.
|
private |
Definition at line 481 of file ConcurrentHashmapImpl.h.
|
private |
Definition at line 478 of file ConcurrentHashmapImpl.h.