|
ADS
Algorithms and Data Structures
|
the bidirectional iterator, the cell and the one before it, on items const if Const More...
#include <ADS/sequence/XorList.h>
Public types | |
| using | iterator_category = std::bidirectional_iterator_tag |
| bidirectional | |
| using | value_type = T |
| the items | |
| using | difference_type = std::ptrdiff_t |
| the distances | |
| using | reference = std::conditional_t< Const , const T & , T & > |
| a reference to an item, constant if Const | |
| using | pointer = std::conditional_t< Const , const T * , T * > |
| a pointer to an item, constant if Const | |
Public member functions | |
| Iterator (void)=default | |
| an iterator on no list | |
| Iterator (Cell *p, Cell *c) | |
| on the cell \( c \), coming from \( p \) | |
| template<bool K> requires ( Const && ! K ) | |
| Iterator (const Iterator< K > &o) | |
| the constant iterator from the mutable one | |
| reference | operator* (void) const |
| the item | |
| pointer | operator-> (void) const |
| the address of the item | |
| Iterator & | operator++ (void) |
| to the next cell, \( \mathit{link} \oplus \mathit{prev} \) | |
| Iterator & | operator-- (void) |
| to the previous cell | |
| Iterator | operator++ (int) |
| to the next item, returning the iterator before the step | |
| Iterator | operator-- (int) |
| to the previous item, returning the iterator before the step | |
| bool | operator== (const Iterator &o) const |
| equal on the same cell | |
Friends | |
| template<bool> | |
| class | Iterator |
the bidirectional iterator, the cell and the one before it, on items const if Const
| using ADS::XorList< T >::Iterator< Const >::difference_type = std::ptrdiff_t |
the distances
| using ADS::XorList< T >::Iterator< Const >::iterator_category = std::bidirectional_iterator_tag |
bidirectional
| using ADS::XorList< T >::Iterator< Const >::pointer = std::conditional_t< Const , const T * , T * > |
a pointer to an item, constant if Const
| using ADS::XorList< T >::Iterator< Const >::reference = std::conditional_t< Const , const T & , T & > |
a reference to an item, constant if Const
the items
|
default |
an iterator on no list
|
inline |
on the cell \( c \), coming from \( p \)
|
inline |
the constant iterator from the mutable one
|
inline |
the item
|
inline |
to the next item, returning the iterator before the step
|
inline |
to the next cell, \( \mathit{link} \oplus \mathit{prev} \)
|
inline |
to the previous item, returning the iterator before the step
|
inline |
to the previous cell
|
inline |
the address of the item
|
inline |
equal on the same cell
|
friend |