#include <heap_adaptable_priority_queue.h>
|
int | size () const |
| Returns the size of the priority queue.
|
|
bool | empty () const |
| Returns true if the priority queue is empty.
|
|
const Entry & | min () |
| Returns a reference to the minimum element.
|
|
void | remove_min () |
| Removes the minimum entry.
|
|
Locator | insert (const Entry &e) |
| Inserts an entry and returns a Locator for that entry.
|
|
void | remove (Locator loc) |
| Removes the tracked entry.
|
|
void | update (Locator loc, const Entry &e) |
| Replaces the tracked entry with a new entry.
|
|
◆ Locator
template<typename Entry , typename
Compare = std::less<Entry>>
◆ empty()
template<typename Entry , typename
Compare = std::less<Entry>>
Returns true if the priority queue is empty.
◆ insert()
template<typename Entry , typename
Compare = std::less<Entry>>
Inserts an entry and returns a Locator for that entry.
◆ min()
template<typename Entry , typename
Compare = std::less<Entry>>
Returns a reference to the minimum element.
◆ remove()
template<typename Entry , typename
Compare = std::less<Entry>>
Removes the tracked entry.
◆ remove_min()
template<typename Entry , typename
Compare = std::less<Entry>>
Removes the minimum entry.
◆ size()
template<typename Entry , typename
Compare = std::less<Entry>>
Returns the size of the priority queue.
◆ update()
template<typename Entry , typename
Compare = std::less<Entry>>
Replaces the tracked entry with a new entry.
The documentation for this class was generated from the following file: