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

the bidirectional iterator along the list More...

#include <ADS/dictionary/BitmapTrie.h>

Public types

using iterator_category = std::bidirectional_iterator_tag
 the category of the iterator
using value_type = std::pair< std::string , V >
 the pairs ( key , value ) by value, which own their copies
using key_type = std::string
 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 std::string & , 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 Cell *l)
 on the item \( l \)
reference operator* (void) const
 the pair of the item
const_iterator & operator++ (void)
 to the next string
const_iterator operator++ (int)
 to the next string, returning the iterator before the step
const_iterator & operator-- (void)
 to the previous string
const_iterator operator-- (int)
 to the previous string, returning the iterator before the step
bool operator== (const const_iterator &o) const =default
 equal on the same item

Detailed description

template<class V = std::monostate>
class ADS::BitmapTrie< V >::const_iterator

the bidirectional iterator along the list

Member typedef documentation

◆ difference_type

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

the type of the distances between two iterators

◆ iterator_category

template<class V = std::monostate>
using ADS::BitmapTrie< V >::const_iterator::iterator_category = std::bidirectional_iterator_tag

the category of the iterator

◆ key_type

template<class V = std::monostate>
using ADS::BitmapTrie< V >::const_iterator::key_type = std::string

the type of the keys

◆ mapped_type

template<class V = std::monostate>
using ADS::BitmapTrie< V >::const_iterator::mapped_type = V

the type of the values

◆ pointer

template<class V = std::monostate>
using ADS::BitmapTrie< V >::const_iterator::pointer = void

no pointer: the pairs are made on the fly

◆ reference

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

a pair of references, by value

◆ value_type

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

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

Constructor and destructor documentation

◆ const_iterator() [1/2]

template<class V = std::monostate>
ADS::BitmapTrie< V >::const_iterator::const_iterator ( void )
default

the end of no trie

◆ const_iterator() [2/2]

template<class V = std::monostate>
ADS::BitmapTrie< V >::const_iterator::const_iterator ( const Cell * l)
inlineexplicit

on the item \( l \)

Member function documentation

◆ operator*()

template<class V = std::monostate>
reference ADS::BitmapTrie< V >::const_iterator::operator* ( void ) const
inline

the pair of the item

◆ operator++() [1/2]

template<class V = std::monostate>
const_iterator ADS::BitmapTrie< V >::const_iterator::operator++ ( int )
inline

to the next string, returning the iterator before the step

◆ operator++() [2/2]

template<class V = std::monostate>
const_iterator & ADS::BitmapTrie< V >::const_iterator::operator++ ( void )
inline

to the next string

◆ operator--() [1/2]

template<class V = std::monostate>
const_iterator ADS::BitmapTrie< V >::const_iterator::operator-- ( int )
inline

to the previous string, returning the iterator before the step

◆ operator--() [2/2]

template<class V = std::monostate>
const_iterator & ADS::BitmapTrie< V >::const_iterator::operator-- ( void )
inline

to the previous string

◆ operator==()

template<class V = std::monostate>
bool ADS::BitmapTrie< V >::const_iterator::operator== ( const const_iterator & o) const
default

equal on the same item


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