Changeset 627:2313edd0db0b in lemon for lemon/concepts/graph.h
 Timestamp:
 04/14/09 10:34:12 (11 years ago)
 Branch:
 default
 Phase:
 public
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/concepts/graph.h
r606 r627 498 498 }; 499 499 500 /// \brief Read write map of the nodes to type \c T. 501 /// 502 /// ReadWrite map of the nodes to type \c T. 503 /// \sa Reference 500 /// \brief Reference map of the nodes to type \c T. 501 /// 502 /// Reference map of the nodes to type \c T. 504 503 template<class T> 505 class NodeMap : public Re adWriteMap< Node, T>504 class NodeMap : public ReferenceMap<Node, T, T&, const T&> 506 505 { 507 506 public: … … 514 513 private: 515 514 ///Copy constructor 516 NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } 515 NodeMap(const NodeMap& nm) : 516 ReferenceMap<Node, T, T&, const T&>(nm) { } 517 517 ///Assignment operator 518 518 template <typename CMap> … … 523 523 }; 524 524 525 /// \brief Read write map of the directed arcs to type \c T. 526 /// 527 /// Reference map of the directed arcs to type \c T. 528 /// \sa Reference 525 /// \brief Reference map of the arcs to type \c T. 526 /// 527 /// Reference map of the arcs to type \c T. 529 528 template<class T> 530 class ArcMap : public Re adWriteMap<Arc,T>529 class ArcMap : public ReferenceMap<Arc, T, T&, const T&> 531 530 { 532 531 public: … … 538 537 private: 539 538 ///Copy constructor 540 ArcMap(const ArcMap& em) : ReadWriteMap<Arc,T>(em) { } 539 ArcMap(const ArcMap& em) : 540 ReferenceMap<Arc, T, T&, const T&>(em) { } 541 541 ///Assignment operator 542 542 template <typename CMap> … … 547 547 }; 548 548 549 /// Read write map of the edges to type \c T. 550 551 /// Reference map of the arcs to type \c T. 552 /// \sa Reference 549 /// Reference map of the edges to type \c T. 550 551 /// Reference map of the edges to type \c T. 553 552 template<class T> 554 class EdgeMap : public Re adWriteMap<Edge,T>553 class EdgeMap : public ReferenceMap<Edge, T, T&, const T&> 555 554 { 556 555 public: … … 562 561 private: 563 562 ///Copy constructor 564 EdgeMap(const EdgeMap& em) : ReadWriteMap<Edge,T>(em) {} 563 EdgeMap(const EdgeMap& em) : 564 ReferenceMap<Edge, T, T&, const T&>(em) {} 565 565 ///Assignment operator 566 566 template <typename CMap> … … 749 749 struct Constraints { 750 750 void constraints() { 751 checkConcept<BaseGraphComponent, _Graph>(); 751 752 checkConcept<IterableGraphComponent<>, _Graph>(); 752 753 checkConcept<IDableGraphComponent<>, _Graph>();
Note: See TracChangeset
for help on using the changeset viewer.