|
Zip and Skip Tries
|
Provides forward/backward iteration over the keys in the base level of the SkipTrie. More...
#include <SkipTrie.hpp>

Public Member Functions | |
| Iterator (Node *node, Direction direction) noexcept | |
| Constructs an iterator. | |
| Iterator & | operator++ () noexcept |
| Pre-increments the iterator to the next node in its designated direction. | |
| Iterator | operator++ (int) noexcept |
| Post-increments the iterator. | |
| const KEY_T & | operator* () const noexcept |
| Dereferences the iterator to access the key of the current node. | |
| const KEY_T * | operator-> () const noexcept |
| Dereferences the iterator to access the key pointer of the current node. | |
| bool | operator== (const Iterator &other) const noexcept |
| Compares this iterator with another for equality. | |
| bool | operator!= (const Iterator &other) const noexcept |
| Compares this iterator with another for inequality. | |
Private Attributes | |
| Node * | m_node |
| Pointer to the current node the iterator is positioned at. | |
| Direction | m_direction |
| The direction the iterator moves upon incrementing. | |
Provides forward/backward iteration over the keys in the base level of the SkipTrie.
Allows traversal through the nodes at level 0 using standard iterator operations (++, *, ->, ==, !=). Can be constructed to move FORWARD or BACKWARD.
Definition at line 392 of file SkipTrie.hpp.
|
noexcept |
Constructs an iterator.
| node | A pointer to the starting Node for the iterator (usually a node at level 0). |
| direction | The direction (FORWARD or BACKWARD) the iterator will move upon incrementing. |
Definition at line 483 of file SkipTrie.hpp.
|
noexcept |
Compares this iterator with another for inequality.
| other | The iterator to compare against. |
Nodes, false otherwise. Definition at line 523 of file SkipTrie.hpp.
|
noexcept |
Dereferences the iterator to access the key of the current node.
BitString key at the iterator's current position. Definition at line 505 of file SkipTrie.hpp.
|
noexcept |
Pre-increments the iterator to the next node in its designated direction.
Definition at line 490 of file SkipTrie.hpp.
|
noexcept |
Post-increments the iterator.
++it) for potentially better performance. Definition at line 497 of file SkipTrie.hpp.
|
noexcept |
Dereferences the iterator to access the key pointer of the current node.
BitString key at the iterator's current position. Definition at line 511 of file SkipTrie.hpp.
|
noexcept |
Compares this iterator with another for equality.
| other | The iterator to compare against. |
Node, false otherwise. Definition at line 517 of file SkipTrie.hpp.
|
private |
The direction the iterator moves upon incrementing.
Definition at line 445 of file SkipTrie.hpp.
|
private |
Pointer to the current node the iterator is positioned at.
Definition at line 443 of file SkipTrie.hpp.