34 #ifndef vtkCollection_h
35 #define vtkCollection_h
37 #include "vtkCommonCoreModule.h"
85 void RemoveItem(
int i);
97 void RemoveAllItems();
163 vtkCollectionElement *Top;
164 vtkCollectionElement *Bottom;
165 vtkCollectionElement *Current;
179 vtkCollectionElement *elem=this->Current;
183 this->Current = elem->
Next;
198 cookie =
static_cast<void *
>(elem->
Next);
void * vtkCollectionSimpleIterator
abstract base class for most VTK objects
virtual void Register(vtkObjectBase *o)
Increase the reference count (mark as used by another object).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InitTraversal()
Initialize the traversal of the collection.
Detect and break reference loops.
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).
a simple class to control print indentation
abstract base class for most VTK objects
iterator through a vtkCollection.
int GetNumberOfItems()
Return the number of objects in the list.
create and manipulate unsorted lists of objects
void InitTraversal(vtkCollectionSimpleIterator &cookie)
A reentrant safe way to iterate through a collection.
vtkCollectionElement * Next
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkObject * GetNextItemAsObject()
Get the next item in the collection.