22 #ifndef vtkCollection_h
23 #define vtkCollection_h
25 #include "vtkCommonCoreModule.h"
28 VTK_ABI_NAMESPACE_BEGIN
78 void RemoveItem(
int i);
90 void RemoveAllItems();
198 cookie =
static_cast<void*
>(elem->
Next);
207 VTK_ABI_NAMESPACE_END
void * vtkCollectionSimpleIterator
abstract base class for most VTK objects
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.
vtkCollectionElement * Current
bool UsesGarbageCollector() const override
Participate in garbage collection.
Detect and break reference loops.
a simple class to control print indentation
virtual void ReportReferences(vtkGarbageCollector *)
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
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.
vtkCollectionElement * Top