vtkPriorityQueue - an list of ids arranged in priority order
Super Class: vtkObject
Description:
vtkPriorityQueue is a general object for creating and manipulating lists of object ids (e.g., point or cell ids). Object ids are sorted acccording to a user-specified priority, where entries at the top of the queue have the smallest values. This implementation provides a feature beyond the usual ability to insert and retrieve (or pop) values from the queue. It is also possible to pop any item in the queue given its id number. This allows you to delete entries in the queue which can useful for reinserting an item into the queue.
Caveats:
This implementation is a variation of the priority queue described in "Data Structures & Algorithms" by Aho, Hopcroft, Ullman. It creates a balanced, partially ordered binary tree implemented as an ordered array. This avoids the overhead associated with parent/child pointers, and frequent memory allocation and deallocation.
Methods:
void vtkPriorityQueue () | |
void vtkPriorityQueue (const int ,const int ) | |
void vtkPriorityQueue () | |
static vtkPriorityQueue *New () | |
const char *GetClassName () | |
void PrintSelf (unknown & ,vtkIndent ) | |
int Pop (float & ,int ) | |
float DeleteId (int ) | |
float GetPriority (int ) | |
void Insert (float ,int ) | |
int GetNumberOfItems () | |
void Reset () | |
vtkPriorityItem *Resize (const int ) |
Detailed Method Descriptions:
void vtkPriorityQueue () |
void vtkPriorityQueue (const int ,const int ) |
int Pop (float & ,int ) |
float DeleteId (int ) |
float GetPriority (int ) |
void Insert (float ,int ) |
int GetNumberOfItems () |
void Reset () |