#include <heap.h>
Classes | |
| struct | CompareT |
Public Member Functions | |
| int | capacity () |
| void | clear () |
| bool | empty () |
| Heap (int size) | |
| void | insert (const T &value) |
| bool | popMin (T &value) |
| int | size () |
Private Attributes | |
| int | count |
| std::vector< T > | heap |
| int | length |
Priority Queue Implementation
The priority queue is implemented with a heap. A heap is a complete (full) binary tree in which each parent is less than both of its children, but the order of the children is unspecified.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |