|
|
| Iterator (const Gen_Treap_Rk &__tree) noexcept |
| | Initialize an iterator on __tree
|
| |
|
| Iterator (const Gen_Treap_Rk &__tree, Node *__curr) noexcept |
| | Initialize an iterator startin from node __curr
|
| |
|
| Iterator (const Gen_Treap_Rk &__tree, const size_t pos) noexcept |
| | Initialize an iterator starting from the iorder position pos
|
| |
|
| Iterator (const Iterator &itor) noexcept |
| |
|
Iterator & | operator= (const Iterator &itor) noexcept |
| |
|
void | reset_first () noexcept |
| | Reset the iterator to the first position.
|
| |
|
void | reset_last () noexcept |
| | Reset the iterator to the last position.
|
| |
|
void | end () noexcept |
| | Put the iterator in the end state.
|
| |
| void | reset_to_key (const Key &key) noexcept |
| |
| void | reset_to_node (Node *node) noexcept |
| |
|
void | reset_to_pos (size_t pos) noexcept |
| | Put the current to the position pos.
|
| |
|
Node * | get_curr_ne () const noexcept |
| | Return the current node.
|
| |
| Node * | get_curr () const noexcept |
| |
| size_t | get_current_position () const |
| |
| size_t | get_pos () const |
| |
|
bool | has_curr () const noexcept |
| | Return true if iterator has current node.
|
| |
| void | prev () |
| |
|
void | next_ne () noexcept |
| |
| void | next () |
| |
|
Node * | del () |
| | Remove the current node and move the iterator one position forward.
|
| |
|
bool | operator== (const Iterator &itor) const noexcept |
| | Return true if this is equal to itor
|
| |
|
bool | operator!= (const Iterator &itor) const |
| | Return true if this is not equal to itor
|
| |
|
bool | verify (Gen_Treap_Rk *r) const noexcept |
| |
|
bool | verify (const Iterator &it) const noexcept |
| |
template<template< class > class NodeType, class Key, class Compare>
class Aleph::Gen_Treap_Rk< NodeType, Key, Compare >::Iterator
Iterator on nodes of the tree.
The visit order is inorder.
template<template< class > class NodeType, class Key, class Compare>
return the position of current node
@return current position
@throw underflow_error if the iterator has not current node
after a `prev()` operation
@throw overflow_error if the iterator has not current node
after a `next()` operation