DynamicSymMatrixMap Class Template Reference

#include <lemon/matrix_maps.h>

Inherits AlterationNotifier::ObserverBase.

Inheritance diagram for DynamicSymMatrixMap:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename _Graph, typename _Item, typename _Value>
class lemon::DynamicSymMatrixMap< _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.


Public Member Functions

 DynamicSymMatrixMap (const Graph &_graph)
 Creates an item matrix for the given graph.
 DynamicSymMatrixMap (const Graph &_graph, const Value &_val)
 Creates an item matrix for the given graph.
ConstReference operator() (const Key &first, const Key &second) const
 Gives back the value assigned to the first - second unordered pair.
Reference operator() (const Key &first, const Key &second)
 Gives back the value assigned to the first - second unordered pair.
void set (const Key &first, const Key &second, const Value &val)
 Setter function for the matrix map.


Constructor & Destructor Documentation

DynamicSymMatrixMap const Graph &  _graph  )  [inline]
 

Creates an item matrix for the given graph.

DynamicSymMatrixMap 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

ConstReference operator() const Key &  first,
const Key &  second
const [inline]
 

Gives back the value assigned to the first - second unordered pair.

Reference operator() const Key &  first,
const Key &  second
[inline]
 

Gives back the value assigned to the first - second unordered pair.

void set const Key &  first,
const Key &  second,
const Value &  val
[inline]
 

Setter function for the matrix map.


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:42:26 2006 for LEMON by  doxygen 1.4.6