#include <vtkObjectBaseStack.h>
Inheritance diagram for vtkObjectBaseStack:
A stack is an adaptor that provides a restricted subset of Container functionality: it provides insertion, removal, and inspection of the item at the top of the stack. Stack is a "last in first out" (LIFO) data structure: the item at the top of a stack is the one that was most recently added.
deque
.
Definition at line 43 of file vtkObjectBaseStack.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBaseStack, 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 (vtkObjectBaseStack *container) |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkObjectBaseStack *container) |
Copy all items from the specified container into this container. | |
vtkIdType | GetSizeLimit (void) const |
Get/Set stack size limit (-1 == unlimited). | |
void | SetSizeLimit (vtkIdType limit) |
Get/Set stack size limit (-1 == unlimited). | |
Stack Operations | |
virtual int | Push (vtkObjectBase *item) |
Add an item to the top of this stack. | |
int | Pop (void) |
Removes the first item in this stack. | |
virtual vtkObjectBase * | Top (void) const |
Returns the first item in this stack on success, NULL otherwise. | |
Atypical Operations | |
virtual vtkObjectBase * | At (vtkIdType position) const |
Provides access by index to the objects contained in this stack. | |
int | PopBottom (void) |
Removes the last item in this stack. | |
Static Public Member Functions | |
vtkObjectBaseStack * | New (void) |
Protected Member Functions | |
vtkObjectBaseStack (void) | |
~vtkObjectBaseStack () | |
void | ReportReferences (vtkGarbageCollector *) |
|
|
|
|
|
Provides access by index to the objects contained in this stack.
Reimplemented in vtkObjectStack. |
|
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. |
|
Get/Set stack size limit (-1 == unlimited).
|
|
Returns
Reimplemented from vtkContainer. |
|
Reimplemented from vtkObject. Reimplemented in vtkObjectStack. |
|
Removes the first item in this stack.
|
|
Removes the last item in this stack.
|
|
Reimplemented from vtkAdaptorContainer. Reimplemented in vtkObjectStack. |
|
Add an item to the top of this stack.
|
|
|
|
Get/Set stack size limit (-1 == unlimited).
|
|
Swaps items of this container with those of the specified container.
|
|
Returns the first item in this stack on success,
Reimplemented in vtkObjectStack. Definition at line 164 of file vtkObjectBaseStack.h. References vtkContainer::Back(). |
|
|