|
ADS
Algorithms and Data Structures
|
the constant iterator on the pairs, by increasing key More...
#include <ADS/tree/SearchTree.h>
Public types | |
| using | reference = PairRef< const K & , const V & > |
| a pair of references to a key and its value | |
| using | value_type = std::pair< K , V > |
| the pairs, by value | |
| using | difference_type = std::ptrdiff_t |
| the type of the distances | |
| using | iterator_concept = std::bidirectional_iterator_tag |
| bidirectional for the concepts of C++20 | |
| using | iterator_category = std::input_iterator_tag |
| input for the older algorithms, since *it is a value | |
Public member functions | |
| const_iterator (void)=default | |
| an iterator on no tree | |
| const_iterator (const SearchTree *t, Link *x) | |
| on the node \( x \) of the tree \( t \) | |
| reference | operator* (void) const |
| the pair of the node | |
| const_iterator & | operator++ (void) |
| to the next key, successorNode() | |
| const_iterator & | operator-- (void) |
| to the previous key, from the end to the largest one | |
| const_iterator | operator++ (int) |
| to the next key, returning the iterator before the step | |
| const_iterator | operator-- (int) |
| to the previous key, returning the iterator before the step | |
| bool | operator== (const const_iterator &o) const |
| equal on the same node | |
| Link * | node (void) const |
| the node, the sentinel at the end | |
the constant iterator on the pairs, by increasing key
| using ADS::SearchTree< K, V, RB >::const_iterator::difference_type = std::ptrdiff_t |
the type of the distances
| using ADS::SearchTree< K, V, RB >::const_iterator::iterator_category = std::input_iterator_tag |
input for the older algorithms, since *it is a value
| using ADS::SearchTree< K, V, RB >::const_iterator::iterator_concept = std::bidirectional_iterator_tag |
bidirectional for the concepts of C++20
| using ADS::SearchTree< K, V, RB >::const_iterator::reference = PairRef< const K & , const V & > |
a pair of references to a key and its value
| using ADS::SearchTree< K, V, RB >::const_iterator::value_type = std::pair< K , V > |
the pairs, by value
|
default |
an iterator on no tree
|
inline |
on the node \( x \) of the tree \( t \)
|
inlinenodiscard |
the node, the sentinel at the end
|
inline |
the pair of the node
|
inline |
to the next key, returning the iterator before the step
|
inline |
to the next key, successorNode()
|
inline |
to the previous key, returning the iterator before the step
|
inline |
to the previous key, from the end to the largest one
|
inline |
equal on the same node