#include <lemon/iterable_maps.h>
_Graph | The graph type. | |
_Item | One of the graph's item type, the key of the map. |
Public Types | |
typedef _Item | Key |
The key type. | |
typedef int | Value |
The value type. | |
typedef _Graph | Graph |
The graph type. | |
typedef True | ReferenceMapTag |
Indicates that the map if reference map. | |
typedef const Value & | ConstReference |
The const reference type. | |
Public Member Functions | |
IterableIntMap (const Graph &graph) | |
Constructor of the Map. | |
IterableIntMap (const Graph &graph, int value) | |
Constructor of the Map with a given value. | |
unsigned int | size () const |
Gives back the maximal value plus one. | |
void | set (const Key &key, const Value &value) |
Set operation of the map. | |
const Value & | operator[] (const Key &key) const |
Const subscript operator of the map. | |
Reference | operator[] (const Key &key) |
Subscript operator of the map. | |
Classes | |
class | ItemIt |
Iterator for the keys with the same value. More... | |
class | Reference |
Refernce to the value of the map. More... |
|
Constructor of the Map. It set all values -1. |
|
Constructor of the Map with a given value. |
|
Gives back the maximal value plus one. |
|
Set operation of the map. |
|
Const subscript operator of the map. |
|
Subscript operator of the map. |