38 #ifndef vtkPriorityQueue_h
39 #define vtkPriorityQueue_h
41 #include "vtkCommonCoreModule.h"
146 if ( id <= this->ItemLocation->
GetMaxId() &&
147 (loc=this->ItemLocation->GetValue(
id)) != -1 )
149 this->Pop(loc,priority);
158 if ( id <= this->ItemLocation->GetMaxId() &&
159 (loc=this->ItemLocation->GetValue(
id)) != -1 )
161 return this->Array[loc].priority;
168 if ( this->MaxId < 0 )
174 priority = this->Array[
location].priority;
181 if ( this->MaxId < 0 )
vtkIdType GetMaxId()
What is the maximum id currently in the array.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType Peek(vtkIdType location, double &priority)
Peek into the queue without actually removing anything.
dynamic, self-adjusting array of vtkIdType
a list of ids arranged in priority order
double GetPriority(vtkIdType id)
Get the priority of an entry in the queue with specified id.
a simple class to control print indentation
vtkIdType GetNumberOfItems()
Return the number of items in this queue.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...