GraphMap Class Template Reference

#include <lemon/concepts/graph_components.h>

Inherits ReadWriteMap< _Item, _Value >.

Inherited by MappableBpUGraphComponent::ANodeMap, MappableBpUGraphComponent::BNodeMap, MappableGraphComponent::EdgeMap, MappableGraphComponent::NodeMap, and MappableUGraphComponent::UEdgeMap.

Inheritance diagram for GraphMap:

Inheritance graph
[legend]
List of all members.

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).


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 MappableGraphComponent::NodeMap, MappableGraphComponent::EdgeMap, MappableUGraphComponent::UEdgeMap, MappableBpUGraphComponent::ANodeMap, and MappableBpUGraphComponent::BNodeMap.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:51:41 2006 for LEMON by  doxygen 1.5.1