ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::ListXFastTrie< U, V, W >::const_iterator Class Reference

the bidirectional iterator along the list More...

#include <ADS/dictionary/XFastTrie.h>

Public types

using iterator_category = std::bidirectional_iterator_tag
 the category of the iterator
using value_type = std::pair< U , V >
 the pairs ( key , value ) by value, which own their copies
using key_type = U
 the type of the keys
using mapped_type = V
 the type of the values
using difference_type = std::ptrdiff_t
 the type of the distances between two iterators
using reference = PairRef< const U & , const V & >
 a pair of references, by value
using pointer = void
 no pointer: the pairs are made on the fly

Public member functions

 const_iterator (void)=default
 the end of no trie
 const_iterator (const Leaf *l)
 on the key \( l \)
reference operator* (void) const
 the pair of the key
const_iterator & operator++ (void)
 to the next key
const_iterator operator++ (int)
 to the next key, returning the iterator before the step
const_iterator & operator-- (void)
 to the previous key
const_iterator operator-- (int)
 to the previous key, returning the iterator before the step
bool operator== (const const_iterator &o) const =default
 equal on the same key

Detailed description

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
class ADS::ListXFastTrie< U, V, W >::const_iterator

the bidirectional iterator along the list

Member typedef documentation

◆ difference_type

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
using ADS::ListXFastTrie< U, V, W >::const_iterator::difference_type = std::ptrdiff_t

the type of the distances between two iterators

◆ iterator_category

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
using ADS::ListXFastTrie< U, V, W >::const_iterator::iterator_category = std::bidirectional_iterator_tag

the category of the iterator

◆ key_type

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
using ADS::ListXFastTrie< U, V, W >::const_iterator::key_type = U

the type of the keys

◆ mapped_type

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
using ADS::ListXFastTrie< U, V, W >::const_iterator::mapped_type = V

the type of the values

◆ pointer

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
using ADS::ListXFastTrie< U, V, W >::const_iterator::pointer = void

no pointer: the pairs are made on the fly

◆ reference

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
using ADS::ListXFastTrie< U, V, W >::const_iterator::reference = PairRef< const U & , const V & >

a pair of references, by value

◆ value_type

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
using ADS::ListXFastTrie< U, V, W >::const_iterator::value_type = std::pair< U , V >

the pairs ( key , value ) by value, which own their copies

Constructor and destructor documentation

◆ const_iterator() [1/2]

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
ADS::ListXFastTrie< U, V, W >::const_iterator::const_iterator ( void )
default

the end of no trie

◆ const_iterator() [2/2]

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
ADS::ListXFastTrie< U, V, W >::const_iterator::const_iterator ( const Leaf * l)
inlineexplicit

on the key \( l \)

Member function documentation

◆ operator*()

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
reference ADS::ListXFastTrie< U, V, W >::const_iterator::operator* ( void ) const
inline

the pair of the key

◆ operator++() [1/2]

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
const_iterator ADS::ListXFastTrie< U, V, W >::const_iterator::operator++ ( int )
inline

to the next key, returning the iterator before the step

◆ operator++() [2/2]

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
const_iterator & ADS::ListXFastTrie< U, V, W >::const_iterator::operator++ ( void )
inline

to the next key

◆ operator--() [1/2]

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
const_iterator ADS::ListXFastTrie< U, V, W >::const_iterator::operator-- ( int )
inline

to the previous key, returning the iterator before the step

◆ operator--() [2/2]

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
const_iterator & ADS::ListXFastTrie< U, V, W >::const_iterator::operator-- ( void )
inline

to the previous key

◆ operator==()

template<std::unsigned_integral U, class V = std::monostate, int W = std::numeric_limits< U >::digits>
bool ADS::ListXFastTrie< U, V, W >::const_iterator::operator== ( const const_iterator & o) const
default

equal on the same key


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