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