|
ADS
Algorithms and Data Structures
|
the iterator, on items const if Const More...
#include <ADS/sequence/CursorList.h>
Public types | |
| using | iterator_category = std::forward_iterator_tag |
| the category of the iterator, forward | |
| using | value_type = T |
| the type of the items | |
| using | difference_type = std::ptrdiff_t |
| the type of 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 space | |
| Iterator (Space *S, long c) | |
| on the item of the cell \( c \) of the space \( S \), the end if \( c = 0 \) | |
| template<bool C> requires ( Const && ! C ) | |
| Iterator (const Iterator< C > &o) | |
| the const iterator from the other one | |
| reference | operator* (void) const |
| the item | |
| pointer | operator-> (void) const |
| the address of the item | |
| Iterator & | operator++ (void) |
| to the next cell | |
| Iterator | operator++ (int) |
| to the next cell, returning the iterator before the step | |
| bool | operator== (const Iterator &o) const =default |
| equal on the same cell of the same space | |
Friends | |
| template<bool> | |
| class | Iterator |
the iterator, on items const if Const
| using ADS::CursorList< T >::Iterator< Const >::difference_type = std::ptrdiff_t |
the type of the distances
| using ADS::CursorList< T >::Iterator< Const >::iterator_category = std::forward_iterator_tag |
the category of the iterator, forward
| using ADS::CursorList< T >::Iterator< Const >::pointer = std::conditional_t< Const , const T * , T * > |
a pointer to an item, constant if Const
| using ADS::CursorList< T >::Iterator< Const >::reference = std::conditional_t< Const , const T & , T & > |
a reference to an item, constant if Const
| using ADS::CursorList< T >::Iterator< Const >::value_type = T |
the type of the items
|
default |
an iterator on no space
|
inline |
on the item of the cell \( c \) of the space \( S \), the end if \( c = 0 \)
|
inline |
the const iterator from the other one
|
inline |
the item
|
inline |
to the next cell, returning the iterator before the step
|
inline |
to the next cell
|
inline |
the address of the item
|
default |
equal on the same cell of the same space
|
friend |