|
ADS
Algorithms and Data Structures
|
the iterator, on constant objects if Const More...
#include <ADS/memory/Arena.h>
Public types | |
| using | iterator_category = std::random_access_iterator_tag |
| random access | |
| using | value_type = T |
| the objects | |
| using | difference_type = std::ptrdiff_t |
| a distance in objects | |
| using | reference = std::conditional_t< Const , const T & , T & > |
| a reference to an object, constant if Const | |
| using | pointer = std::conditional_t< Const , const T * , T * > |
| a pointer to an object, constant if Const | |
Public member functions | |
| Iterator (void)=default | |
| an iterator of no arena | |
| Iterator (Blocks B, std::size_t n, std::size_t i) | |
| the object \( i \) of the vector of the blocks \( B \), of \( n \) objects each | |
| template<bool K> requires ( Const && ! K ) | |
| Iterator (const Iterator< K > &o) | |
| the constant iterator of the object of \( o \) | |
| reference | operator* (void) const |
| the object | |
| pointer | operator-> (void) const |
| the address of the object | |
| reference | operator[] (difference_type k) const |
| the object \( k \) places ahead: the index \( j \) is at the place \( j \bmod n \) of the block \( \lfloor j / n \rfloor \) | |
| Iterator & | operator++ (void) |
| the next object | |
| Iterator & | operator-- (void) |
| the previous object | |
| Iterator | operator++ (int) |
| the next object, the iterator before the step returned | |
| Iterator | operator-- (int) |
| the previous object, the iterator before the step returned | |
| Iterator & | operator+= (difference_type k) |
| \( k \) objects ahead | |
| Iterator & | operator-= (difference_type k) |
| \( k \) objects back | |
| bool | operator== (const Iterator &o) const |
| whether the two are at the same object | |
| auto | operator<=> (const Iterator &o) const |
| the order of the objects | |
Friends | |
| template<bool> | |
| class | Iterator |
| Iterator | operator+ (Iterator a, difference_type k) |
| the iterator \( k \) objects after \( a \) | |
| Iterator | operator+ (difference_type k, Iterator a) |
| the iterator \( k \) objects after \( a \) | |
| Iterator | operator- (Iterator a, difference_type k) |
| the iterator \( k \) objects before \( a \) | |
| difference_type | operator- (const Iterator &a, const Iterator &b) |
| the number of objects from \( b \) to \( a \) | |
the iterator, on constant objects if Const
| using ADS::Arena< T, A >::Iterator< Const >::difference_type = std::ptrdiff_t |
a distance in objects
| using ADS::Arena< T, A >::Iterator< Const >::iterator_category = std::random_access_iterator_tag |
random access
| using ADS::Arena< T, A >::Iterator< Const >::pointer = std::conditional_t< Const , const T * , T * > |
a pointer to an object, constant if Const
| using ADS::Arena< T, A >::Iterator< Const >::reference = std::conditional_t< Const , const T & , T & > |
a reference to an object, constant if Const
| using ADS::Arena< T, A >::Iterator< Const >::value_type = T |
the objects
|
default |
an iterator of no arena
|
inline |
the object \( i \) of the vector of the blocks \( B \), of \( n \) objects each
|
inline |
the constant iterator of the object of \( o \)
|
inline |
the object
|
inline |
the next object, the iterator before the step returned
|
inline |
the next object
|
inline |
\( k \) objects ahead
|
inline |
the previous object, the iterator before the step returned
|
inline |
the previous object
|
inline |
\( k \) objects back
|
inline |
the address of the object
|
inline |
the order of the objects
|
inline |
whether the two are at the same object
|
inline |
the object \( k \) places ahead: the index \( j \) is at the place \( j \bmod n \) of the block \( \lfloor j / n \rfloor \)
|
friend |
|
friend |
the iterator \( k \) objects after \( a \)
|
friend |
the iterator \( k \) objects after \( a \)
|
friend |
the number of objects from \( b \) to \( a \)
|
friend |
the iterator \( k \) objects before \( a \)