#include <vtkIterator.h>
Inheritance diagram for vtkIterator:
vtkContainer
subclasses.
vtkIterator is a superclass of all container iterators.
Definition at line 33 of file vtkIterator.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkIterator, vtkExtensionsObject) | |
virtual vtkContainer * | GetContainer (void) const |
Get the associated container. | |
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 * | GetObject (void) const |
Retrieve the data from the iterator. | |
virtual int | SetObject (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. | |
Protected Attributes | |
vtkContainer * | Container |
|
|
|
|
|
Decrement the iterator to the previous location.
Implemented in vtkObjectBaseHashMapIterator, vtkObjectBaseMapIterator, vtkObjectBasePriorityQueueIterator, vtkObjectBaseQueueIterator, vtkObjectBaseSetIterator, vtkObjectBaseStackIterator, and vtkObjectBaseVectorIterator. |
|
Get the associated container.
|
|
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 vtkObjectBasePriorityQueueIterator, and vtkObjectBaseVectorIterator. |
|
Increment the iterator to the next location.
Implemented in vtkObjectBaseHashMapIterator, vtkObjectBaseMapIterator, vtkObjectBasePriorityQueueIterator, vtkObjectBaseQueueIterator, vtkObjectBaseSetIterator, vtkObjectBaseStackIterator, and vtkObjectBaseVectorIterator. |
|
Initialize traversal of the container. Sets the iterator to the "beginning" of the container.
Implemented in vtkObjectBaseHashMapIterator, vtkObjectBaseMapIterator, vtkObjectBasePriorityQueueIterator, vtkObjectBaseQueueIterator, vtkObjectBaseSetIterator, vtkObjectBaseStackIterator, and vtkObjectBaseVectorIterator. |
|
Set the container for this iterator.
|
|
Set the data at the iterator's position.
Implemented in vtkObjectBaseHashMapIterator, vtkObjectBaseMapIterator, vtkObjectBasePriorityQueueIterator, vtkObjectBaseQueueIterator, vtkObjectBaseSetIterator, vtkObjectBaseStackIterator, and vtkObjectBaseVectorIterator. |
|
|
|
Definition at line 108 of file vtkIterator.h. |