#include <lemon/map_utils.h>
_Graph | The graph type. | |
_Map | The map to extend with inversable functionality. |
Definition at line 41 of file map_utils.h.
Public Types | |
typedef _Map::Key | Key |
The key type of InversableMap (Node, Edge, UndirEdge). | |
typedef _Map::Value | Value |
The value type of the InversableMap. | |
Public Member Functions | |
InversableMap (const Graph &graph) | |
Constructor. | |
void | set (const Key &key, const Value &val) |
The setter function of the map. | |
ConstReference | operator[] (const Key &key) const |
The getter function of the map. | |
virtual void | add (const Key &key) |
Add a new key to the map. | |
virtual void | erase (const Key &key) |
Erase the key from the map. | |
virtual void | clear () |
Clear the keys from the map and inverse map. | |
const InverseMap & | inverse () const |
It gives back the just readeable inverse map. |
|
Construct a new InversableMap for the graph. Definition at line 59 of file map_utils.h. |
|
It sets the map and the inverse map to given key-value pair. Definition at line 64 of file map_utils.h. |
|
It gives back the value associated with the key. Definition at line 77 of file map_utils.h. |
|
Add a new key to the map. It is called by the Definition at line 85 of file map_utils.h. |
|
Erase the key to the map. It is called by the Definition at line 93 of file map_utils.h. |
|
Clear the keys from the map and inverse map. It is called by the Definition at line 106 of file map_utils.h. |
|
It gives back the just readeable inverse map. Definition at line 114 of file map_utils.h. |