MySQL 8.4.0
Source Code Documentation
Gtid_set::Gtid_iterator Class Reference

Iterator over all gtids in a Gtid_set. More...

#include <rpl_gtid.h>

Public Member Functions

 Gtid_iterator (const Gtid_set *gs)
 
void next ()
 Advance to next gtid. More...
 
Gtid get () const
 Return next gtid, or {0,0} if we reached the end. More...
 

Private Member Functions

void next_sidno ()
 Find the next sidno that has one or more intervals. More...
 

Private Attributes

const Gtid_setgtid_set
 The Gtid_set we iterate over. More...
 
rpl_sidno sidno
 The SIDNO of the current element, or 0 if the iterator is past the last element. More...
 
rpl_gno gno
 The GNO of the current element, or 0 if the iterator is past the last element. More...
 
Const_interval_iterator ivit
 Iterator over the intervals for the current SIDNO. More...
 

Detailed Description

Iterator over all gtids in a Gtid_set.

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

Constructor & Destructor Documentation

◆ Gtid_iterator()

Gtid_set::Gtid_iterator::Gtid_iterator ( const Gtid_set gs)
inline

Member Function Documentation

◆ get()

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

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

◆ next()

void Gtid_set::Gtid_iterator::next ( )
inline

Advance to next gtid.

◆ next_sidno()

void Gtid_set::Gtid_iterator::next_sidno ( )
inlineprivate

Find the next sidno that has one or more intervals.

Member Data Documentation

◆ gno

rpl_gno Gtid_set::Gtid_iterator::gno
private

The GNO of the current element, or 0 if the iterator is past the last element.

◆ gtid_set

const Gtid_set* Gtid_set::Gtid_iterator::gtid_set
private

The Gtid_set we iterate over.

◆ ivit

Const_interval_iterator Gtid_set::Gtid_iterator::ivit
private

Iterator over the intervals for the current SIDNO.

◆ sidno

rpl_sidno Gtid_set::Gtid_iterator::sidno
private

The SIDNO of the current element, or 0 if the iterator is past the last element.


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