|
ADS
Algorithms and Data Structures
|
a position of the sequence, read by *; the end is an iterator marked as such, equal to every iterator on a finished position More...
#include <ADS/sequence/SequenceRange.h>
Public types | |
| using | iterator_category = std::forward_iterator_tag |
| the category of the iterator, forward | |
| using | value_type = typename S::Item |
| the type of the items | |
| using | difference_type = std::ptrdiff_t |
| the type of the distances | |
| using | reference = const value_type & |
| a constant reference | |
| using | pointer = const value_type * |
| a constant pointer | |
Public member functions | |
| iterator (void)=default | |
| an iterator on no sequence, at the end | |
| iterator (const S *s, typename S::Pos p) | |
| on the position \( p \) of the sequence \( s \) | |
| reference | operator* (void) const |
| the item in the position, read( p ) | |
| pointer | operator-> (void) const |
| the address of the item in the position | |
| iterator & | operator++ (void) |
| to the next position, next( p ) | |
| iterator | operator++ (int) |
| to the next position, returning the iterator before the step | |
| bool | operator== (std::default_sentinel_t) const |
| at the end, i.e., on a finished position | |
| bool | operator== (const iterator &o) const |
| equal if both are at the end, or on the same position | |
| S::Pos | position (void) const |
| the position of the book | |
Static public member functions | |
| static iterator | end (const S *s) |
| the end of the range of \( s \) | |
a position of the sequence, read by *; the end is an iterator marked as such, equal to every iterator on a finished position
| using ADS::SequenceRange< S >::iterator::difference_type = std::ptrdiff_t |
the type of the distances
| using ADS::SequenceRange< S >::iterator::iterator_category = std::forward_iterator_tag |
the category of the iterator, forward
| using ADS::SequenceRange< S >::iterator::pointer = const value_type * |
a constant pointer
| using ADS::SequenceRange< S >::iterator::reference = const value_type & |
a constant reference
| using ADS::SequenceRange< S >::iterator::value_type = typename S::Item |
the type of the items
|
default |
an iterator on no sequence, at the end
|
inline |
on the position \( p \) of the sequence \( s \)
|
inlinestatic |
the end of the range of \( s \)
|
inlinenodiscard |
the item in the position, read( p )
|
inline |
to the next position, returning the iterator before the step
|
inline |
to the next position, next( p )
|
inlinenodiscard |
the address of the item in the position
|
inlinenodiscard |
equal if both are at the end, or on the same position
|
inlinenodiscard |
at the end, i.e., on a finished position
|
inlinenodiscard |
the position of the book