lemon/graph_adaptor.h
changeset 2395 fe5966d8acfc
parent 2391 14a343be7a5a
child 2408 467ca6d16556
equal deleted inserted replaced
45:dcd0ad932c73 46:015221d88b87
  2603     /// \brief EdgeMap combined from an original EdgeMap and NodeMap
  2603     /// \brief EdgeMap combined from an original EdgeMap and NodeMap
  2604     ///
  2604     ///
  2605     /// This class adapt an original graph EdgeMap and NodeMap to
  2605     /// This class adapt an original graph EdgeMap and NodeMap to
  2606     /// get an edge map on the adapted graph.
  2606     /// get an edge map on the adapted graph.
  2607     template <typename GraphEdgeMap, typename GraphNodeMap>
  2607     template <typename GraphEdgeMap, typename GraphNodeMap>
  2608     class CombinedEdgeMap 
  2608     class CombinedEdgeMap {
  2609       : public MapBase<Edge, typename GraphEdgeMap::Value> {
       
  2610     public:
  2609     public:
  2611       typedef MapBase<Edge, typename GraphEdgeMap::Value> Parent;
  2610       
  2612 
  2611       typedef Edge Key;
  2613       typedef typename Parent::Key Key;
  2612       typedef typename GraphEdgeMap::Value Value;
  2614       typedef typename Parent::Value Value;
  2613       
  2615 
       
  2616       /// \brief Constructor
  2614       /// \brief Constructor
  2617       ///
  2615       ///
  2618       /// Constructor.
  2616       /// Constructor.
  2619       CombinedEdgeMap(GraphEdgeMap& _edge_map, GraphNodeMap& _node_map) 
  2617       CombinedEdgeMap(GraphEdgeMap& _edge_map, GraphNodeMap& _node_map) 
  2620 	: edge_map(_edge_map), node_map(_node_map) {}
  2618 	: edge_map(_edge_map), node_map(_node_map) {}