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

vtkPaletteHashMap Class Reference

#include <vtkPaletteHashMap.h>

Inheritance diagram for vtkPaletteHashMap:

Inheritance graph
[legend]
Collaboration diagram for vtkPaletteHashMap:

Collaboration graph
[legend]
List of all members.

Detailed Description

A hash map object for palettes.

Calls Register when palettes are inserted into the map and UnRegister when the palette is removed.

Author:
Sean McInerney
Version:
Revision
1.2
Date:
Date
2004/06/12 20:01:23
See also:
vtkPaletteElementHashMap vtkPalette

Definition at line 36 of file vtkPaletteHashMap.h.

Public Member Functions

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

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

virtual int Insert (const char *key, vtkPalette *palette)
 Insert a palette into the table paired with a key string.

virtual const char * FindKey (const vtkPalette *palette)
 Find the first key in the map associated with a palette pointer.

vtkPaletteHashMapIteratorCreateIterator (void)
 Create an iterator.

Data Access Methods
vtkPaletteFront (void) const
 Get a read/write pointer to the first palette in the map.

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

vtkPaletteBack (void) const
 Get a read/write pointer to the last palette in the map.

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


Static Public Member Functions

vtkPaletteHashMapNew (void)

Protected Member Functions

 vtkPaletteHashMap (void)
 ~vtkPaletteHashMap ()


Constructor & Destructor Documentation

vtkPaletteHashMap::vtkPaletteHashMap void   )  [inline, protected]
 

Definition at line 124 of file vtkPaletteHashMap.h.

vtkPaletteHashMap::~vtkPaletteHashMap  )  [inline, protected]
 

Definition at line 125 of file vtkPaletteHashMap.h.


Member Function Documentation

int vtkPaletteHashMap::Back const char *&  key,
vtkPalette *&  palette
const [inline, virtual]
 

Gets the last key - palette 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 167 of file vtkPaletteHashMap.h.

vtkPalette* vtkPaletteHashMap::Back void   )  const [inline, virtual]
 

Get a read/write pointer to the last palette in the map.

Returns:
null if the map is empty, otherwise returns a pointer to a palette.

Reimplemented from vtkPaletteElementHashMap.

Definition at line 108 of file vtkPaletteHashMap.h.

vtkPaletteHashMapIterator* vtkPaletteHashMap::CreateIterator void   )  [virtual]
 

Create an iterator.

Reimplemented from vtkPaletteElementHashMap.

vtkPalette* vtkPaletteHashMap::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 palette associated with the specified key if found or NULL if the key is removed, empty, or non-existant.
Note:
Covariant return type.

Reimplemented from vtkPaletteElementHashMap.

Definition at line 59 of file vtkPaletteHashMap.h.

virtual const char* vtkPaletteHashMap::FindKey const vtkPalette palette  )  [inline, virtual]
 

Find the first key in the map associated with a palette pointer.

Returns:
true on success, false otherwise.

Definition at line 82 of file vtkPaletteHashMap.h.

int vtkPaletteHashMap::Front const char *&  key,
vtkPalette *&  palette
const [inline, virtual]
 

Gets the first key - palette 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 157 of file vtkPaletteHashMap.h.

vtkPalette* vtkPaletteHashMap::Front void   )  const [inline, virtual]
 

Get a read/write pointer to the first palette in the map.

Returns:
null if the map is empty, otherwise returns a pointer to a palette.

Reimplemented from vtkPaletteElementHashMap.

Definition at line 92 of file vtkPaletteHashMap.h.

virtual int vtkPaletteHashMap::Insert const char *  key,
vtkPalette palette
[inline, virtual]
 

Insert a palette into the table paired with a key string.

Parameters:
key A unique string serving as the map key.
palette A palette 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 vtkPaletteHashMap.h.

vtkPaletteHashMap* vtkPaletteHashMap::New void   )  [static]
 

Reimplemented from vtkPaletteElementHashMap.

virtual int vtkPaletteHashMap::Swap vtkPaletteHashMap 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 vtkPaletteHashMap.h.

References Swap().

vtkPaletteHashMap::vtkTypeRevisionMacro vtkPaletteHashMap  ,
vtkPaletteElementHashMap 
 


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