diff -r a3402913cffe -r f63e87b9748e lemon/concepts/digraph.h --- a/lemon/concepts/digraph.h Sat Apr 18 21:54:30 2009 +0200 +++ b/lemon/concepts/digraph.h Tue Apr 21 10:34:49 2009 +0100 @@ -421,12 +421,11 @@ /// Gives back the opposite node on the given arc. Node oppositeNode(const Node&, const Arc&) const { return INVALID; } - /// \brief Read write map of the nodes to type \c T. + /// \brief Reference map of the nodes to type \c T. /// - /// ReadWrite map of the nodes to type \c T. - /// \sa Reference + /// Reference map of the nodes to type \c T. template - class NodeMap : public ReadWriteMap< Node, T > { + class NodeMap : public ReferenceMap { public: ///\e @@ -436,7 +435,8 @@ private: ///Copy constructor - NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } + NodeMap(const NodeMap& nm) : + ReferenceMap(nm) { } ///Assignment operator template NodeMap& operator=(const CMap&) { @@ -445,12 +445,11 @@ } }; - /// \brief Read write map of the arcs to type \c T. + /// \brief Reference map of the arcs to type \c T. /// /// Reference map of the arcs to type \c T. - /// \sa Reference template - class ArcMap : public ReadWriteMap { + class ArcMap : public ReferenceMap { public: ///\e @@ -459,7 +458,8 @@ ArcMap(const Digraph&, T) { } private: ///Copy constructor - ArcMap(const ArcMap& em) : ReadWriteMap(em) { } + ArcMap(const ArcMap& em) : + ReferenceMap(em) { } ///Assignment operator template ArcMap& operator=(const CMap&) { @@ -471,6 +471,7 @@ template struct Constraints { void constraints() { + checkConcept(); checkConcept, _Digraph>(); checkConcept, _Digraph>(); checkConcept, _Digraph>();