MySQL 8.4.2
Source Code Documentation
Owned_gtids::Gtid_iterator Class Reference

Iterator over all gtids in a Owned_gtids set. More...

#include <rpl_gtid.h>

Public Member Functions

 Gtid_iterator (const Owned_gtids *og)
 
void next ()
 Advance to next GTID. More...
 
Gtid get () const
 Return next GTID, or {0,0} if we reached the end. More...
 
Nodeget_node () const
 Return the current GTID Node, or NULL if we reached the end. More...
 

Private Attributes

const Owned_gtidsowned_gtids
 The Owned_gtids set we iterate over. More...
 
rpl_sidno sidno
 The SIDNO of the current element, or 1 in the initial iteration. More...
 
rpl_sidno max_sidno
 Max SIDNO of the current iterator. More...
 
malloc_unordered_multimap< rpl_gno, unique_ptr_my_free< Node > > * hash
 Current SIDNO hash. More...
 
malloc_unordered_multimap< rpl_gno, unique_ptr_my_free< Node > >::const_iterator node_it
 Current node iterator on current SIDNO hash. More...
 
Nodenode
 Current node on current SIDNO hash. More...
 

Detailed Description

Iterator over all gtids in a Owned_gtids set.

This is a const iterator; it does not allow modification of the set.

Constructor & Destructor Documentation

◆ Gtid_iterator()

Owned_gtids::Gtid_iterator::Gtid_iterator ( const Owned_gtids og)
inline

Member Function Documentation

◆ get()

Gtid Owned_gtids::Gtid_iterator::get ( ) const
inline

Return next GTID, or {0,0} if we reached the end.

◆ get_node()

Node * Owned_gtids::Gtid_iterator::get_node ( ) const
inline

Return the current GTID Node, or NULL if we reached the end.

◆ next()

void Owned_gtids::Gtid_iterator::next ( )
inline

Advance to next GTID.

Member Data Documentation

◆ hash

malloc_unordered_multimap<rpl_gno, unique_ptr_my_free<Node> >* Owned_gtids::Gtid_iterator::hash
private

Current SIDNO hash.

◆ max_sidno

rpl_sidno Owned_gtids::Gtid_iterator::max_sidno
private

Max SIDNO of the current iterator.

◆ node

Node* Owned_gtids::Gtid_iterator::node
private

Current node on current SIDNO hash.

◆ node_it

malloc_unordered_multimap<rpl_gno,unique_ptr_my_free<Node>>::const_iterator Owned_gtids::Gtid_iterator::node_it
private

Current node iterator on current SIDNO hash.

◆ owned_gtids

const Owned_gtids* Owned_gtids::Gtid_iterator::owned_gtids
private

The Owned_gtids set we iterate over.

◆ sidno

rpl_sidno Owned_gtids::Gtid_iterator::sidno
private

The SIDNO of the current element, or 1 in the initial iteration.


The documentation for this class was generated from the following file: