MySQL 8.0.40
Source Code Documentation
Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p > Class Template Reference

Iterator over intervals for a given SIDNO. More...

#include <rpl_gtid.h>

Public Member Functions

 Interval_iterator_base (Gtid_set_p gtid_set, rpl_sidno sidno)
 Construct a new iterator over the GNO intervals for a given Gtid_set. More...
 
 Interval_iterator_base (Gtid_set_p gtid_set)
 Construct a new iterator over the free intervals of a Gtid_set. More...
 
void init (Gtid_set_p gtid_set, rpl_sidno sidno)
 Reset this iterator. More...
 
void next ()
 Advance current_elem one step. More...
 
Interval_p get () const
 Return current_elem. More...
 

Protected Attributes

Interval_p * p
 Holds the address of the 'next' pointer of the previous element, or the address of the initial pointer into the list, if the current element is the first element. More...
 

Detailed Description

template<typename Gtid_set_p, typename Interval_p>
class Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >

Iterator over intervals for a given SIDNO.

This is an abstract template class, used as a common base class for Const_interval_iterator and Interval_iterator.

The iterator always points to an interval pointer. The interval pointer is either the initial pointer into the list, or the next pointer of one of the intervals in the list.

Constructor & Destructor Documentation

◆ Interval_iterator_base() [1/2]

template<typename Gtid_set_p , typename Interval_p >
Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >::Interval_iterator_base ( Gtid_set_p  gtid_set,
rpl_sidno  sidno 
)
inline

Construct a new iterator over the GNO intervals for a given Gtid_set.

Parameters
gtid_setThe Gtid_set.
sidnoThe SIDNO.

◆ Interval_iterator_base() [2/2]

template<typename Gtid_set_p , typename Interval_p >
Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >::Interval_iterator_base ( Gtid_set_p  gtid_set)
inline

Construct a new iterator over the free intervals of a Gtid_set.

Member Function Documentation

◆ get()

template<typename Gtid_set_p , typename Interval_p >
Interval_p Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >::get ( ) const
inline

Return current_elem.

◆ init()

template<typename Gtid_set_p , typename Interval_p >
void Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >::init ( Gtid_set_p  gtid_set,
rpl_sidno  sidno 
)
inline

Reset this iterator.

◆ next()

template<typename Gtid_set_p , typename Interval_p >
void Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >::next ( )
inline

Advance current_elem one step.

Member Data Documentation

◆ p

template<typename Gtid_set_p , typename Interval_p >
Interval_p* Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >::p
protected

Holds the address of the 'next' pointer of the previous element, or the address of the initial pointer into the list, if the current element is the first element.


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