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

vtkObjectBaseListIterator Class Reference

#include <vtkObjectBaseListIterator.h>

Inheritance diagram for vtkObjectBaseListIterator:

Inheritance graph
[legend]
Collaboration diagram for vtkObjectBaseListIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

An iterator for vtkObjectBaseList subclasses.

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

Definition at line 33 of file vtkObjectBaseListIterator.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkObjectBaseListIterator, 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

vtkObjectBaseListIteratorNew (void)

Protected Member Functions

 vtkObjectBaseListIterator (void)
 ~vtkObjectBaseListIterator ()

Friends

class vtkObjectBaseList


Constructor & Destructor Documentation

vtkObjectBaseListIterator::vtkObjectBaseListIterator void   )  [protected]
 

vtkObjectBaseListIterator::~vtkObjectBaseListIterator  )  [protected]
 


Member Function Documentation

int vtkObjectBaseListIterator::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* vtkObjectBaseListIterator::GetItem void   )  const [virtual]
 

Retrieve the data from the iterator.

Returns:
The object if retrieved correctly, otherwise null.

Reimplemented from vtkIterator.

Reimplemented in vtkObjectListIterator.

vtkIdType vtkObjectBaseListIterator::GetPosition void   )  const [virtual]
 

Retrieve the item index position from the iterator.

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

Reimplemented from vtkIterator.

int vtkObjectBaseListIterator::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 vtkObjectBaseListIterator::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 vtkObjectBaseListIterator::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.

vtkObjectBaseListIterator* vtkObjectBaseListIterator::New void   )  [static]
 

Reimplemented from vtkObject.

Reimplemented in vtkObjectListIterator.

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

Reimplemented from vtkSequenceIterator.

Reimplemented in vtkObjectListIterator.

int vtkObjectBaseListIterator::SetItem vtkObjectBase object  )  [virtual]
 

Set the data at the iterator's position.

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

Implements vtkIterator.

vtkObjectBaseListIterator::vtkTypeRevisionMacro vtkObjectBaseListIterator  ,
vtkSequenceIterator 
 


Friends And Related Function Documentation

friend class vtkObjectBaseList [friend]
 

Definition at line 109 of file vtkObjectBaseListIterator.h.


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