34 #ifndef vtkCollection_h 35 #define vtkCollection_h 37 #include "vtkCommonCoreModule.h" 55 void PrintSelf(ostream& os,
vtkIndent indent)
override;
85 void RemoveItem(
int i);
97 void RemoveAllItems();
181 if ( elem !=
nullptr )
183 this->Current = elem->
Next;
196 if ( elem !=
nullptr )
198 cookie =
static_cast<void *
>(elem->
Next);
void * vtkCollectionSimpleIterator
abstract base class for most VTK objects
void InitTraversal()
Initialize the traversal of the collection.
vtkCollectionElement * Current
Detect and break reference loops.
a simple class to control print indentation
virtual void ReportReferences(vtkGarbageCollector *)
abstract base class for most VTK objects
vtkCollectionElement * Bottom
iterator through a vtkCollection.
int GetNumberOfItems()
Return the number of objects in the list.
create and manipulate ordered lists of objects
void InitTraversal(vtkCollectionSimpleIterator &cookie)
A reentrant safe way to iterate through a collection.
vtkCollectionElement * Next
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
vtkCollectionElement * Top