#include <vtkObjectBaseMap.h>
Inheritance diagram for vtkObjectBaseMap:
Map is a Sorted Associative Container that associates key strings with objects. It is also a Unique Associative Container, meaning that no two items have the same key.
Map has the important property that inserting a new item into a map does not invalidate iterators that point to existing items. Erasing an item from a map also does not invalidate any iterators, except, of course, for iterators that actually point to the item that is being erased.
Definition at line 43 of file vtkObjectBaseMap.h.
Public Member Functions | |
vtkTypeRevisionMacro (vtkObjectBaseMap, vtkAssociativeContainer) | |
void | PrintSelf (ostream &, vtkIndent) |
virtual vtkIdType | GetSize (void) const |
Returns the number of items in the container. | |
virtual int | IsEmpty (void) const |
Returns true if this container is empty. | |
virtual vtkIdType | GetMaxSize (void) const |
Returns the maximum size of this container. | |
virtual int | Clear (void) |
Erase ALL items in the container. | |
virtual int | Swap (vtkObjectBaseMap *container) |
Swaps items of this container with those of the specified container. | |
virtual int | Copy (vtkObjectBaseMap *container) |
Copy all items from the specified container into this container. | |
vtkIdType | GetCapacity (void) const |
Returns the total number of items that the map can hold before needing to allocate more memory. | |
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) |
Insert an item into the table paired with a key string. | |
int | Erase (const char *key) |
Erase the entry matching a given key string. | |
const char * | FindKey (const vtkObjectBase *item) |
Find the first key in the map associated with an item. | |
const char * | FindNextKey (void) |
Find the next key in the map associated with the item specified in a previous call to FindKey . | |
vtkObjectBaseMapIterator * | CreateIterator (void) |
Create an iterator. | |
Data Access Methods | |
vtkObjectBase * | Front (void) const |
Returns the first item in the container, or null if the container is empty. | |
virtual int | Front (const char *&key, vtkObjectBase *&item) const |
Gets the first key - item association in the map. | |
vtkObjectBase * | Back (void) const |
Returns the last item in the container, or null if the container is empty. | |
virtual int | Back (const char *&key, vtkObjectBase *&item) const |
Gets the last key - item association in the map. | |
Static Public Member Functions | |
vtkObjectBaseMap * | New (void) |
Protected Member Functions | |
vtkObjectBaseMap (void) | |
~vtkObjectBaseMap () | |
void | ReportReferences (vtkGarbageCollector *) |
Friends | |
class | vtkObjectBaseMapIterator |
|
|
|
|
|
Gets the last key - item association in the map.
Reimplemented from vtkAssociativeContainer. |
|
Returns the last item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectMap. |
|
Erase ALL items in the container.
Implements vtkContainer. |
|
Copy all items from the specified container into this container.
|
|
Create an iterator.
Implements vtkAssociativeContainer. Reimplemented in vtkObjectMap. |
|
Erase the entry matching a given key string.
Implements vtkAssociativeContainer. |
|
Find the item in the table with the given key string.
Reimplemented from vtkAssociativeContainer. Reimplemented in vtkObjectMap. |
|
Find the first key in the map associated with an item.
Implements vtkAssociativeContainer. |
|
Find the next key in the map associated with the item specified in a previous call to
Implements vtkAssociativeContainer. |
|
Gets the first key - item association in the map.
Reimplemented from vtkAssociativeContainer. |
|
Returns the first item in the container, or
Reimplemented from vtkContainer. Reimplemented in vtkObjectMap. |
|
Returns the total number of items that the map can hold before needing to allocate more memory.
Reimplemented from vtkAssociativeContainer. |
|
Returns the maximum size of this container.
Reimplemented from vtkContainer. |
|
Returns the number of items in the container.
Reimplemented from vtkContainer. |
|
Insert an item into the table paired with a
Implements vtkAssociativeContainer. |
|
Returns
Reimplemented from vtkContainer. |
|
Reimplemented from vtkObject. Reimplemented in vtkObjectMap. |
|
Reimplemented from vtkAssociativeContainer. Reimplemented in vtkObjectMap. |
|
|
|
Swaps items of this container with those of the specified container.
|
|
|
|
Definition at line 161 of file vtkObjectBaseMap.h. |