SolidUtils
Public Member Functions | List of all members
sl::FixedPriorityQueue< K, V >::ValueSet::Iterator Class Reference

Public Member Functions

 Iterator (size_t const index, FixedPriorityQueue< K, V > const *const q)
 Create a new forward iterator. More...
 
operator* () const noexcept
 Get the value of the iterator. More...
 
Iteratoroperator++ ()
 Move the iterator forward. More...
 
bool operator== (Iterator const &other) const
 Check if this iterator is the same as another. More...
 
bool operator!= (Iterator const &other) const
 Check if this iterator is different from another iterator. More...
 

Constructor & Destructor Documentation

◆ Iterator()

template<typename K, typename V>
sl::FixedPriorityQueue< K, V >::ValueSet::Iterator::Iterator ( size_t const  index,
FixedPriorityQueue< K, V > const *const  q 
)
inline

Create a new forward iterator.

Parameters
indexThe index of the iterator.
qThe priority queue being iterated.

Member Function Documentation

◆ operator!=()

template<typename K, typename V>
bool sl::FixedPriorityQueue< K, V >::ValueSet::Iterator::operator!= ( Iterator const &  other) const
inline

Check if this iterator is different from another iterator.

Parameters
otherThe other iterator.
Returns
True if the iterators are not equal.

◆ operator*()

template<typename K, typename V>
V sl::FixedPriorityQueue< K, V >::ValueSet::Iterator::operator* ( ) const
inlinenoexcept

Get the value of the iterator.

Returns
The value.

◆ operator++()

template<typename K, typename V>
Iterator& sl::FixedPriorityQueue< K, V >::ValueSet::Iterator::operator++ ( )
inline

Move the iterator forward.

Returns
This iterator.

◆ operator==()

template<typename K, typename V>
bool sl::FixedPriorityQueue< K, V >::ValueSet::Iterator::operator== ( Iterator const &  other) const
inline

Check if this iterator is the same as another.

Parameters
otherThe other iterator.
Returns
True if they are at the same position.

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