37 #ifndef vtkPriorityQueue_h 38 #define vtkPriorityQueue_h 62 void PrintSelf(ostream& os,
vtkIndent indent);
133 if ( id <= this->ItemLocation->GetMaxId() &&
134 (loc=this->ItemLocation->GetValue(
id)) != -1 )
136 this->Pop(loc,priority);
145 if ( id <= this->ItemLocation->GetMaxId() &&
146 (loc=this->ItemLocation->GetValue(
id)) != -1 )
148 return this->Array[loc].priority;
155 if ( this->MaxId < 0 )
161 priority = this->Array[
location].priority;
168 if ( this->MaxId < 0 )
abstract base class for most VTK objects
#define VTKCOMMONCORE_EXPORT
vtkIdTypeArray * ItemLocation
vtkIdType Peek(vtkIdType location, double &priority)
dynamic, self-adjusting array of vtkIdType
#define vtkTypeMacro(thisClass, superclass)
a list of ids arranged in priority order
double GetPriority(vtkIdType id)
a simple class to control print indentation
vtkIdType GetNumberOfItems()
double DeleteId(vtkIdType id)