|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Iterator on nodes of the tree. More...
#include <tpl_rbRk.H>
Private Types | |
| using | Base = BinTreeXt_Iterator< Gen_Rb_Tree_Rk, Node, Key, Compare > |
Additional Inherited Members | |
Public Member Functions inherited from Aleph::BinTreeXt_Iterator< Gen_Rb_Tree_Rk, Node, Key, Compare > | |
| BinTreeXt_Iterator () noexcept | |
| BinTreeXt_Iterator (const Gen_Rb_Tree_Rk &__tree) noexcept | |
| BinTreeXt_Iterator (const Gen_Rb_Tree_Rk &__tree, Node *__curr) noexcept | |
| BinTreeXt_Iterator (const Gen_Rb_Tree_Rk &__tree, const size_t pos) noexcept | |
Initialize an iterator on the inorder position pos. | |
| BinTreeXt_Iterator (const BinTreeXt_Iterator &itor) noexcept | |
| BinTreeXt_Iterator & | operator= (const BinTreeXt_Iterator &itor) noexcept |
| void | reset_first () noexcept |
| void | reset_last () noexcept |
| void | end () noexcept |
| void | reset_to_key (const Key &key) noexcept(noexcept(tree_ptr->find_position(key))) |
| Put the iterator on the node of a key. | |
| void | reset_to_node (Node *node) noexcept |
| void | reset_to_pos (const size_t pos) noexcept |
Put the iterator on the inorder position pos. | |
| Node * | get_curr_ne () const noexcept |
| Return the current node. | |
| Node * | get_curr () const noexcept |
| Return the current node. | |
| size_t | get_current_position () const |
| size_t | get_pos () const |
| bool | has_curr () const noexcept(nothrow_compare_v< Compare, Key >) |
Return true if the iterator has a current node. | |
| void | prev () |
| void | next_ne () noexcept |
| Move the iterator one position forward, without the check of next(). | |
| void | next () |
| Node * | del () |
| bool | operator== (const BinTreeXt_Iterator &itor) const noexcept(nothrow_compare_v< Compare, Key >) |
Return true if this and itor are on the same position. | |
| bool | operator!= (const BinTreeXt_Iterator &itor) const |
Protected Attributes inherited from Aleph::BinTreeXt_Iterator< Gen_Rb_Tree_Rk, Node, Key, Compare > | |
| Gen_Rb_Tree_Rk * | tree_ptr |
| Node * | curr |
| int | curr_pos |
Static Protected Attributes inherited from Aleph::BinTreeXt_Iterator< Gen_Rb_Tree_Rk, Node, Key, Compare > | |
| static constexpr int | Pos_Not_Current |
| static constexpr int | Pos_Empty_Container |
| static constexpr int | Pos_Not_Updated |
| static constexpr int | Pos_Out_Of_Range |
Iterator on nodes of the tree.
The visit order is inorder.
Definition at line 1630 of file tpl_rbRk.H.
|
private |
Definition at line 1632 of file tpl_rbRk.H.