|
| | PrioritizedQueue (const C &cmp=C(), int initialSize=128) |
| |
| void | decrease (Handle pos, const P &priority) |
| |
| Handle | push (const E &element, const P &priority) |
| | Pushes a new element with the respective priority to the queue.
|
| |
| const E & | topElement () const |
| | Returns the topmost element in the queue.
|
| |
| const P & | topPriority () const |
| | Returns the priority of the topmost element in this queue.
|
| |
| | PriorityQueue (const C &cmp=C(), int initialSize=128) |
| | Creates empty priority queue.
|
| |
| | PriorityQueue (const PriorityQueue &other) |
| | Copy constructor.
|
| |
| template<class InputIt > |
| | PriorityQueue (InputIt first, InputIt last, const C &cmp=C()) |
| | Creates priority queue with contents of the given range.
|
| |
| | PriorityQueue (PriorityQueue &&other) |
| | Move constructor.
|
| |
| | PriorityQueue (std::initializer_list< value_type > init, const C &cmp=C()) |
| | Creates priority queue with contents of the given initializer list.
|
| |
| | ~PriorityQueue () |
| | Destroys the underlying data structure.
|
| |
| void | clear () |
| | Removes all the entries from the queue.
|
| |
| const C & | comparator () const |
| | Returns the comparator used for ordering elements.
|
| |
| void | decrease (handle pos, const T &value) |
| | Decreases value of the element specified by handle to value.
|
| |
| bool | empty () const |
| | Checks whether the queue is empty.
|
| |
| void | merge (PriorityQueue &other) |
| | Merges in enqueued values of other queue.
|
| |
| PriorityQueue & | operator= (PriorityQueue other) |
| | Copy and move assignment.
|
| |
| PriorityQueue & | operator= (std::initializer_list< value_type > ilist) |
| | Assigns the priority queue contents of the given initializer list.
|
| |
| void | pop () |
| | Removes the top element from the heap.
|
| |
| handle | push (const value_type &value) |
| | Inserts a new element with given value into the queue.
|
| |
| template<class InputIt > |
| void | push (InputIt first, InputIt last) |
| | Inserts new elements specified by the given range.
|
| |
| void | push (std::initializer_list< value_type > ilist) |
| | Inserts new elements specified by the given initializer list.
|
| |
| size_type | size () const |
| | Returns the number of enqueued elements.
|
| |
| void | swap (PriorityQueue &other) |
| | Swaps the contents.
|
| |
| const T & | top () const |
| | Returns reference to the top element in the queue.
|
| |
| const T & | value (handle pos) const |
| | Returns the priority of that handle.
|
| |
template<typename E, typename P, class C, template< typename, class > class Impl>
class ogdf::pq_internal::PrioritizedQueue< E, P, C, Impl >
Defines a queue for handling prioritized elements.
Definition at line 271 of file PriorityQueue.h.