MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p > Class Template Reference

#include <rpl_gtid.h>

Collaboration diagram for Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p >:

Public Member Functions

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

Protected Attributes

Interval_p * p

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.

Definition at line 1222 of file rpl_gtid.h.

Constructor & Destructor Documentation

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.

Definition at line 1231 of file rpl_gtid.h.

Member Data Documentation

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.

Definition at line 1256 of file rpl_gtid.h.


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