#include <vtkAssociativeContainer.h>
Inheritance diagram for vtkAssociativeContainer:
An Associative Container is a variable-sized Container that supports efficient retrieval of items (values) based on keys. It supports insertion and removal of items, but differs from a Sequence in that it does not provide a mechanism for inserting an item at a specific position.
Definition at line 37 of file vtkAssociativeContainer.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkAssociativeContainer, vtkContainer) | |
void | PrintSelf (ostream &, vtkIndent) |
virtual int | Swap (vtkAssociativeContainer *container)=0 |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkAssociativeContainer *container)=0 |
Copy all items from the specified container into this container. | |
virtual vtkIdType | GetCapacity (void) const |
Returns the total number of items that the container can hold before needing to allocate more memory. | |
virtual vtkObjectBase * | Find (const char *key) const |
Find the item in the table with the given key string. | |
virtual int | Insert (const char *key, vtkObjectBase *item)=0 |
Insert an item into the table paired with a key string. | |
virtual int | Erase (const char *key)=0 |
Erase the entry matching a given key string. | |
virtual const char * | FindKey (const vtkObjectBase *item)=0 |
Find the first key in the map associated with an item. | |
virtual const char * | FindNextKey (void)=0 |
Find the next key in the map associated with the item specified in a previous call to FindKey . | |
virtual vtkAssociativeIterator * | CreateIterator (void)=0 |
Create an iterator. | |
virtual int | GetCheckUnique (void) const |
Toggle enforcement of uniqueness among key strings (default: true). | |
virtual void | SetCheckUnique (int a) |
Toggle enforcement of uniqueness among key strings (default: true). | |
virtual void | CheckUniqueOn () |
Toggle enforcement of uniqueness among key strings (default: true). | |
virtual void | CheckUniqueOff () |
Toggle enforcement of uniqueness among key strings (default: true). | |
virtual int | GetCheckCase (void) const |
Toggle matching of upper/lower case characters in keys (default: true). | |
virtual void | SetCheckCase (int a) |
Toggle matching of upper/lower case characters in keys (default: true). | |
virtual void | CheckCaseOn () |
Toggle matching of upper/lower case characters in keys (default: true). | |
virtual void | CheckCaseOff () |
Toggle matching of upper/lower case characters in keys (default: true). | |
Data Access Methods | |
virtual int | Front (const char *&key, vtkObjectBase *&item) const |
Gets the first key - item association in the map. | |
virtual int | Back (const char *&key, vtkObjectBase *&item) const |
Gets the last key - item association in the map. | |
Protected Member Functions | |
vtkAssociativeContainer (void) | |
~vtkAssociativeContainer () |
|
|
|
|
|
Gets the last key - item association in the map.
Reimplemented in vtkObjectBaseHashMap, and vtkObjectBaseMap. |
|
Toggle matching of upper/lower case characters in keys (default: true).
|
|
Toggle matching of upper/lower case characters in keys (default: true).
|
|
Toggle enforcement of uniqueness among key strings (default: true).
|
|
Toggle enforcement of uniqueness among key strings (default: true).
|
|
Copy all items from the specified container into this container.
|
|
Create an iterator.
Implements vtkContainer. Implemented in vtkObjectBaseHashMap, vtkObjectBaseMap, vtkObjectHashMap, and vtkObjectMap. |
|
Erase the entry matching a given key string.
Implemented in vtkObjectBaseHashMap, and vtkObjectBaseMap. |
|
Find the item in the table with the given key string.
Reimplemented in vtkObjectBaseHashMap, vtkObjectBaseMap, vtkObjectHashMap, and vtkObjectMap. |
|
Find the first key in the map associated with an item.
Implemented in vtkObjectBaseHashMap, and vtkObjectBaseMap. |
|
Find the next key in the map associated with the item specified in a previous call to
Implemented in vtkObjectBaseHashMap, and vtkObjectBaseMap. |
|
Gets the first key - item association in the map.
Reimplemented in vtkObjectBaseHashMap, and vtkObjectBaseMap. |
|
Returns the total number of items that the container can hold before needing to allocate more memory.
Reimplemented in vtkObjectBaseHashMap, and vtkObjectBaseMap. |
|
Toggle matching of upper/lower case characters in keys (default: true).
Reimplemented in vtkObjectBaseHashMap. |
|
Toggle enforcement of uniqueness among key strings (default: true).
Reimplemented in vtkObjectBaseHashMap. |
|
Insert an item into the table paired with a
Implemented in vtkObjectBaseHashMap, and vtkObjectBaseMap. |
|
Reimplemented from vtkContainer. Reimplemented in vtkObjectBaseHashMap, vtkObjectBaseMap, vtkObjectHashMap, and vtkObjectMap. |
|
Toggle matching of upper/lower case characters in keys (default: true).
Reimplemented in vtkObjectBaseHashMap. |
|
Toggle enforcement of uniqueness among key strings (default: true).
Reimplemented in vtkObjectBaseHashMap. |
|
Swaps items of this container with those of the specified container.
|
|
|