Changeset 2121:09a07a851506 in lemon0.x for lemon/concept/ugraph.h
 Timestamp:
 07/10/06 21:04:17 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2834
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/concept/ugraph.h
r2120 r2121 490 490 /// \warning Making maps that can handle bool type (NodeMap<bool>) 491 491 /// needs some extra attention! 492 /// \todo Wrong documentation493 492 template<class T> 494 493 class NodeMap : public ReadWriteMap< Node, T > … … 504 503 NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } 505 504 ///Assignment operator 506 NodeMap& operator=(const NodeMap&) { return *this; } 507 // \todo fix this concept 505 template <typename CMap> 506 NodeMap& operator=(const CMap&) { 507 checkConcept<ReadMap<Node, T>, CMap>(); 508 return *this; 509 } 508 510 }; 509 511 … … 514 516 /// \warning Making maps that can handle bool type (EdgeMap<bool>) 515 517 /// needs some extra attention! 516 /// \todo Wrong documentation517 518 template<class T> 518 519 class EdgeMap : public ReadWriteMap<Edge,T> … … 527 528 EdgeMap(const EdgeMap& em) : ReadWriteMap<Edge,T>(em) { } 528 529 ///Assignment operator 529 EdgeMap& operator=(const EdgeMap&) { return *this; } 530 // \todo fix this concept 530 template <typename CMap> 531 EdgeMap& operator=(const CMap&) { 532 checkConcept<ReadMap<Edge, T>, CMap>(); 533 return *this; 534 } 531 535 }; 532 536 … … 537 541 /// \warning Making maps that can handle bool type (UEdgeMap<bool>) 538 542 /// needs some extra attention! 539 /// \todo Wrong documentation540 543 template<class T> 541 544 class UEdgeMap : public ReadWriteMap<UEdge,T> … … 550 553 UEdgeMap(const UEdgeMap& em) : ReadWriteMap<UEdge,T>(em) {} 551 554 ///Assignment operator 552 UEdgeMap &operator=(const UEdgeMap&) { return *this; } 553 // \todo fix this concept 555 template <typename CMap> 556 UEdgeMap& operator=(const CMap&) { 557 checkConcept<ReadMap<UEdge, T>, CMap>(); 558 return *this; 559 } 554 560 }; 555 561 … … 673 679 struct Constraints { 674 680 void constraints() { 675 checkConcept<BaseIterableUGraphCo ncept, Graph>();676 checkConcept<IterableUGraphCo ncept, Graph>();677 checkConcept<MappableUGraphCo ncept, Graph>();681 checkConcept<BaseIterableUGraphComponent<>, Graph>(); 682 checkConcept<IterableUGraphComponent<>, Graph>(); 683 checkConcept<MappableUGraphComponent<>, Graph>(); 678 684 } 679 685 };
Note: See TracChangeset
for help on using the changeset viewer.