ROSE  0.11.96.11
Public Member Functions | List of all members
Sawyer::Container::GraphBimapIndex< VertexOrEdgeKey, VertexOrEdgeConstIterator > Class Template Reference

Description

template<class VertexOrEdgeKey, class VertexOrEdgeConstIterator>
class Sawyer::Container::GraphBimapIndex< VertexOrEdgeKey, VertexOrEdgeConstIterator >

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.

Definition at line 156 of file Graph.h.

#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...
 

Member Function Documentation

◆ clear()

template<class VertexOrEdgeKey , class VertexOrEdgeConstIterator >
void Sawyer::Container::GraphBimapIndex< VertexOrEdgeKey, VertexOrEdgeConstIterator >::clear ( )
inline

Erase all data from this index.

See GraphVoidIndex::clear.

Definition at line 162 of file Graph.h.

References Sawyer::Container::Map< K, T, Cmp, Alloc >::clear().

Here is the call graph for this function:

◆ insert()

template<class VertexOrEdgeKey , class VertexOrEdgeConstIterator >
void Sawyer::Container::GraphBimapIndex< VertexOrEdgeKey, VertexOrEdgeConstIterator >::insert ( const VertexOrEdgeKey &  key,
const VertexOrEdgeConstIterator &  iter 
)
inline

Insert a new element into the map.

See GraphVoidIndex::insert.

Definition at line 169 of file Graph.h.

References Sawyer::Container::Map< K, T, Cmp, Alloc >::insert().

Here is the call graph for this function:

◆ erase()

template<class VertexOrEdgeKey , class VertexOrEdgeConstIterator >
void Sawyer::Container::GraphBimapIndex< VertexOrEdgeKey, VertexOrEdgeConstIterator >::erase ( const VertexOrEdgeKey &  key)
inline

Erase an element from the map.

See GraphVoidIndex::erase.

Definition at line 176 of file Graph.h.

References Sawyer::Container::Map< K, T, Cmp, Alloc >::erase().

Here is the call graph for this function:

◆ lookup()

template<class VertexOrEdgeKey , class VertexOrEdgeConstIterator >
Optional<VertexOrEdgeConstIterator> Sawyer::Container::GraphBimapIndex< VertexOrEdgeKey, VertexOrEdgeConstIterator >::lookup ( const VertexOrEdgeKey &  key) const
inline

Lookup iterator for vertex or edge key.

See GraphVoidIndex::lookup.

Definition at line 183 of file Graph.h.

References Sawyer::Container::Map< K, T, Cmp, Alloc >::getOptional().

Here is the call graph for this function:

The documentation for this class was generated from the following file: