MySQL 9.1.0
Source Code Documentation
|
Iterator helper class to iterate over the Commit_order_queue following the underlying commit order. More...
#include <commit_order_queue.h>
Public Types | |
using | difference_type = std::ptrdiff_t |
using | value_type = Commit_order_queue::Node * |
using | pointer = Commit_order_queue::Node * |
using | reference = Commit_order_queue::Node * |
using | iterator_category = std::forward_iterator_tag |
using | index_type = Commit_order_queue::queue_type::index_type |
Public Member Functions | |
Iterator (Commit_order_queue &parent, index_type position) | |
Iterator (const Iterator &rhs) | |
Iterator (Iterator &&rhs) | |
virtual | ~Iterator ()=default |
Iterator & | operator= (const Iterator &rhs) |
Iterator & | operator= (Iterator &&rhs) |
Iterator & | operator++ () |
reference | operator* () |
Iterator | operator++ (int) |
pointer | operator-> () |
bool | operator== (Iterator const &rhs) const |
bool | operator!= (Iterator const &rhs) const |
Private Attributes | |
Commit_order_queue * | m_target {nullptr} |
The target queue that holds the list to be iterated. More... | |
Commit_order_queue::queue_type::Iterator | m_current |
The iterator pointing to the underlying queue position. More... | |
Iterator helper class to iterate over the Commit_order_queue following the underlying commit order.
Check C++ documentation on Iterator named requirements
for more information on the implementation.
using cs::apply::Commit_order_queue::Iterator::difference_type = std::ptrdiff_t |
using cs::apply::Commit_order_queue::Iterator::index_type = Commit_order_queue::queue_type::index_type |
using cs::apply::Commit_order_queue::Iterator::iterator_category = std::forward_iterator_tag |
|
explicit |
|
default |
cs::apply::Commit_order_queue::Iterator::Iterator | ( | Iterator && | rhs | ) |
|
virtualdefault |
bool cs::apply::Commit_order_queue::Iterator::operator!= | ( | Iterator const & | rhs | ) | const |
cs::apply::Commit_order_queue::Node * cs::apply::Commit_order_queue::Iterator::operator* | ( | ) |
cs::apply::Commit_order_queue::Iterator & cs::apply::Commit_order_queue::Iterator::operator++ | ( | ) |
cs::apply::Commit_order_queue::Iterator cs::apply::Commit_order_queue::Iterator::operator++ | ( | int | ) |
cs::apply::Commit_order_queue::Node * cs::apply::Commit_order_queue::Iterator::operator-> | ( | ) |
|
default |
cs::apply::Commit_order_queue::Iterator & cs::apply::Commit_order_queue::Iterator::operator= | ( | Iterator && | rhs | ) |
bool cs::apply::Commit_order_queue::Iterator::operator== | ( | Iterator const & | rhs | ) | const |
|
private |
The iterator pointing to the underlying queue position.
|
private |
The target queue that holds the list to be iterated.