#include <vtkObjectBaseQueue.h>
Inheritance diagram for vtkObjectBaseQueue:
A queue is an adaptor that provides a restricted subset of Container functionality. A queue is a "first in first out" (FIFO) data structure. That is, items are added to the back of the queue and may be removed from the front; Q->front() is the item that was added to the queue least recently.
deque
.
Definition at line 43 of file vtkObjectBaseQueue.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBaseQueue, 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 (vtkObjectBaseQueue *container) |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkObjectBaseQueue *container) |
Copy all items from the specified container into this container. | |
Queue Operations | |
virtual int | Push (vtkObjectBase *item) |
Add an item to the end of the queue. | |
int | Pop (void) |
Removes the first item in this queue. | |
Atypical Operations | |
virtual vtkObjectBase * | At (vtkIdType position) const |
Provides access by index to the objects contained in this queue. | |
Data Access Methods | |
vtkObjectBase * | Front (void) const |
Returns the first item in the container, or null if the container is empty. | |
vtkObjectBase * | Back (void) const |
Returns the last item in the container, or null if the container is empty. | |
Static Public Member Functions | |
vtkObjectBaseQueue * | New (void) |
Protected Member Functions | |
vtkObjectBaseQueue (void) | |
~vtkObjectBaseQueue () | |
void | ReportReferences (vtkGarbageCollector *) |
|
|
|
|
|
Provides access by index to the objects contained in this queue.
Reimplemented in vtkObjectQueue. |
|
Returns the last item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectQueue. |
|
Erase ALL items in the container.
Implements vtkContainer. |
|
Copy all items from the specified container into this container.
|
|
Returns the first item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectQueue. |
|
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 vtkObjectQueue. |
|
Removes the first item in this queue.
|
|
Reimplemented from vtkAdaptorContainer. Reimplemented in vtkObjectQueue. |
|
Add an item to the end of the queue.
|
|
|
|
Swaps items of this container with those of the specified container.
|
|
|