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

vtkObjectHashMap Class Reference

#include <vtkObjectHashMap.h>

Inheritance diagram for vtkObjectHashMap:

Inheritance graph
[legend]
Collaboration diagram for vtkObjectHashMap:

Collaboration graph
[legend]
List of all members.

Detailed Description

A hash map container for objects.

Author:
Sean McInerney
Version:
Revision
1.3
Date:
Date
2005/06/24 23:17:16
See also:
vtkObjectBaseHashMap vtkObject

Definition at line 31 of file vtkObjectHashMap.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkObjectHashMap, vtkObjectBaseHashMap)
void PrintSelf (ostream &, vtkIndent)
virtual int Swap (vtkObjectHashMap *container)
 Swaps items of this container with those of the specified container.

virtual int Copy (vtkObjectHashMap *container)
 Copy all items from the specified container into this container.

vtkObjectFind (const char *key) const
 Find the item in the table with the given key string.

virtual int Insert (const char *key, vtkObject *item)
 Insert an item into the table paired with a key string.

vtkObjectHashMapIteratorCreateIterator (void)
 Create an iterator.

Data Access Methods
vtkObjectFront (void) const
 Returns the first item in the container, or null if the container is empty.

virtual int Front (const char *&key, vtkObject *&item) const
 Gets the first key - item association in the map.

vtkObjectBack (void) const
 Returns the last item in the container, or null if the container is empty.

virtual int Back (const char *&key, vtkObject *&item) const
 Gets the last key - item association in the map.


Static Public Member Functions

vtkObjectHashMapNew (void)

Protected Member Functions

 vtkObjectHashMap (void)
 ~vtkObjectHashMap ()


Constructor & Destructor Documentation

vtkObjectHashMap::vtkObjectHashMap void   )  [protected]
 

vtkObjectHashMap::~vtkObjectHashMap  )  [protected]
 


Member Function Documentation

int vtkObjectHashMap::Back const char *&  key,
vtkObject *&  item
const [inline, virtual]
 

Gets the last key - item association in the map.

Returns:
false if the map is empty, otherwise true.

Definition at line 153 of file vtkObjectHashMap.h.

vtkObject* vtkObjectHashMap::Back void   )  const [inline, virtual]
 

Returns the last item in the container, or null if the container is empty.

Reimplemented from vtkObjectBaseHashMap.

Definition at line 95 of file vtkObjectHashMap.h.

virtual int vtkObjectHashMap::Copy vtkObjectHashMap container  )  [inline, virtual]
 

Copy all items from the specified container into this container.

Returns:
true on success, otherwise false.

Definition at line 50 of file vtkObjectHashMap.h.

vtkObjectHashMapIterator* vtkObjectHashMap::CreateIterator void   )  [virtual]
 

Create an iterator.

Reimplemented from vtkObjectBaseHashMap.

vtkObject* vtkObjectHashMap::Find const char *  key  )  const [inline, virtual]
 

Find the item in the table with the given key string.

Parameters:
key A unique string serving as the map key.
Returns:
The item associated with the specified key if found or NULL if the key is removed, empty, or non-existant.

Reimplemented from vtkObjectBaseHashMap.

Definition at line 60 of file vtkObjectHashMap.h.

int vtkObjectHashMap::Front const char *&  key,
vtkObject *&  item
const [inline, virtual]
 

Gets the first key - item association in the map.

Returns:
false if the map is empty, otherwise true.

Definition at line 143 of file vtkObjectHashMap.h.

vtkObject* vtkObjectHashMap::Front void   )  const [inline, virtual]
 

Returns the first item in the container, or null if the container is empty.

Reimplemented from vtkObjectBaseHashMap.

Definition at line 81 of file vtkObjectHashMap.h.

virtual int vtkObjectHashMap::Insert const char *  key,
vtkObject item
[inline, virtual]
 

Insert an item into the table paired with a key string.

Parameters:
key A unique string serving as the map key.
item An object to be associated with the key.
Returns:
true for successful additions to the table or false when attempting to insert empty or duplicate strings.

Definition at line 71 of file vtkObjectHashMap.h.

vtkObjectHashMap* vtkObjectHashMap::New void   )  [static]
 

Reimplemented from vtkObjectBaseHashMap.

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

Reimplemented from vtkObjectBaseHashMap.

virtual int vtkObjectHashMap::Swap vtkObjectHashMap container  )  [inline, virtual]
 

Swaps items of this container with those of the specified container.

Returns:
true on success, otherwise false.

Definition at line 43 of file vtkObjectHashMap.h.

vtkObjectHashMap::vtkTypeRevisionMacro vtkObjectHashMap  ,
vtkObjectBaseHashMap 
 


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