38 #ifndef vtkPriorityQueue_h 39 #define vtkPriorityQueue_h 41 #include "vtkCommonCoreModule.h" 62 void PrintSelf(ostream& os,
vtkIndent indent)
override;
146 if (id <= this->ItemLocation->GetMaxId() && (loc = this->ItemLocation->GetValue(
id)) != -1)
148 this->Pop(loc, priority);
157 if (id <= this->ItemLocation->GetMaxId() && (loc = this->ItemLocation->GetValue(
id)) != -1)
159 return this->Array[loc].priority;
172 priority = this->Array[
location].priority;
abstract base class for most VTK objects
vtkIdTypeArray * ItemLocation
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.
double DeleteId(vtkIdType id)
Delete entry in queue with specified id.