ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::FrontCodedDictionary::const_iterator Class Reference

a constant view of the strings in their order, decoded one after the other, forward; *it is the string decoded in the iterator More...

#include <ADS/string/FrontCoding.h>

Public types

using reference = const std::string &
 the string decoded
using value_type = std::string
 a string
using difference_type = std::ptrdiff_t
 a distance of iterators
using iterator_concept = std::forward_iterator_tag
 a forward iterator for the concepts
using iterator_category = std::input_iterator_tag
 an input iterator for the algorithms of C++17, since *it is a reference into the iterator

Public member functions

 const_iterator (void)=default
 an iterator on no dictionary
 const_iterator (const FrontCodedDictionary *d, std::size_t i)
 the iterator on the string \( i \) of *d, decoded from the string 0
reference operator* (void) const
 the string decoded
const_iterator & operator++ (void)
 the next string, decoded from this one
const_iterator operator++ (int)
 the next string, this one returned
bool operator== (const const_iterator &o) const
 whether the two iterators are at the same place

Detailed description

a constant view of the strings in their order, decoded one after the other, forward; *it is the string decoded in the iterator

Member typedef documentation

◆ difference_type

a distance of iterators

◆ iterator_category

an input iterator for the algorithms of C++17, since *it is a reference into the iterator

◆ iterator_concept

a forward iterator for the concepts

◆ reference

the string decoded

◆ value_type

Constructor and destructor documentation

◆ const_iterator() [1/2]

ADS::FrontCodedDictionary::const_iterator::const_iterator ( void )
default

an iterator on no dictionary

◆ const_iterator() [2/2]

ADS::FrontCodedDictionary::const_iterator::const_iterator ( const FrontCodedDictionary * d,
std::size_t i )
inline

the iterator on the string \( i \) of *d, decoded from the string 0

Member function documentation

◆ operator*()

reference ADS::FrontCodedDictionary::const_iterator::operator* ( void ) const
inline

the string decoded

◆ operator++() [1/2]

const_iterator ADS::FrontCodedDictionary::const_iterator::operator++ ( int )
inline

the next string, this one returned

◆ operator++() [2/2]

const_iterator & ADS::FrontCodedDictionary::const_iterator::operator++ ( void )
inline

the next string, decoded from this one

◆ operator==()

bool ADS::FrontCodedDictionary::const_iterator::operator== ( const const_iterator & o) const
inline

whether the two iterators are at the same place


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