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

the iterator on the pairs by increasing keys, by a stack of the nodes on the way to a leaf More...

#include <ADS/dictionary/AdaptiveRadixTree.h>

Public types

using value_type = std::pair< std::string , V >
 the type of the items, for the standard library
using reference = PairRef< std::string_view , const V & , std::string >
 a reference to an item
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
reference operator* (void) const
 the key of the leaf and its value
const_iterator & operator++ (void)
 to the next leaf, by the walk of the stack
const_iterator operator++ (int)
 to the next leaf, returning the iterator before the step
bool operator== (const const_iterator &o) const
 equal on the same leaf

Friends

class AdaptiveRadixTree

Detailed description

template<class V>
class ADS::AdaptiveRadixTree< V >::const_iterator

the iterator on the pairs by increasing keys, by a stack of the nodes on the way to a leaf

Member typedef documentation

◆ difference_type

template<class V>
using ADS::AdaptiveRadixTree< V >::const_iterator::difference_type = std::ptrdiff_t

the type of the distances between two iterators

◆ iterator_category

template<class V>
using ADS::AdaptiveRadixTree< V >::const_iterator::iterator_category = std::input_iterator_tag

the category of the iterator

◆ iterator_concept

template<class V>
using ADS::AdaptiveRadixTree< V >::const_iterator::iterator_concept = std::forward_iterator_tag

the concept of the iterator, for C++20

◆ reference

template<class V>
using ADS::AdaptiveRadixTree< V >::const_iterator::reference = PairRef< std::string_view , const V & , std::string >

a reference to an item

◆ value_type

template<class V>
using ADS::AdaptiveRadixTree< V >::const_iterator::value_type = std::pair< std::string , V >

the type of the items, for the standard library

Constructor and destructor documentation

◆ const_iterator()

template<class V>
ADS::AdaptiveRadixTree< V >::const_iterator::const_iterator ( void )
default

the end

Member function documentation

◆ operator*()

template<class V>
reference ADS::AdaptiveRadixTree< V >::const_iterator::operator* ( void ) const
inline

the key of the leaf and its value

◆ operator++() [1/2]

template<class V>
const_iterator ADS::AdaptiveRadixTree< V >::const_iterator::operator++ ( int )
inline

to the next leaf, returning the iterator before the step

◆ operator++() [2/2]

template<class V>
const_iterator & ADS::AdaptiveRadixTree< V >::const_iterator::operator++ ( void )
inline

to the next leaf, by the walk of the stack

◆ operator==()

template<class V>
bool ADS::AdaptiveRadixTree< V >::const_iterator::operator== ( const const_iterator & o) const
inline

equal on the same leaf

◆ AdaptiveRadixTree

template<class V>
friend class AdaptiveRadixTree
friend

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