#include <vtkArrayMap.h>
Inheritance diagram for vtkArrayMap< KeyType, DataType >:
Public Types | |
typedef vtkAbstractMap< KeyType, DataType > | Superclass |
typedef vtkArrayMapIterator< KeyType, DataType > | IteratorType |
Public Member Functions | |
vtkArrayMapIterator< KeyType, DataType > * | NewIterator () |
int | SetItem (const KeyType &key, const DataType &data) |
int | RemoveItem (const KeyType &key) |
void | RemoveAllItems () |
int | GetItem (const KeyType &key, DataType &data) |
vtkIdType | GetNumberOfItems () const |
int | IsItemPresent (const KeyType &key) |
void | DebugList () |
Static Public Member Functions | |
vtkArrayMap< KeyType, DataType > * | New () |
Protected Member Functions | |
vtkArrayMap () | |
virtual | ~vtkArrayMap () |
virtual vtkAbstractMapItem< KeyType, DataType > * | FindDataItem (const KeyType key) |
Protected Attributes | |
vtkVector< vtkAbstractMapItem< KeyType, DataType > * > * | Array |
Friends | |
class | vtkArrayMapIterator< KeyType, DataType > |
vtkArrayMap is a an array implementation of the map data structure
Map data structure is a one dimensional sequence of pairs of key and data. On the higher level, it implements mapping from key values to data elements. It can be implemented using array of pairs, hash table, or different trees.
Definition at line 37 of file vtkArrayMap.h.
|
Reimplemented from vtkAbstractMap< KeyType, DataType >. Definition at line 42 of file vtkArrayMap.h. |
|
Definition at line 43 of file vtkArrayMap.h. |
|
Definition at line 82 of file vtkArrayMap.h. |
|
|
|
|
|
Return an iterator to the list. This iterator is allocated using New, so the developer is responsible for deleating it. |
|
Sets the item at with specific key to data. It overwrites the old item. It returns VTK_OK if successfull. |
|
Remove an Item with the key from the map. It returns VTK_OK if successfull. |
|
Remove all items from the map. |
|
Return the data asociated with the key. It returns VTK_OK if successfull. |
|
Return the number of items currently held in this container. This different from GetSize which is provided for some containers. GetSize will return how many items the container can currently hold. |
|
Find an item in the vector. Return one if it was found, zero if it was not found. |
|
|
|
Find vtkAbstractMapItem that with specific key |
|
Definition at line 39 of file vtkArrayMap.h. |
|
Definition at line 91 of file vtkArrayMap.h. |