|
ADS
Algorithms and Data Structures
|
a forward iterator on the nodes H (pointers or indices) of the owner O, from a first node, by the policy P with next( o , n , root ) and the constant none, the end, o being a pointer to the owner; *it is the node More...
#include <ADS/Iterators.h>
Public types | |
| using | value_type = H |
| the nodes | |
| using | reference = H |
| a node, by value | |
| using | difference_type = std::ptrdiff_t |
| the distances | |
| using | iterator_concept = std::forward_iterator_tag |
| forward 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 | |
| WalkIterator (void)=default | |
| the end | |
| WalkIterator (const O *o, H n, H root) | |
| on the node n of the walk below root of the owner o | |
| reference | operator* (void) const |
| the node | |
| WalkIterator & | operator++ (void) |
| to the next node of the walk, P::next( o , n , root ) | |
| WalkIterator | operator++ (int) |
| to the next node, returning the iterator before the step | |
| bool | operator== (const WalkIterator &o) const |
| equal on the same node | |
a forward iterator on the nodes H (pointers or indices) of the owner O, from a first node, by the policy P with next( o , n , root ) and the constant none, the end, o being a pointer to the owner; *it is the node
| using ADS::WalkIterator< O, H, P >::difference_type = std::ptrdiff_t |
the distances
| using ADS::WalkIterator< O, H, P >::iterator_category = std::input_iterator_tag |
input for the older algorithms, since *it is a value
| using ADS::WalkIterator< O, H, P >::iterator_concept = std::forward_iterator_tag |
forward for the concepts of C++20
| using ADS::WalkIterator< O, H, P >::reference = H |
a node, by value
| using ADS::WalkIterator< O, H, P >::value_type = H |
the nodes
|
default |
the end
|
inline |
on the node n of the walk below root of the owner o
|
inline |
the node
|
inline |
to the next node, returning the iterator before the step
|
inline |
to the next node of the walk, P::next( o , n , root )
|
inline |
equal on the same node