#include <lemon/array_map.h>
Inheritance diagram for ArrayMap:
The template parameter is the MapRegistry that the maps will belong to and the Value.
Definition at line 46 of file array_map.h.
Public Types | |
typedef _Graph | Graph |
The graph type of the maps. | |
typedef _Item | Key |
The key type of the maps. | |
typedef _Value | Value |
The value type of the map. | |
typedef Value & | Reference |
The reference type of the map;. | |
typedef Value * | Pointer |
The pointer type of the map;. | |
typedef const Value | ConstValue |
The const value type of the map. | |
typedef const Value & | ConstReference |
The const reference type of the map;. | |
typedef const Value * | ConstPointer |
The pointer type of the map;. | |
Public Member Functions | |
ArrayMap (const Graph &_g) | |
ArrayMap (const Graph &_g, const Value &_v) | |
Constructor to use default value to initialize the map. It constrates a map and initialize all of the the map. | |
ArrayMap (const ArrayMap ©) | |
ArrayMap & | operator= (const ArrayMap ©) |
virtual | ~ArrayMap () |
Reference | operator[] (const Key &key) |
ConstReference | operator[] (const Key &key) const |
void | set (const Key &key, const Value &val) |
void | add (const Key &key) |
void | erase (const Key &key) |
|
Graph and Registry initialized map constructor. Definition at line 90 of file array_map.h. |
|
Constructor to copy a map of the same map type. Definition at line 114 of file array_map.h. |
|
The destructor of the map. Definition at line 159 of file array_map.h. |
|
Assign operator to copy a map of the same map type. Definition at line 133 of file array_map.h. |
|
The subscript operator. The map can be subscripted by the actual keys of the graph. Definition at line 171 of file array_map.h. |
|
The const subscript operator. The map can be subscripted by the actual keys of the graph. Definition at line 180 of file array_map.h. |
|
Setter function of the map. Equivalent with map[key] = val. This is a compatibility feature with the not dereferable maps. Definition at line 188 of file array_map.h. |
|
Add a new key to the map. It called by the map registry. Definition at line 194 of file array_map.h. |
|
Erase a key from the map. It called by the map registry. Definition at line 218 of file array_map.h. |