Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Gen_Avl_Tree_Rk< NodeType, Key, Compare >::Iterator Class Reference

Iterator over the nodes. More...

#include <tpl_avlRk.H>

Inheritance diagram for Aleph::Gen_Avl_Tree_Rk< NodeType, Key, Compare >::Iterator:
[legend]
Collaboration diagram for Aleph::Gen_Avl_Tree_Rk< NodeType, Key, Compare >::Iterator:
[legend]

Private Types

using Base = BinTreeXt_Iterator< Gen_Avl_Tree_Rk, Node, Key, Compare >
 

Additional Inherited Members

- Public Member Functions inherited from Aleph::BinTreeXt_Iterator< Gen_Avl_Tree_Rk, Node, Key, Compare >
 BinTreeXt_Iterator () noexcept
 
 BinTreeXt_Iterator (const Gen_Avl_Tree_Rk &__tree) noexcept
 
 BinTreeXt_Iterator (const Gen_Avl_Tree_Rk &__tree, Node *__curr) noexcept
 
 BinTreeXt_Iterator (const Gen_Avl_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_Avl_Tree_Rk, Node, Key, Compare >
Gen_Avl_Tree_Rk * tree_ptr
 
Node * curr
 
int curr_pos
 
- Static Protected Attributes inherited from Aleph::BinTreeXt_Iterator< Gen_Avl_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
 

Detailed Description

template<template< typename > class NodeType, typename Key, class Compare>
class Aleph::Gen_Avl_Tree_Rk< NodeType, Key, Compare >::Iterator

Iterator over the nodes.

This class allows traversing the tree nodes in sorted order according to the comparison criterion specified at tree instantiation.

Definition at line 1568 of file tpl_avlRk.H.

Member Typedef Documentation

◆ Base

template<template< typename > class NodeType, typename Key , class Compare >
using Aleph::Gen_Avl_Tree_Rk< NodeType, Key, Compare >::Iterator::Base = BinTreeXt_Iterator<Gen_Avl_Tree_Rk, Node, Key, Compare>
private

Definition at line 1570 of file tpl_avlRk.H.


The documentation for this class was generated from the following file: