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