ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::SkipList< K, V >::const_iterator Class Reference

the iterator on the pairs, along the bottom level More...

#include <ADS/dictionary/SkipList.h>

Public types

using reference = PairRef< const K & , const V & >
 a reference to an item
using value_type = std::pair< K , V >
 the type of the items, for the standard library
using difference_type = std::ptrdiff_t
 the type of the distances between two iterators
using iterator_concept = std::forward_iterator_tag
 the concept of the iterator, for C++20
using iterator_category = std::input_iterator_tag
 the category of the iterator

Public member functions

 const_iterator (void)=default
 the end
 const_iterator (Node *x)
 on the pair of the node \( x \)
reference operator* (void) const
 the pair of the node
const_iterator & operator++ (void)
 to the next node of the bottom level
const_iterator operator++ (int)
 to the next node, returning the iterator before the step
bool operator== (const const_iterator &o) const =default
 equal on the same node

Detailed description

template<std::totally_ordered K, class V>
class ADS::SkipList< K, V >::const_iterator

the iterator on the pairs, along the bottom level

Member typedef documentation

◆ difference_type

template<std::totally_ordered K, class V>
using ADS::SkipList< K, V >::const_iterator::difference_type = std::ptrdiff_t

the type of the distances between two iterators

◆ iterator_category

template<std::totally_ordered K, class V>
using ADS::SkipList< K, V >::const_iterator::iterator_category = std::input_iterator_tag

the category of the iterator

◆ iterator_concept

template<std::totally_ordered K, class V>
using ADS::SkipList< K, V >::const_iterator::iterator_concept = std::forward_iterator_tag

the concept of the iterator, for C++20

◆ reference

template<std::totally_ordered K, class V>
using ADS::SkipList< K, V >::const_iterator::reference = PairRef< const K & , const V & >

a reference to an item

◆ value_type

template<std::totally_ordered K, class V>
using ADS::SkipList< K, V >::const_iterator::value_type = std::pair< K , V >

the type of the items, for the standard library

Constructor and destructor documentation

◆ const_iterator() [1/2]

template<std::totally_ordered K, class V>
ADS::SkipList< K, V >::const_iterator::const_iterator ( void )
default

the end

◆ const_iterator() [2/2]

template<std::totally_ordered K, class V>
ADS::SkipList< K, V >::const_iterator::const_iterator ( Node * x)
inlineexplicit

on the pair of the node \( x \)

Member function documentation

◆ operator*()

template<std::totally_ordered K, class V>
reference ADS::SkipList< K, V >::const_iterator::operator* ( void ) const
inline

the pair of the node

◆ operator++() [1/2]

template<std::totally_ordered K, class V>
const_iterator ADS::SkipList< K, V >::const_iterator::operator++ ( int )
inline

to the next node, returning the iterator before the step

◆ operator++() [2/2]

template<std::totally_ordered K, class V>
const_iterator & ADS::SkipList< K, V >::const_iterator::operator++ ( void )
inline

to the next node of the bottom level

◆ operator==()

template<std::totally_ordered K, class V>
bool ADS::SkipList< K, V >::const_iterator::operator== ( const const_iterator & o) const
default

equal on the same node


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