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

vtkExtensionsObjectHashMap Class Reference

#include <vtkExtensionsObjectHashMap.h>

Inheritance diagram for vtkExtensionsObjectHashMap:

Inheritance graph
[legend]
Collaboration diagram for vtkExtensionsObjectHashMap:

Collaboration graph
[legend]
List of all members.

Detailed Description

A hash map object for objects.

Calls Register when objects are inserted into the map and UnRegister when the object is removed.

Author:
Sean McInerney
Version:
Revision
1.4
Date:
Date
2004/06/03 18:58:28
See also:
vtkObjectHashMap vtkExtensionsObject

Definition at line 36 of file vtkExtensionsObjectHashMap.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkExtensionsObjectHashMap, vtkObjectHashMap)
virtual int Swap (vtkExtensionsObjectHashMap *container)
 Swaps elements of this object with those of the specified container.

vtkExtensionsObjectFind (const char *key) const
 Find the entry in the table with the given key string.

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

virtual const char * FindKey (const vtkExtensionsObject *object)
 Find the first key in the map associated with an object pointer.

vtkExtensionsObjectHashMapIteratorCreateIterator (void)
 Create an iterator.

Data Access Methods
vtkExtensionsObjectFront (void) const
 Get a read/write pointer to the first object in the container.

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

vtkExtensionsObjectBack (void) const
 Get a read/write pointer to the last object in the container.

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


Static Public Member Functions

vtkExtensionsObjectHashMapNew (void)

Protected Member Functions

 vtkExtensionsObjectHashMap (void)
 ~vtkExtensionsObjectHashMap ()


Constructor & Destructor Documentation

vtkExtensionsObjectHashMap::vtkExtensionsObjectHashMap void   )  [inline, protected]
 

Definition at line 148 of file vtkExtensionsObjectHashMap.h.

vtkExtensionsObjectHashMap::~vtkExtensionsObjectHashMap  )  [inline, protected]
 

Definition at line 149 of file vtkExtensionsObjectHashMap.h.


Member Function Documentation

int vtkExtensionsObjectHashMap::Back const char *&  key,
vtkExtensionsObject *&  object
const [inline, virtual]
 

Gets the last key - object association in the map.

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

Definition at line 191 of file vtkExtensionsObjectHashMap.h.

vtkExtensionsObject* vtkExtensionsObjectHashMap::Back void   )  const [inline, virtual]
 

Get a read/write pointer to the last object in the container.

Returns:
null if the container is empty, otherwise returns a pointer to an object.

Reimplemented from vtkObjectHashMap.

Reimplemented in vtkPaletteElementHashMap, and vtkPaletteHashMap.

Definition at line 132 of file vtkExtensionsObjectHashMap.h.

vtkExtensionsObjectHashMapIterator* vtkExtensionsObjectHashMap::CreateIterator void   )  [virtual]
 

Create an iterator.

Reimplemented from vtkObjectHashMap.

Reimplemented in vtkPaletteElementHashMap, and vtkPaletteHashMap.

vtkExtensionsObject* vtkExtensionsObjectHashMap::Find const char *  key  )  const [inline, virtual]
 

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

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

Reimplemented from vtkObjectHashMap.

Reimplemented in vtkPaletteElementHashMap, and vtkPaletteHashMap.

Definition at line 59 of file vtkExtensionsObjectHashMap.h.

virtual const char* vtkExtensionsObjectHashMap::FindKey const vtkExtensionsObject object  )  [inline, virtual]
 

Find the first key in the map associated with an object pointer.

Returns:
The key string on success, null otherwise.

Definition at line 82 of file vtkExtensionsObjectHashMap.h.

int vtkExtensionsObjectHashMap::Front const char *&  key,
vtkExtensionsObject *&  object
const [inline, virtual]
 

Gets the first key - object association in the map.

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

Definition at line 181 of file vtkExtensionsObjectHashMap.h.

vtkExtensionsObject* vtkExtensionsObjectHashMap::Front void   )  const [inline, virtual]
 

Get a read/write pointer to the first object in the container.

Returns:
null if the container is empty, otherwise returns a pointer to an object.

Reimplemented from vtkObjectHashMap.

Reimplemented in vtkPaletteElementHashMap, and vtkPaletteHashMap.

Definition at line 116 of file vtkExtensionsObjectHashMap.h.

virtual int vtkExtensionsObjectHashMap::Insert const char *  key,
vtkExtensionsObject object
[inline, virtual]
 

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

Parameters:
key A unique string serving as the map key.
object An object to be associated with the key.
Exceptions:
bad_alloc Internal use of operator new may throw.
overflow_error Thrown for requests to grow the table beyond its maximum capacity (~ 1<<31).
Returns:
true for successful additions to the table or false when attempting to insert empty or duplicate strings.

Definition at line 74 of file vtkExtensionsObjectHashMap.h.

vtkExtensionsObjectHashMap* vtkExtensionsObjectHashMap::New void   )  [static]
 

Reimplemented from vtkObjectHashMap.

Reimplemented in vtkPaletteElementHashMap, and vtkPaletteHashMap.

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

Swaps elements of this object with those of the specified container.

Returns:
true on success, otherwise false.

Definition at line 47 of file vtkExtensionsObjectHashMap.h.

References Swap().

vtkExtensionsObjectHashMap::vtkTypeRevisionMacro vtkExtensionsObjectHashMap  ,
vtkObjectHashMap 
 

Reimplemented from vtkExtensionsObject.


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