Go to the documentation of this file.
34 #ifndef vtkCollection_h
35 #define vtkCollection_h
37 #include "vtkCommonCoreModule.h"
181 if ( elem !=
nullptr )
196 if ( elem !=
nullptr )
198 cookie =
static_cast<void *
>(elem->
Next);
vtkCollectionIterator * NewIterator()
Get an iterator to traverse the objects in this collection.
vtkCollectionElement * Current
virtual void RemoveElement(vtkCollectionElement *element, vtkCollectionElement *previous)
static vtkCollection * New()
Construct with empty list.
virtual void DeleteElement(vtkCollectionElement *)
void * vtkCollectionSimpleIterator
void InitTraversal(vtkCollectionSimpleIterator &cookie)
A reentrant safe way to iterate through a collection.
void RemoveItem(vtkObject *)
Remove an object from the list.
void Register(vtkObjectBase *o) override
Participate in garbage collection.
int IsItemPresent(vtkObject *a)
Search for an object and return location in list.
abstract base class for most VTK objects
void ReplaceItem(int i, vtkObject *)
Replace the i'th item in the collection with another item.
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 UnRegister(vtkObjectBase *o) override
Decrease the reference count (release by another object).
void InsertItem(int i, vtkObject *)
Insert item into the list after the i'th item.
vtkObject * GetItemAsObject(int i)
Get the i'th item in the collection.
void ReportReferences(vtkGarbageCollector *collector) override
Detect and break reference loops.
void RemoveAllItems()
Remove all objects from the list.
void RemoveItem(int i)
Remove the i'th item in the list.
void AddItem(vtkObject *)
Add an object to the bottom of the list.
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 * Top
~vtkCollection() override