#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.
rtflann::Heap< T >::Heap | ( | int | size | ) | [inline] |
int rtflann::Heap< T >::capacity | ( | ) | [inline] |
void rtflann::Heap< T >::clear | ( | ) | [inline] |
bool rtflann::Heap< T >::empty | ( | ) | [inline] |
void rtflann::Heap< T >::insert | ( | const T & | value | ) | [inline] |
bool rtflann::Heap< T >::popMin | ( | T & | value | ) | [inline] |
int rtflann::Heap< T >::size | ( | ) | [inline] |
int rtflann::Heap< T >::count [private] |
std::vector<T> rtflann::Heap< T >::heap [private] |
int rtflann::Heap< T >::length [private] |