#include <vtkObjectBasePriorityQueue.h>
Inheritance diagram for vtkObjectBasePriorityQueue:
Calls Register
when objects are pushed onto the queue and UnRegister
when the object is popped.
Definition at line 38 of file vtkObjectBasePriorityQueue.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBasePriorityQueue, vtkContainer) | |
vtkIdType | GetSize (void) const |
Returns the number of elements in the queue. | |
int | IsEmpty (void) const |
Returns true if the queue is empty. | |
vtkIdType | GetMaxSize (void) const |
Returns the maximum size of the queue. | |
void | Clear (void) |
Remove ALL elements. | |
virtual int | Swap (vtkObjectBasePriorityQueue *container) |
Swaps elements of this object with those of the specified container. | |
vtkObjectBasePriorityQueueIterator * | CreateIterator (void) |
Create an iterator. | |
Queue Operations | |
virtual int | Push (vtkObjectBase *object, int priority=0) |
Add an object pointer to the end of the queue. | |
int | Pop (void) |
Removes the first element. | |
virtual vtkObjectBase * | Top (void) const |
Get a pointer to the object at the first element of the queue. | |
Static Public Member Functions | |
vtkObjectBasePriorityQueue * | New (void) |
Protected Member Functions | |
vtkObjectBasePriorityQueue (void) | |
~vtkObjectBasePriorityQueue () |
|
|
|
|
|
Remove ALL elements.
Implements vtkContainer. |
|
Create an iterator.
Implements vtkContainer. Reimplemented in vtkExtensionsObjectPriorityQueue, and vtkObjectPriorityQueue. |
|
Returns the maximum size of the queue.
Reimplemented from vtkContainer. |
|
Returns the number of elements in the queue.
Reimplemented from vtkContainer. |
|
Returns
Reimplemented from vtkContainer. |
|
Reimplemented from vtkExtensionsObject. Reimplemented in vtkExtensionsObjectPriorityQueue, and vtkObjectPriorityQueue. |
|
Removes the first element. This is a typical queue operation. It shrinks the queue by one.
|
|
Add an
|
|
Swaps elements of this object with those of the specified container.
|
|
Get a pointer to the object at the first element of the queue.
Reimplemented in vtkExtensionsObjectPriorityQueue, and vtkObjectPriorityQueue. Definition at line 146 of file vtkObjectBasePriorityQueue.h. References vtkContainer::Front(). |
|
|