|
ADS
Algorithms and Data Structures
|
the random-access iterator on the items of a container C read by rank, c[ i ] the item \( i \), of the type T More...
#include <ADS/Iterators.h>
Public types | |
| using | iterator_category = std::random_access_iterator_tag |
| random access | |
| using | value_type = T |
| the items | |
| using | difference_type = std::ptrdiff_t |
| the distances | |
| using | reference = Item & |
| a reference to an item | |
| using | pointer = Item * |
| a pointer to an item | |
Public member functions | |
| RankIterator (void)=default | |
| an iterator on no container | |
| RankIterator (Owner *c, std::size_t i) | |
| on the item of rank \( i \) of c | |
| template<bool K> requires ( Const && ! K ) | |
| RankIterator (const RankIterator< C, T, K > &o) | |
| the constant iterator from the mutable one | |
| reference | operator* (void) const |
| the item | |
| pointer | operator-> (void) const |
| the address of the item | |
| reference | operator[] (difference_type k) const |
| the item \( k \) ranks on | |
| RankIterator & | operator++ (void) |
| to the next item | |
| RankIterator & | operator-- (void) |
| to the previous item | |
| RankIterator | operator++ (int) |
| to the next item, returning the iterator before the step | |
| RankIterator | operator-- (int) |
| to the previous item, returning the iterator before the step | |
| RankIterator & | operator+= (difference_type k) |
| \( k \) items on | |
| RankIterator & | operator-= (difference_type k) |
| \( k \) items back | |
| bool | operator== (const RankIterator &o) const |
| equal on the same rank | |
| std::strong_ordering | operator<=> (const RankIterator &o) const |
| the order of the ranks | |
| Owner * | owner (void) const |
| the container | |
| std::size_t | rank (void) const |
| the rank \( i \) of the item | |
Friends | |
| RankIterator | operator+ (RankIterator a, difference_type k) |
| RankIterator | operator+ (difference_type k, RankIterator a) |
| RankIterator | operator- (RankIterator a, difference_type k) |
| difference_type | operator- (const RankIterator &a, const RankIterator &b) |
the random-access iterator on the items of a container C read by rank, c[ i ] the item \( i \), of the type T
| using ADS::RankIterator< C, T, Const >::difference_type = std::ptrdiff_t |
the distances
| using ADS::RankIterator< C, T, Const >::iterator_category = std::random_access_iterator_tag |
random access
| using ADS::RankIterator< C, T, Const >::pointer = Item * |
a pointer to an item
| using ADS::RankIterator< C, T, Const >::reference = Item & |
a reference to an item
| using ADS::RankIterator< C, T, Const >::value_type = T |
the items
|
default |
an iterator on no container
|
inline |
on the item of rank \( i \) of c
|
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 item
|
inline |
\( k \) items on
|
inline |
to the previous item, returning the iterator before the step
|
inline |
to the previous item
|
inline |
\( k \) items back
|
inline |
the address of the item
|
inline |
the order of the ranks
|
inline |
equal on the same rank
|
inline |
the item \( k \) ranks on
|
inlinenodiscard |
the container
|
inlinenodiscard |
the rank \( i \) of the item
|
friend |
|
friend |
|
friend |
|
friend |