GraphMap< _Graph, _Item, _Value > Class Template Reference


Detailed Description

template<typename _Graph, typename _Item, typename _Value>
class lemon::concepts::GraphMap< _Graph, _Item, _Value >

This class describes the common interface of the graph maps (NodeMap, EdgeMap), that is maps which can be used to associate data to graph descriptors (nodes or edges). #include <lemon/concepts/graph_components.h>

Inheritance diagram for GraphMap< _Graph, _Item, _Value >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef _Graph Graph
 The graph type of the map.
typedef _Item Key
 The key type of the map.
typedef _Value Value
 The value type of the map.

Public Member Functions

 GraphMap (const Graph &)
 Construct a new map.
 GraphMap (const Graph &, const Value &)
 Construct a new map with default value.
 GraphMap (const GraphMap &)
 Copy constructor.
template<typename CMap >
GraphMapoperator= (const CMap &)
 Assign operator.


Constructor & Destructor Documentation

GraphMap ( const Graph  )  [inline, explicit]

Construct a new map for the graph.

GraphMap ( const Graph ,
const Value  
) [inline]

Construct a new map for the graph and initalise the values.

GraphMap ( const GraphMap< _Graph, _Item, _Value > &   )  [inline]

Copy Constructor.


Member Function Documentation

GraphMap& operator= ( const CMap &   )  [inline]

Assign operator. It does not mofify the underlying graph, it just iterates on the current item set and set the map with the value returned by the assigned map.

Reimplemented in NodeMap< _Value >, EdgeMap< _Value >, UEdgeMap< _Value >, ANodeMap< _Value >, and BNodeMap< _Value >.


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