MySQL 8.4.2
Source Code Documentation
|
Iterator helper class to iterate over the array, from 0 to the array size. More...
#include <atomics_array.h>
Public Types | |
using | difference_type = std::ptrdiff_t |
using | value_type = T |
using | pointer = T * |
using | reference = T |
using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
Iterator (Atomics_array< T, I, A > const &parent, size_t position) | |
Iterator (const Iterator &rhs) | |
Iterator (Iterator &&rhs) | |
virtual | ~Iterator ()=default |
Iterator & | operator= (const Iterator &rhs) |
Iterator & | operator= (Iterator &&rhs) |
Iterator & | operator++ () |
reference | operator* () const |
Iterator | operator++ (int) |
pointer | operator-> () const |
bool | operator== (Iterator const &rhs) const |
bool | operator!= (Iterator const &rhs) const |
Private Attributes | |
size_t | m_current {0} |
The position of the element this iterator is pointing to. More... | |
Atomics_array< T, I, A > const * | m_parent {nullptr} |
The reference to the queue holding the elements. More... | |
Iterator helper class to iterate over the array, from 0 to the array size.
Check C++ documentation on Iterator named requirements
for more information on the implementation.
using container::Atomics_array< T, I, A >::Iterator::difference_type = std::ptrdiff_t |
using container::Atomics_array< T, I, A >::Iterator::iterator_category = std::forward_iterator_tag |
using container::Atomics_array< T, I, A >::Iterator::pointer = T * |
using container::Atomics_array< T, I, A >::Iterator::reference = T |
using container::Atomics_array< T, I, A >::Iterator::value_type = T |
|
explicit |
container::Atomics_array< T, I, A >::Iterator::Iterator | ( | const Iterator & | rhs | ) |
container::Atomics_array< T, I, A >::Iterator::Iterator | ( | Iterator && | rhs | ) |
|
virtualdefault |
bool container::Atomics_array< T, I, A >::Iterator::operator!= | ( | Iterator const & | rhs | ) | const |
container::Atomics_array< T, I, A >::Iterator::reference container::Atomics_array< T, I, A >::Iterator::operator* |
container::Atomics_array< T, I, A >::Iterator & container::Atomics_array< T, I, A >::Iterator::operator++ |
container::Atomics_array< T, I, A >::Iterator container::Atomics_array< T, I, A >::Iterator::operator++ | ( | int | ) |
container::Atomics_array< T, I, A >::Iterator::pointer container::Atomics_array< T, I, A >::Iterator::operator-> |
container::Atomics_array< T, I, A >::Iterator & container::Atomics_array< T, I, A >::Iterator::operator= | ( | const Iterator & | rhs | ) |
container::Atomics_array< T, I, A >::Iterator & container::Atomics_array< T, I, A >::Iterator::operator= | ( | Iterator && | rhs | ) |
bool container::Atomics_array< T, I, A >::Iterator::operator== | ( | Iterator const & | rhs | ) | const |
|
private |
The position of the element this iterator is pointing to.
|
private |
The reference to the queue holding the elements.