|
ADS
Algorithms and Data Structures
|
a forward iterator along the cells C linked by the member Next, on the items V in the member Value; nil is the end More...
#include <ADS/Iterators.h>
Public types | |
| using | iterator_category = std::forward_iterator_tag |
| forward | |
| using | value_type = V |
| the items | |
| using | difference_type = std::ptrdiff_t |
| the distances | |
| using | reference = std::conditional_t< Const , const V & , V & > |
| a reference to an item, constant if Const | |
| using | pointer = std::conditional_t< Const , const V * , V * > |
| a pointer to an item, constant if Const | |
Public member functions | |
| LinkedIterator (void)=default | |
| the end | |
| LinkedIterator (Cell *c) | |
| on the item of the cell \( c \), the end if \( c \) is nil | |
| template<bool K> requires ( Const && ! K ) | |
| LinkedIterator (const LinkedIterator< C, V, Next, Value, K > &o) | |
| the constant iterator from the mutable one | |
| reference | operator* (void) const |
| the item | |
| pointer | operator-> (void) const |
| the address of the item | |
| LinkedIterator & | operator++ (void) |
| to the next cell, by the link Next | |
| LinkedIterator | operator++ (int) |
| to the next cell, returning the iterator before the step | |
| bool | operator== (const LinkedIterator &o) const =default |
| equal on the same cell | |
| Cell * | cell (void) const |
| the cell of the item, nil at the end | |
a forward iterator along the cells C linked by the member Next, on the items V in the member Value; nil is the end
| using ADS::LinkedIterator< C, V, Next, Value, Const >::difference_type = std::ptrdiff_t |
the distances
| using ADS::LinkedIterator< C, V, Next, Value, Const >::iterator_category = std::forward_iterator_tag |
forward
| using ADS::LinkedIterator< C, V, Next, Value, Const >::pointer = std::conditional_t< Const , const V * , V * > |
a pointer to an item, constant if Const
| using ADS::LinkedIterator< C, V, Next, Value, Const >::reference = std::conditional_t< Const , const V & , V & > |
a reference to an item, constant if Const
| using ADS::LinkedIterator< C, V, Next, Value, Const >::value_type = V |
the items
|
default |
the end
|
inlineexplicit |
on the item of the cell \( c \), the end if \( c \) is nil
|
inline |
the constant iterator from the mutable one
|
inlinenodiscard |
the cell of the item, nil at the end
|
inline |
the item
|
inline |
to the next cell, returning the iterator before the step
|
inline |
to the next cell, by the link Next
|
inline |
the address of the item
|
default |
equal on the same cell