This type is not reference map so it cannot be modified with the subscription operator.
_Graph | The graph type. | |
_Item | One of the graph's item type, the key of the map. | |
_Value | Any comparable value type. |
#include <lemon/iterable_maps.h>
Classes | |
class | ItemIt |
Iterator for the keys with the same value. More... | |
class | ValueIterator |
Forward iterator for values. More... | |
Public Types | |
typedef _Item | Key |
The key type. | |
typedef _Value | Value |
The value type. | |
typedef _Graph | Graph |
The graph type. | |
Public Member Functions | |
IterableValueMap (const Graph &graph, const Value &value=Value()) | |
ValueIterator | beginValue () const |
Returns an iterator to the first value. | |
ValueIterator | endValue () const |
Returns an iterator after the last value. | |
void | set (const Key &key, const Value &value) |
const Value & | operator[] (const Key &key) const |
IterableValueMap | ( | const Graph & | graph, | |
const Value & | value = Value() | |||
) | [inline, explicit] |
Constructor of the Map with a given value.
ValueIterator beginValue | ( | ) | const [inline] |
Returns an stl compatible iterator to the first value of the map. The values of the map can be accessed in the [beginValue, endValue) range.
ValueIterator endValue | ( | ) | const [inline] |
Returns an stl compatible iterator after the last value of the map. The values of the map can be accessed in the [beginValue, endValue) range.
Set operation of the map.
Reimplemented from ArrayMap< _Graph, _Item, _Value >.
Const subscript operator of the map.
Reimplemented from ArrayMap< _Graph, _Item, _Value >.