![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <heap.h>
Classes | |
| struct | CompareT |
Public Member Functions | |
| Heap (int size) | |
| int | size () |
| bool | empty () |
| void | clear () |
| void | insert (const T &value) |
| bool | popMin (T &value) |
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 |
Constructor.
Params: size = heap size
Definition at line 73 of file heap.h.
References count, length(), and flann::Heap< T >::size().
|
inline |
|
inline |
Tests if the heap is empty
Returns: true is heap empty, false otherwise
Definition at line 94 of file heap.h.
References flann::Heap< T >::size().
|
inline |
|
inline |
|
inline |
Returns: heap size
Definition at line 84 of file heap.h.
References count.
Referenced by flann::Heap< T >::empty(), and flann::Heap< T >::Heap().