#include <lemon/matrix_maps.h>
Public Member Functions | |
DynamicMatrixMap (const Graph &_graph) | |
DynamicMatrixMap (const Graph &_graph, const Value &_val) | |
Creates an item matrix for the given graph. | |
DynamicMatrixMap & | operator= (const DynamicMatrixMap &_cmap) |
The assignement operator. | |
template<typename CMap > | |
DynamicMatrixMap & | operator= (const CMap &_cmap) |
Template assignement operator. | |
ConstReference | operator() (const Key &first, const Key &second) const |
Reference | operator() (const Key &first, const Key &second) |
void | set (const Key &first, const Key &second, const Value &val) |
DynamicMatrixMap | ( | const Graph & | _graph | ) | [inline] |
Creates an item matrix for the given graph.
DynamicMatrixMap | ( | const Graph & | _graph, | |
const Value & | _val | |||
) | [inline] |
Creates an item matrix for the given graph and assigns for each pairs of keys the given parameter.
DynamicMatrixMap& operator= | ( | const DynamicMatrixMap< _Graph, _Item, _Value > & | _cmap | ) | [inline] |
It allow to assign a map to an other.
DynamicMatrixMap& operator= | ( | const CMap & | _cmap | ) | [inline] |
It copy the element of the given map to its own container. The type of the two map shall be the same.
ConstReference operator() | ( | const Key & | first, | |
const Key & | second | |||
) | const [inline] |
Gives back the value assigned to the first
- second
ordered pair.
Reference operator() | ( | const Key & | first, | |
const Key & | second | |||
) | [inline] |
Gives back the value assigned to the first
- second
ordered pair.
void set | ( | const Key & | first, | |
const Key & | second, | |||
const Value & | val | |||
) | [inline] |
Setter function for the matrix map.