DGtal 2.0.0
|
Read iterator on set elements. Model of ForwardIterator. More...
#include <DGtal/kernel/UnorderedSetByBlock.h>
Public Member Functions | |
const_iterator () | |
Default constructor. | |
const_iterator (const Self &aSet, typename Container::const_iterator anIt) | |
const_iterator (const Self &aSet, typename Container::const_iterator anIt, Coordinate aBit) | |
const_iterator (const Self &aSet, const Key &key) |
Private Member Functions | |
void | increment () |
bool | equal (const const_iterator &other) const |
const Key | dereference () const |
Private Attributes | |
const Self * | collection |
the collection that this iterator is traversing. | |
Container::const_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 iterator on set elements. Model of ForwardIterator.
Definition at line 200 of file UnorderedSetByBlock.h.
|
inline |
Default constructor.
Definition at line 207 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 214 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 233 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 cend(). |
Definition at line 249 of file UnorderedSetByBlock.h.
References collection, and it.
|
inlineprivate |
Definition at line 298 of file UnorderedSetByBlock.h.
References bit, collection, and it.
|
inlineprivate |
Definition at line 292 of file UnorderedSetByBlock.h.
References bit, collection, const_iterator(), and it.
|
inlineprivate |
Definition at line 269 of file UnorderedSetByBlock.h.
References bit, collection, current, it, and DGtal::Bits::leastSignificantBit().
|
friend |
Definition at line 268 of file UnorderedSetByBlock.h.
References boost::iterator_core_access.
Referenced by boost::iterator_core_access.
|
friend |
Definition at line 1101 of file UnorderedSetByBlock.h.
|
private |
the current position in the block.
Definition at line 308 of file UnorderedSetByBlock.h.
Referenced by const_iterator(), const_iterator(), dereference(), equal(), DGtal::UnorderedSetByBlock< Key, TSplitter, Hash, KeyEqual, UnorderedMapAllocator >::iterator::equal(), and increment().
|
private |
the collection that this iterator is traversing.
Definition at line 304 of file UnorderedSetByBlock.h.
Referenced by const_iterator(), const_iterator(), const_iterator(), const_iterator(), dereference(), equal(), DGtal::UnorderedSetByBlock< Key, TSplitter, Hash, KeyEqual, UnorderedMapAllocator >::iterator::equal(), and increment().
|
private |
the current value of the block, where visited bits have been erased.
Definition at line 310 of file UnorderedSetByBlock.h.
Referenced by const_iterator(), const_iterator(), and increment().
|
private |
the hidden iterator that traverses the block map.
Definition at line 306 of file UnorderedSetByBlock.h.
Referenced by const_iterator(), const_iterator(), const_iterator(), const_iterator(), dereference(), equal(), DGtal::UnorderedSetByBlock< Key, TSplitter, Hash, KeyEqual, UnorderedMapAllocator >::iterator::equal(), and increment().