#include <vtkIterator.h>
Inheritance diagram for vtkIterator:
vtkContainer
subclasses.
vtkIterator is a superclass of all container iterators.
Definition at line 37 of file vtkIterator.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkIterator, vtkObject) | |
void | PrintSelf (ostream &, vtkIndent) |
virtual vtkContainer * | GetContainer (void) const |
Get the associated container. | |
void | Register (vtkObjectBase *) |
Increase the reference count (mark as used by another object). | |
void | UnRegister (vtkObjectBase *) |
Decrease the reference count (release by another object). | |
Data Access Methods | |
virtual vtkIdType | GetPosition (void) const |
Retrieve the position from the iterator. | |
virtual const char * | GetKey (void) const |
Retrieve the key from the iterator. | |
virtual vtkObjectBase * | GetItem (void) const |
Retrieve the data from the iterator. | |
virtual int | SetItem (vtkObjectBase *object)=0 |
Set the data at the iterator's position. | |
Traversal Methods | |
virtual int | InitTraversal (void)=0 |
Initialize traversal of the container. | |
virtual int | Increment (void)=0 |
Increment the iterator to the next location. | |
virtual int | Decrement (void)=0 |
Decrement the iterator to the previous location. | |
Protected Member Functions | |
vtkIterator (void) | |
~vtkIterator () | |
virtual void | SetContainer (vtkContainer *) |
Set the container for this iterator. | |
void | ReportReferences (vtkGarbageCollector *) |
Protected Attributes | |
vtkContainer * | Container |
Friends | |
class | vtkContainer |
|
|
|
|
|
Decrement the iterator to the previous location.
Implemented in vtkObjectBaseDequeIterator, vtkObjectBaseHashMapIterator, vtkObjectBaseListIterator, vtkObjectBaseMapIterator, vtkObjectBaseSetIterator, and vtkObjectBaseVectorIterator. |
|
Get the associated container.
|
|
Retrieve the data from the iterator.
Reimplemented in vtkObjectBaseDequeIterator, vtkObjectBaseHashMapIterator, vtkObjectBaseListIterator, vtkObjectBaseMapIterator, vtkObjectBaseSetIterator, vtkObjectBaseVectorIterator, vtkObjectDequeIterator, vtkObjectHashMapIterator, vtkObjectListIterator, vtkObjectMapIterator, vtkObjectSetIterator, and vtkObjectVectorIterator. |
|
Retrieve the key from the iterator. For associative containers, the key is the string paired with the data.
Reimplemented in vtkObjectBaseHashMapIterator, and vtkObjectBaseMapIterator. |
|
Retrieve the position from the iterator. For non-associative containers, the position is the index of the element.
Reimplemented in vtkObjectBaseDequeIterator, vtkObjectBaseHashMapIterator, vtkObjectBaseListIterator, vtkObjectBaseMapIterator, vtkObjectBaseSetIterator, and vtkObjectBaseVectorIterator. |
|
Increment the iterator to the next location.
Implemented in vtkObjectBaseDequeIterator, vtkObjectBaseHashMapIterator, vtkObjectBaseListIterator, vtkObjectBaseMapIterator, vtkObjectBaseSetIterator, and vtkObjectBaseVectorIterator. |
|
Initialize traversal of the container. Sets the iterator to the "beginning" of the container.
Implemented in vtkObjectBaseDequeIterator, vtkObjectBaseHashMapIterator, vtkObjectBaseListIterator, vtkObjectBaseMapIterator, vtkObjectBaseSetIterator, and vtkObjectBaseVectorIterator. |
|
|
Increase the reference count (mark as used by another object).
Reimplemented from vtkObject. |
|
|
|
Set the container for this iterator.
|
|
Set the data at the iterator's position.
Implemented in vtkObjectBaseDequeIterator, vtkObjectBaseHashMapIterator, vtkObjectBaseListIterator, vtkObjectBaseMapIterator, vtkObjectBaseSetIterator, and vtkObjectBaseVectorIterator. |
|
Decrease the reference count (release by another object).
Reimplemented from vtkObject. |
|
|
|
Definition at line 116 of file vtkIterator.h. |
|
Definition at line 118 of file vtkIterator.h. |