HDK
|
#include <UT_PriorityQueue.h>
Public Member Functions | |
UT_PriorityQueue (unsigned int sz=0, const utCompare &compare=utCompare()) | |
Trivial constructor and destructor: More... | |
virtual | ~UT_PriorityQueue () |
UT_PriorityQueue (const UT_PriorityQueue< utPtr, utCompare, need_changed_position > &a) | |
unsigned int | insert (utPtr t) |
unsigned int | append (utPtr t) |
void | destroy (unsigned int entry) |
calls remove before destroying More... | |
void | remove (unsigned int entry) |
void | clear () |
exint | size () const |
exint | entries () const |
int64 | getMemoryUsage (bool inclusive) const |
bool | isEmpty () const |
const utPtr & | head () const |
const utPtr & | getEntry (int idx) const |
virtual void | changedPosition (utPtr, unsigned int) const |
unsigned int | bubbleDown (unsigned int entry) |
unsigned int | bubbleUp (unsigned int entry) |
Protected Attributes | |
UT_Array< utPtr > | myArray |
const utCompare | comparator |
NOTE: UT_PriorityQueue and std::priority_queue are max heaps, so the comparison direction must be opposite that for sorting an array.
Definition at line 27 of file UT_PriorityQueue.h.
|
inlineexplicit |
Trivial constructor and destructor:
Definition at line 31 of file UT_PriorityQueue.h.
|
inlinevirtual |
Definition at line 36 of file UT_PriorityQueue.h.
|
inline |
Copy constructor that uses operator '=' to assign each of a's Things to this array.
Definition at line 40 of file UT_PriorityQueue.h.
|
inline |
Definition at line 54 of file UT_PriorityQueue.h.
|
inline |
Definition at line 117 of file UT_PriorityQueue.h.
|
inline |
Definition at line 159 of file UT_PriorityQueue.h.
|
inlinevirtual |
Reimplemented in gu_sdf_queue.
Definition at line 113 of file UT_PriorityQueue.h.
|
inline |
Definition at line 84 of file UT_PriorityQueue.h.
|
inline |
calls remove before destroying
Definition at line 61 of file UT_PriorityQueue.h.
|
inline |
Definition at line 90 of file UT_PriorityQueue.h.
|
inline |
Definition at line 107 of file UT_PriorityQueue.h.
|
inline |
Definition at line 92 of file UT_PriorityQueue.h.
|
inline |
Definition at line 102 of file UT_PriorityQueue.h.
|
inline |
Definition at line 46 of file UT_PriorityQueue.h.
|
inline |
Definition at line 99 of file UT_PriorityQueue.h.
|
inline |
Definition at line 68 of file UT_PriorityQueue.h.
|
inline |
Definition at line 89 of file UT_PriorityQueue.h.
|
protected |
Definition at line 218 of file UT_PriorityQueue.h.
|
protected |
Definition at line 217 of file UT_PriorityQueue.h.