|
| | Iterator (skipListNode *cur=nullptr) |
| | Constructs iterator.
|
| |
|
| Iterator (const Iterator &other) |
| | Copy constructor.
|
| |
|
Iterator & | operator= (const Iterator &other) |
| | Copy assignment operator.
|
| |
| bool | hasNext () const |
| | Checks if more elements exist forward.
|
| |
|
void | next () const |
| | Moves to next element.
|
| |
| Iterator * | clone () const |
| | Creates a copy of this iterator.
|
| |
| void | operator+= (integer steps) const |
| | Advances iterator by steps.
|
| |
| integer | operator- (const Iterator &other) const |
| | Calculates distance between iterators.
|
| |
| couple< const K_TYPE, V_TYPE > & | get () |
| | Gets current element (non-const)
|
| |
| couple< const K_TYPE, V_TYPE > | get () const |
| | Gets current element (const)
|
| |
| bool | isValid () const |
| | Checks if iterator is valid.
|
| |
template<typename K_TYPE, typename V_TYPE, typename ALLOC = allocator<K_TYPE>, typename Compare = increaseComparator<K_TYPE>>
class original::skipList< K_TYPE, V_TYPE, ALLOC, Compare >::Iterator
Forward iterator for skipList.
Provides iteration over list elements in sorted order