|
ROSE
0.11.96.11
|
Map based index is the default index type when indexes are present.
This index has O(log N) insert, erase, and lookup times. The key type must have a less-than operator.
The semantics for the methods of this class are documented in the GraphVoidIndex class.
#include <Graph.h>
Public Member Functions | |
| void | clear () |
| Erase all data from this index. More... | |
| void | insert (const VertexOrEdgeKey &key, const VertexOrEdgeConstIterator &iter) |
| Insert a new element into the map. More... | |
| void | erase (const VertexOrEdgeKey &key) |
| Erase an element from the map. More... | |
| Optional< VertexOrEdgeConstIterator > | lookup (const VertexOrEdgeKey &key) const |
| Lookup iterator for vertex or edge key. More... | |
|
inline |
Erase all data from this index.
Definition at line 162 of file Graph.h.
References Sawyer::Container::Map< K, T, Cmp, Alloc >::clear().

|
inline |
Insert a new element into the map.
Definition at line 169 of file Graph.h.
References Sawyer::Container::Map< K, T, Cmp, Alloc >::insert().

|
inline |
Erase an element from the map.
Definition at line 176 of file Graph.h.
References Sawyer::Container::Map< K, T, Cmp, Alloc >::erase().

|
inline |
Lookup iterator for vertex or edge key.
Definition at line 183 of file Graph.h.
References Sawyer::Container::Map< K, T, Cmp, Alloc >::getOptional().

1.8.17