ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator Class Reference

the iterator of the view, constant, forward More...

#include <ADS/priority/FibonacciHeapPriorityQueue.h>

Public types

using reference = PairRef< const P & , const T & >
 the pair of the priority and of the item of a node the type of a reference to an item of the view
using value_type = std::pair< P , T >
 the type of the items of the view
using difference_type = std::ptrdiff_t
 the type of the distances between iterators
using iterator_concept = std::forward_iterator_tag
 a forward iterator for the concepts of C++20
using iterator_category = std::input_iterator_tag
 an input iterator for the older algorithms, since reference is not a reference

Public member functions

 const_iterator (void)=default
 the end of the view
 const_iterator (const Node *min)
 the first node of the view, the root \( \mathit{min} \)
reference operator* (void) const
 the priority and the item of the node
const_iterator & operator++ (void)
 the next node in preorder
const_iterator operator++ (int)
 the next node in preorder, returning the iterator before the step
bool operator== (const const_iterator &o) const
 whether the two iterators are on the same node

Detailed description

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
class ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator

the iterator of the view, constant, forward

Member typedef documentation

◆ difference_type

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
using ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::difference_type = std::ptrdiff_t

the type of the distances between iterators

◆ iterator_category

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
using ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::iterator_category = std::input_iterator_tag

an input iterator for the older algorithms, since reference is not a reference

◆ iterator_concept

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
using ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::iterator_concept = std::forward_iterator_tag

a forward iterator for the concepts of C++20

◆ reference

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
using ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::reference = PairRef< const P & , const T & >

the pair of the priority and of the item of a node the type of a reference to an item of the view

◆ value_type

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
using ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::value_type = std::pair< P , T >

the type of the items of the view

Constructor and destructor documentation

◆ const_iterator() [1/2]

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::const_iterator ( void )
default

the end of the view

◆ const_iterator() [2/2]

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::const_iterator ( const Node * min)
inlineexplicit

the first node of the view, the root \( \mathit{min} \)

Member function documentation

◆ operator*()

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
reference ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::operator* ( void ) const
inline

the priority and the item of the node

◆ operator++() [1/2]

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
const_iterator ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::operator++ ( int )
inline

the next node in preorder, returning the iterator before the step

◆ operator++() [2/2]

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
const_iterator & ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::operator++ ( void )
inline

the next node in preorder

◆ operator==()

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
bool ADS::FibonacciHeapPriorityQueue< T, P, A >::const_iterator::operator== ( const const_iterator & o) const
inline

whether the two iterators are on the same node


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