DGtal 2.0.0
|
Read-write iterator on set elements. Model of ForwardIterator. More...
#include <DGtal/kernel/UnorderedSetByBlock.h>
Public Member Functions | |
iterator () | |
Default constructor. | |
iterator (Self &aSet, typename Container::iterator anIt) | |
iterator (Self &aSet, typename Container::iterator anIt, Coordinate aBit) | |
iterator (Self &aSet, const Key &key) | |
iterator (const const_iterator &other) | |
iterator (const_iterator &&other) | |
operator const_iterator () const |
Private Member Functions | |
void | increment () |
bool | equal (const iterator &other) const |
bool | equal (const const_iterator &other) const |
const Key | dereference () const |
Private Attributes | |
Self * | collection |
the collection that this iterator is traversing. | |
Container::iterator | it |
the hidden iterator that traverses the block map. | |
Coordinate | bit |
the current position in the block. | |
Word | current |
the current value of the block, where visited bits have been erased. |
Friends | |
struct | UnorderedSetByBlock< Key, TSplitter, Hash, KeyEqual > |
class | boost::iterator_core_access |
Read-write iterator on set elements. Model of ForwardIterator.
Definition at line 315 of file UnorderedSetByBlock.h.
|
inline |
Default constructor.
Definition at line 322 of file UnorderedSetByBlock.h.
References bit, collection, current, and it.
Referenced by equal().
|
inline |
Constructor from set and container iterator
aSet | a reference to the visited unordered block set |
anIt | an iterator in the container of this set. |
Definition at line 329 of file UnorderedSetByBlock.h.
References collection, and it.
|
inline |
Constructor from set, container iterator and starting bit
aSet | a reference to the visited unordered block set |
anIt | an iterator in the container of this set. |
aBit | the bit index in the word pointed by anIt. |
Definition at line 348 of file UnorderedSetByBlock.h.
References bit, collection, current, and it.
|
inline |
Constructor from set and starting key.
aSet | a reference to the visited unordered block set |
key | any key (if it is in the set, the iterator point on the key, otherwise it is iterator end(). |
Definition at line 366 of file UnorderedSetByBlock.h.
References collection, and it.
|
inline |
Constructor from const_iterator
other | any const_iterator |
Definition at line 386 of file UnorderedSetByBlock.h.
References bit, collection, current, and it.
|
inline |
Move constructor from const_iterator
other | any const_iterator |
Definition at line 393 of file UnorderedSetByBlock.h.
References bit, collection, current, and it.
|
inlineprivate |
Definition at line 447 of file UnorderedSetByBlock.h.
References bit, collection, and it.
|
inlineprivate |
Definition at line 441 of file UnorderedSetByBlock.h.
References DGtal::UnorderedSetByBlock< Key, TSplitter, Hash, KeyEqual, UnorderedMapAllocator >::const_iterator::bit, bit, DGtal::UnorderedSetByBlock< Key, TSplitter, Hash, KeyEqual, UnorderedMapAllocator >::const_iterator::collection, collection, DGtal::UnorderedSetByBlock< Key, TSplitter, Hash, KeyEqual, UnorderedMapAllocator >::const_iterator::it, and it.
|
inlineprivate |
Definition at line 432 of file UnorderedSetByBlock.h.
References bit, collection, it, and iterator().
|
inlineprivate |
Definition at line 409 of file UnorderedSetByBlock.h.
References bit, collection, current, it, and DGtal::Bits::leastSignificantBit().
|
inline |
Conversation to const_iterator
Definition at line 402 of file UnorderedSetByBlock.h.
References bit, collection, and it.
|
friend |
Definition at line 408 of file UnorderedSetByBlock.h.
References boost::iterator_core_access.
Referenced by boost::iterator_core_access.
|
friend |
Definition at line 310 of file UnorderedSetByBlock.h.
|
private |
the current position in the block.
Definition at line 457 of file UnorderedSetByBlock.h.
Referenced by dereference(), equal(), equal(), increment(), iterator(), iterator(), iterator(), iterator(), and operator const_iterator().
|
private |
the collection that this iterator is traversing.
Definition at line 453 of file UnorderedSetByBlock.h.
Referenced by dereference(), equal(), equal(), increment(), iterator(), iterator(), iterator(), iterator(), iterator(), iterator(), and operator const_iterator().
|
private |
the current value of the block, where visited bits have been erased.
Definition at line 459 of file UnorderedSetByBlock.h.
Referenced by increment(), iterator(), iterator(), iterator(), and iterator().
|
private |
the hidden iterator that traverses the block map.
Definition at line 455 of file UnorderedSetByBlock.h.
Referenced by dereference(), equal(), equal(), increment(), iterator(), iterator(), iterator(), iterator(), iterator(), iterator(), and operator const_iterator().