ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::BucketQueue< T, K, Tie, Policy >::const_iterator Class Reference

#include <ADS/priority/BucketQueue.h>

Public types

using iterator_category = std::forward_iterator_tag
 forward
using value_type = T
 the type of the items
using difference_type = std::ptrdiff_t
 the distances
using reference = const T &
 a constant reference to an item
using pointer = const T *
 a constant pointer to an item

Public member functions

 const_iterator (void)=default
 the singular iterator
 const_iterator (const BucketQueue *q, std::size_t f)
 on the first item of the layers from \( f \) of the queue q
reference operator* (void) const
 the item
pointer operator-> (void) const
 the address of the item
const_iterator & operator++ (void)
 on the next item in the order of the extractions
const_iterator operator++ (int)
 on the next item, returning the iterator before
bool operator== (const const_iterator &o) const
 whether on the same item, or both at the end

Member typedef documentation

◆ difference_type

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
using ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::difference_type = std::ptrdiff_t

the distances

◆ iterator_category

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
using ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::iterator_category = std::forward_iterator_tag

forward

◆ pointer

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
using ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::pointer = const T *

a constant pointer to an item

◆ reference

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
using ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::reference = const T &

a constant reference to an item

◆ value_type

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
using ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::value_type = T

the type of the items

Constructor and destructor documentation

◆ const_iterator() [1/2]

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::const_iterator ( void )
default

the singular iterator

◆ const_iterator() [2/2]

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::const_iterator ( const BucketQueue * q,
std::size_t f )
inline

on the first item of the layers from \( f \) of the queue q

Member function documentation

◆ operator*()

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
reference ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::operator* ( void ) const
inline

the item

◆ operator++() [1/2]

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
const_iterator ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::operator++ ( int )
inline

on the next item, returning the iterator before

◆ operator++() [2/2]

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
const_iterator & ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::operator++ ( void )
inline

on the next item in the order of the extractions

◆ operator->()

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
pointer ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::operator-> ( void ) const
inline

the address of the item

◆ operator==()

template<class T, std::integral K = int, BucketTie Tie = LargestSecondKey, class Policy = NoObservers>
bool ADS::BucketQueue< T, K, Tie, Policy >::const_iterator::operator== ( const const_iterator & o) const
inline

whether on the same item, or both at the end


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