My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
Gtid_set::Interval_iterator_base< Gtid_set_p, Interval_p > Class Template Reference

#include <rpl_gtid.h>

List of all members.

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.


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.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines