#include <vtkObjectBasePriorityQueue.h>
Inheritance diagram for vtkObjectBasePriorityQueue:
A priority queue is an adaptor that provides a restricted subset of Container functionality: it provides insertion of items, and inspection and removal of the top item. It is guaranteed that the top item is the highest priority item in the priority queue, where priority is determined by an associated value.
set
.
Definition at line 43 of file vtkObjectBasePriorityQueue.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBasePriorityQueue, vtkAdaptorContainer) | |
void | PrintSelf (ostream &, vtkIndent) |
virtual vtkIdType | GetSize (void) const |
Returns the number of items in the container. | |
virtual int | IsEmpty (void) const |
Returns true if this container is empty. | |
virtual vtkIdType | GetMaxSize (void) const |
Returns the maximum size of this container. | |
virtual int | Clear (void) |
Erase ALL items in the container. | |
virtual int | Swap (vtkObjectBasePriorityQueue *container) |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkObjectBasePriorityQueue *container) |
Copy all items from the specified container into this container. | |
Priority Queue Operations | |
virtual int | Push (vtkObjectBase *item, int priority=0) |
Add an item to the end of the queue with an optional priority value. | |
int | Pop (void) |
Removes the first item in this queue. | |
virtual vtkObjectBase * | Top (void) const |
Returns the first item in this queue on success, NULL otherwise. | |
Static Public Member Functions | |
vtkObjectBasePriorityQueue * | New (void) |
Protected Member Functions | |
vtkObjectBasePriorityQueue (void) | |
~vtkObjectBasePriorityQueue () | |
void | ReportReferences (vtkGarbageCollector *) |
|
|
|
|
|
Erase ALL items in the container.
Implements vtkContainer. |
|
Copy all items from the specified container into this container.
|
|
Returns the maximum size of this container.
Reimplemented from vtkContainer. |
|
Returns the number of items in the container.
Reimplemented from vtkContainer. |
|
Returns
Reimplemented from vtkContainer. |
|
Reimplemented from vtkObject. Reimplemented in vtkObjectPriorityQueue. |
|
Removes the first item in this queue.
|
|
Reimplemented from vtkAdaptorContainer. Reimplemented in vtkObjectPriorityQueue. |
|
Add an item to the end of the queue with an optional priority value.
|
|
|
|
Swaps items of this container with those of the specified container.
|
|
Returns the first item in this queue on success,
Reimplemented in vtkObjectPriorityQueue. Definition at line 140 of file vtkObjectBasePriorityQueue.h. References vtkContainer::Front(). |
|
|