ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::SkipListSequence< T >::basic_iterator< Const > Class Template Reference

the forward iterator on the items, along the bottom level More...

#include <ADS/sequence/SkipListSequence.h>

Public types

using value_type = T
 the type of the items
using reference = std::conditional_t< Const , const T & , T & >
 a reference to an item
using difference_type = std::ptrdiff_t
 the type of the distances between two iterators
using iterator_category = std::forward_iterator_tag
 the concept and the category of the iterator

Public member functions

 basic_iterator (void)=default
 the end
 basic_iterator (Node *x)
 on the node \( x \)
 operator basic_iterator< true > (void) const
 the constant form of a mutable iterator
reference operator* (void) const
 the item of the node
basic_iterator & operator++ (void)
 to the next node of the bottom level
basic_iterator operator++ (int)
 to the next node, returning the iterator before the step
bool operator== (const basic_iterator &o) const =default
 equal on the same node

Detailed description

template<class T>
template<bool Const>
class ADS::SkipListSequence< T >::basic_iterator< Const >

the forward iterator on the items, along the bottom level

Member typedef documentation

◆ difference_type

template<class T>
template<bool Const>
using ADS::SkipListSequence< T >::basic_iterator< Const >::difference_type = std::ptrdiff_t

the type of the distances between two iterators

◆ iterator_category

template<class T>
template<bool Const>
using ADS::SkipListSequence< T >::basic_iterator< Const >::iterator_category = std::forward_iterator_tag

the concept and the category of the iterator

◆ reference

template<class T>
template<bool Const>
using ADS::SkipListSequence< T >::basic_iterator< Const >::reference = std::conditional_t< Const , const T & , T & >

a reference to an item

◆ value_type

template<class T>
template<bool Const>
using ADS::SkipListSequence< T >::basic_iterator< Const >::value_type = T

the type of the items

Constructor and destructor documentation

◆ basic_iterator() [1/2]

template<class T>
template<bool Const>
ADS::SkipListSequence< T >::basic_iterator< Const >::basic_iterator ( void )
default

the end

◆ basic_iterator() [2/2]

template<class T>
template<bool Const>
ADS::SkipListSequence< T >::basic_iterator< Const >::basic_iterator ( Node * x)
inlineexplicit

on the node \( x \)

Member function documentation

◆ operator basic_iterator< true >()

template<class T>
template<bool Const>
ADS::SkipListSequence< T >::basic_iterator< Const >::operator basic_iterator< true > ( void ) const
inline

the constant form of a mutable iterator

◆ operator*()

template<class T>
template<bool Const>
reference ADS::SkipListSequence< T >::basic_iterator< Const >::operator* ( void ) const
inline

the item of the node

◆ operator++() [1/2]

template<class T>
template<bool Const>
basic_iterator ADS::SkipListSequence< T >::basic_iterator< Const >::operator++ ( int )
inline

to the next node, returning the iterator before the step

◆ operator++() [2/2]

template<class T>
template<bool Const>
basic_iterator & ADS::SkipListSequence< T >::basic_iterator< Const >::operator++ ( void )
inline

to the next node of the bottom level

◆ operator==()

template<class T>
template<bool Const>
bool ADS::SkipListSequence< T >::basic_iterator< Const >::operator== ( const basic_iterator< Const > & o) const
default

equal on the same node


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