Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkObjectBaseVectorIterator Class Reference

#include <vtkObjectBaseVectorIterator.h>

Inheritance diagram for vtkObjectBaseVectorIterator:

Inheritance graph
[legend]
Collaboration diagram for vtkObjectBaseVectorIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

An iterator for vtkObjectBaseVector subclasses.

Author:
Sean McInerney
Version:
Revision
1.3
Date:
Date
2005/07/13 00:21:58
See also:
vtkObjectBaseVector

Definition at line 33 of file vtkObjectBaseVectorIterator.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkObjectBaseVectorIterator, vtkSequenceIterator)
void PrintSelf (ostream &, vtkIndent)
Data Access Methods
vtkIdType GetPosition (void) const
 Retrieve the item index position from the iterator.

vtkObjectBaseGetItem (void) const
 Retrieve the data from the iterator.

int SetItem (vtkObjectBase *object)
 Set the data at the iterator's position.

Traversal Methods
int InitTraversal (void)
 Initialize traversal of the container.

int InitTraversal (vtkIdType i)
 Initialize traversal of the container.

int Increment (void)
 Increment the iterator to the next location.

int Decrement (void)
 Decrement the iterator to the previous location.


Static Public Member Functions

vtkObjectBaseVectorIteratorNew (void)

Protected Member Functions

 vtkObjectBaseVectorIterator (void)
 ~vtkObjectBaseVectorIterator ()

Friends

class vtkObjectBaseVector


Constructor & Destructor Documentation

vtkObjectBaseVectorIterator::vtkObjectBaseVectorIterator void   )  [protected]
 

vtkObjectBaseVectorIterator::~vtkObjectBaseVectorIterator  )  [protected]
 


Member Function Documentation

int vtkObjectBaseVectorIterator::Decrement void   )  [virtual]
 

Decrement the iterator to the previous location.

Returns:
false if the container is empty, the iterator is at the start of the container, or this iterator has not been initialized to traverse any container, otherwise true.

Implements vtkIterator.

vtkObjectBase* vtkObjectBaseVectorIterator::GetItem void   )  const [virtual]
 

Retrieve the data from the iterator.

Returns:
The object if retrieved correctly, otherwise null.

Reimplemented from vtkIterator.

Reimplemented in vtkObjectVectorIterator.

vtkIdType vtkObjectBaseVectorIterator::GetPosition void   )  const [virtual]
 

Retrieve the item index position from the iterator.

Returns:
The position if retrieved correctly, otherwise -1.

Reimplemented from vtkIterator.

int vtkObjectBaseVectorIterator::Increment void   )  [virtual]
 

Increment the iterator to the next location.

Returns:
false if the container is empty, the iterator is at the end of the container, or this iterator has not been initialized to traverse any container, otherwise true.

Implements vtkIterator.

int vtkObjectBaseVectorIterator::InitTraversal vtkIdType  i  )  [virtual]
 

Initialize traversal of the container.

Sets the iterator to the i'th position of the container.

Returns:
false if the container is empty, this iterator has not been initialized to traverse any container, or the position is out of range, otherwise true.

Implements vtkSequenceIterator.

int vtkObjectBaseVectorIterator::InitTraversal void   )  [virtual]
 

Initialize traversal of the container.

Sets the iterator to the "beginning" of the container.

Returns:
false if the container is empty or this iterator has not been initialized to traverse any container, otherwise true.

Implements vtkIterator.

vtkObjectBaseVectorIterator* vtkObjectBaseVectorIterator::New void   )  [static]
 

Reimplemented from vtkObject.

Reimplemented in vtkObjectVectorIterator.

void vtkObjectBaseVectorIterator::PrintSelf ostream &  ,
vtkIndent 
[virtual]
 

Reimplemented from vtkSequenceIterator.

Reimplemented in vtkObjectVectorIterator.

int vtkObjectBaseVectorIterator::SetItem vtkObjectBase object  )  [virtual]
 

Set the data at the iterator's position.

Returns:
true if the data were set correctly, otherwise false.

Implements vtkIterator.

vtkObjectBaseVectorIterator::vtkTypeRevisionMacro vtkObjectBaseVectorIterator  ,
vtkSequenceIterator 
 


Friends And Related Function Documentation

friend class vtkObjectBaseVector [friend]
 

Definition at line 109 of file vtkObjectBaseVectorIterator.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 14 14:40:02 2005 for vtkContainers by doxygen 1.3.6