DynamicMatrixMap< _Graph, _Item, _Value > Class Template Reference
[Matrices]


Detailed Description

template<typename _Graph, typename _Item, typename _Value>
class lemon::DynamicMatrixMap< _Graph, _Item, _Value >

This data structure can strore for each pair of the same item type a value. It increase the size of the container when the associated graph modified, so it updated automaticly whenever it is needed. #include <lemon/matrix_maps.h>

List of all members.

Public Member Functions

 DynamicMatrixMap (const Graph &_graph)
 DynamicMatrixMap (const Graph &_graph, const Value &_val)
 Creates an item matrix for the given graph.
DynamicMatrixMapoperator= (const DynamicMatrixMap &_cmap)
 The assignement operator.
template<typename CMap >
DynamicMatrixMapoperator= (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)


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Generated on Thu Jun 4 04:06:16 2009 for LEMON by  doxygen 1.5.9