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

vtkObjectBaseHashMapIterator Class Reference

#include <vtkObjectBaseHashMapIterator.h>

Inheritance diagram for vtkObjectBaseHashMapIterator:

Inheritance graph
[legend]
Collaboration diagram for vtkObjectBaseHashMapIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

An iterator for vtkObjectBaseHashMap subclasses.

See also:
vtkObjectBaseHashMap

Definition at line 30 of file vtkObjectBaseHashMapIterator.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkObjectBaseHashMapIterator, vtkAbstractMapIterator)
Data Access Methods
const char * GetKey (void) const
 Retrieve the key from the iterator.

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

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

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

int InitTraversal (const char *key)
 Initialize traversal of the container starting at a key.

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

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


Static Public Member Functions

vtkObjectBaseHashMapIteratorNew (void)

Protected Member Functions

 vtkObjectBaseHashMapIterator (void)
 ~vtkObjectBaseHashMapIterator ()


Constructor & Destructor Documentation

vtkObjectBaseHashMapIterator::vtkObjectBaseHashMapIterator void   )  [protected]
 

vtkObjectBaseHashMapIterator::~vtkObjectBaseHashMapIterator  )  [protected]
 


Member Function Documentation

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

const char* vtkObjectBaseHashMapIterator::GetKey void   )  const [virtual]
 

Retrieve the key from the iterator.

For associative containers, the key is the string paired with the data.

Returns:
The key if retrieved correctly, otherwise null.

Reimplemented from vtkIterator.

vtkObjectBase* vtkObjectBaseHashMapIterator::GetObject void   )  const [virtual]
 

Retrieve the data from the iterator.

Returns:
The object if retrieved correctly, otherwise null.

Reimplemented from vtkIterator.

Reimplemented in vtkExtensionsObjectHashMapIterator, vtkObjectHashMapIterator, vtkPaletteElementHashMapIterator, and vtkPaletteHashMapIterator.

int vtkObjectBaseHashMapIterator::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 vtkObjectBaseHashMapIterator::InitTraversal const char *  key  )  [virtual]
 

Initialize traversal of the container starting at a key.

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

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

Implements vtkAbstractMapIterator.

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

vtkObjectBaseHashMapIterator* vtkObjectBaseHashMapIterator::New void   )  [static]
 

Reimplemented from vtkExtensionsObject.

Reimplemented in vtkExtensionsObjectHashMapIterator, vtkObjectHashMapIterator, vtkPaletteElementHashMapIterator, and vtkPaletteHashMapIterator.

int vtkObjectBaseHashMapIterator::SetObject vtkObjectBase object  )  [virtual]
 

Set the data at the iterator's position.

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

Implements vtkIterator.

vtkObjectBaseHashMapIterator::vtkTypeRevisionMacro vtkObjectBaseHashMapIterator  ,
vtkAbstractMapIterator 
 


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 03:42:31 2004 for vtkExtensions by doxygen 1.3.7