diff -r d11bf7998905 -r 2313edd0db0b lemon/concepts/graph_components.h --- a/lemon/concepts/graph_components.h Tue Apr 14 10:33:17 2009 +0200 +++ b/lemon/concepts/graph_components.h Tue Apr 14 10:34:12 2009 +0200 @@ -988,8 +988,9 @@ /// This class describes the concept of standard graph maps, i.e. /// the \c NodeMap, \c ArcMap and \c EdgeMap subtypes of digraph and /// graph types, which can be used for associating data to graph items. + /// The standard graph maps must conform to the ReferenceMap concept. template - class GraphMap : public ReadWriteMap { + class GraphMap : public ReferenceMap { public: typedef ReadWriteMap Parent; @@ -1000,6 +1001,13 @@ typedef K Key; /// The value type of the map. typedef V Value; + /// The reference type of the map. + typedef Value& Reference; + /// The const reference type of the map. + typedef const Value& ConstReference; + + // The reference map tag. + typedef True ReferenceMapTag; /// \brief Construct a new map. /// @@ -1031,7 +1039,8 @@ template struct Constraints { void constraints() { - checkConcept, _Map >(); + checkConcept + , _Map>(); _Map m1(g); _Map m2(g,t); @@ -1073,6 +1082,7 @@ /// \brief Standard graph map for the nodes. /// /// Standard graph map for the nodes. + /// It conforms to the ReferenceMap concept. template class NodeMap : public GraphMap { public: @@ -1110,6 +1120,7 @@ /// \brief Standard graph map for the arcs. /// /// Standard graph map for the arcs. + /// It conforms to the ReferenceMap concept. template class ArcMap : public GraphMap { public: @@ -1207,6 +1218,7 @@ /// \brief Standard graph map for the edges. /// /// Standard graph map for the edges. + /// It conforms to the ReferenceMap concept. template class EdgeMap : public GraphMap { public: