![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Sorted priority queue safe (w.r.t. More...
#include <agrum/base/core/sortedPriorityQueue.h>
Inherits SharedAVLTreeIteratorSafe< Val, SortedPriorityQueue< Val, int, std::less< Val > >::TreeCmp >.
Public Types | |
| using | iterator_category = std::bidirectional_iterator_tag |
| Types for STL compliance. | |
| using | value_type = Val |
| Types for STL compliance. | |
| using | reference = value_type& |
| Types for STL compliance. | |
| using | const_reference = const value_type& |
| Types for STL compliance. | |
| using | pointer = value_type* |
| Types for STL compliance. | |
| using | const_pointer = const value_type* |
| Types for STL compliance. | |
| using | TreeCmp = typename SortedPriorityQueue< Val, Priority, Cmp >::TreeCmp |
| Types for STL compliance. | |
Public Member Functions | |
Constructors / Destructors | |
| SortedPriorityQueueReverseIteratorSafe (SortedPriorityQueue< Val, Priority, Cmp > &queue, const bool rbegin=true) | |
| constructor for rbegin safe iterators | |
| SortedPriorityQueueReverseIteratorSafe (const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > &from) | |
| copy constructor | |
| SortedPriorityQueueReverseIteratorSafe (SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > &&from) | |
| move constructor | |
| ~SortedPriorityQueueReverseIteratorSafe () noexcept | |
| destructor | |
Operators | |
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | operator= (const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > &from) |
| copy operator | |
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | operator= (SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > &&from) |
| move operator | |
| bool | operator== (const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > &from) const |
| indicates whether two iterator point to the same element | |
| bool | operator!= (const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > &from) const |
| indicates whether two iterator point to different element | |
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | operator++ () noexcept |
| move to the next element in the queue | |
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | operator+= (const Size k) noexcept |
| move to the next k element | |
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | operator-- () noexcept |
| move to the preceding element in the queue | |
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | operator-= (const Size k) noexcept |
| move to the preceding k element | |
| const_reference | operator* () const |
| returns the value pointed to by the iterator | |
| const_pointer | operator-> () const |
| returns a pointer on the value pointed to by the iterator | |
Protected Attributes | |
| friend | AVLTree< Val, Cmp > |
| allow AVL trees to access the content of the iterators | |
| friend | SortedPriorityQueue< Val, Cmp > |
Sorted priority queue safe (w.r.t.
erasures) reverse iterator
| Val | The type of the elements stored into the queue. |
| Priority | The type of the priorities assigned to the elements. |
| Cmp | The function used for sorting the priorities. |
Definition at line 911 of file sortedPriorityQueue.h.
| using gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::const_pointer = const value_type* |
Types for STL compliance.
Definition at line 923 of file sortedPriorityQueue.h.
| using gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::const_reference = const value_type& |
Types for STL compliance.
Definition at line 921 of file sortedPriorityQueue.h.
| using gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::iterator_category = std::bidirectional_iterator_tag |
Types for STL compliance.
Definition at line 918 of file sortedPriorityQueue.h.
| using gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::pointer = value_type* |
Types for STL compliance.
Definition at line 922 of file sortedPriorityQueue.h.
| using gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::reference = value_type& |
Types for STL compliance.
Definition at line 920 of file sortedPriorityQueue.h.
| using gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::TreeCmp = typename SortedPriorityQueue< Val, Priority, Cmp >::TreeCmp |
Types for STL compliance.
Definition at line 924 of file sortedPriorityQueue.h.
| using gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::value_type = Val |
Types for STL compliance.
Definition at line 919 of file sortedPriorityQueue.h.
|
explicit |
constructor for rbegin safe iterators
| queue | the sorted priority queue which parses the iterator |
| begin | if true, the iterator points to the lowest value in the queue, else it points to the highest value |
| gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::SortedPriorityQueueReverseIteratorSafe | ( | const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | from | ) |
copy constructor
| gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::SortedPriorityQueueReverseIteratorSafe | ( | SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > && | from | ) |
move constructor
|
noexcept |
destructor
| bool gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::operator!= | ( | const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | from | ) | const |
indicates whether two iterator point to different element
| const_reference gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::operator* | ( | ) | const |
returns the value pointed to by the iterator
| NotFound | is raised if the iterator points to nothing |
|
noexcept |
move to the next element in the queue
|
noexcept |
move to the next k element
|
noexcept |
move to the preceding element in the queue
|
noexcept |
move to the preceding k element
| const_pointer gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::operator-> | ( | ) | const |
returns a pointer on the value pointed to by the iterator
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::operator= | ( | const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | from | ) |
copy operator
| SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::operator= | ( | SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > && | from | ) |
move operator
| bool gum::SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp >::operator== | ( | const SortedPriorityQueueReverseIteratorSafe< Val, Priority, Cmp > & | from | ) | const |
indicates whether two iterator point to the same element
|
protected |
allow AVL trees to access the content of the iterators
Definition at line 1017 of file sortedPriorityQueue.h.
|
protected |
Definition at line 1018 of file sortedPriorityQueue.h.