Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkObjectStack Class Reference

#include <vtkObjectStack.h>

Inheritance diagram for vtkObjectStack:

Inheritance graph
[legend]
Collaboration diagram for vtkObjectStack:

Collaboration graph
[legend]
List of all members.

Detailed Description

A stack object for objects.

Calls Register when objects are pushed onto the stack and UnRegister when the object is popped.

Author:
Sean McInerney
Version:
Revision
1.6
Date:
Date
2004/06/03 18:58:29
See also:
vtkObjectBaseStack vtkObject

Definition at line 36 of file vtkObjectStack.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkObjectStack, vtkObjectBaseStack)
virtual vtkObjectTop (void) const
 Get a pointer to the object at the first element of the stack.

virtual int Push (vtkObject *object)
 Add an object pointer to the top of the stack.

vtkObjectStackIteratorCreateIterator (void)
 Create an iterator.


Static Public Member Functions

vtkObjectStackNew (void)

Protected Member Functions

 vtkObjectStack (void)
 ~vtkObjectStack ()


Constructor & Destructor Documentation

vtkObjectStack::vtkObjectStack void   )  [inline, protected]
 

Definition at line 68 of file vtkObjectStack.h.

vtkObjectStack::~vtkObjectStack  )  [inline, protected]
 

Definition at line 69 of file vtkObjectStack.h.


Member Function Documentation

vtkObjectStackIterator* vtkObjectStack::CreateIterator void   )  [virtual]
 

Create an iterator.

Reimplemented from vtkObjectBaseStack.

Reimplemented in vtkExtensionsObjectStack.

vtkObjectStack* vtkObjectStack::New void   )  [static]
 

Reimplemented from vtkObjectBaseStack.

Reimplemented in vtkExtensionsObjectStack, vtkPaletteElementStack, and vtkPaletteStack.

virtual int vtkObjectStack::Push vtkObject object  )  [inline, virtual]
 

Add an object pointer to the top of the stack.

Parameters:
object The object pointer to be added.
This is a typical stack operation. The function creates an element at the top of the stack and assigns the given object pointer to it.

Returns:
true on success, false otherwise.

Definition at line 61 of file vtkObjectStack.h.

virtual vtkObject* vtkObjectStack::Top void   )  const [inline, virtual]
 

Get a pointer to the object at the first element of the stack.

Returns:
A pointer to the first object on success, NULL otherwise.
Note:
Covariant return type.

Reimplemented from vtkObjectBaseStack.

Reimplemented in vtkExtensionsObjectStack, vtkPaletteElementStack, and vtkPaletteStack.

Definition at line 49 of file vtkObjectStack.h.

vtkObjectStack::vtkTypeRevisionMacro vtkObjectStack  ,
vtkObjectBaseStack 
 


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 03:43:29 2004 for vtkExtensions by doxygen 1.3.7