Changeset 2031:080d51024ac5 in lemon0.x for lemon/edge_set.h
 Timestamp:
 04/03/06 11:45:23 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2670
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/edge_set.h
r1999 r2031 207 207 class NodeMap : public Graph::template NodeMap<_Value> { 208 208 public: 209 209 210 typedef typename _Graph::template NodeMap<_Value> Parent; 211 210 212 explicit NodeMap(const ListEdgeSetBase<Graph>& edgeset) 211 : Parent(*edgeset.graph) { } 213 : Parent(*edgeset.graph) {} 214 212 215 NodeMap(const ListEdgeSetBase<Graph>& edgeset, const _Value& value) 213 : Parent(*edgeset.graph, value) { } 216 : Parent(*edgeset.graph, value) {} 217 218 NodeMap& operator=(const NodeMap& cmap) { 219 return operator=<NodeMap>(cmap); 220 } 221 222 template <typename CMap> 223 NodeMap& operator=(const CMap& cmap) { 224 Parent::operator=(cmap); 225 return *this; 226 } 214 227 }; 215 228 … … 522 535 class NodeMap : public Graph::template NodeMap<_Value> { 523 536 public: 537 524 538 typedef typename _Graph::template NodeMap<_Value> Parent; 539 525 540 explicit NodeMap(const SmartEdgeSetBase<Graph>& edgeset) 526 541 : Parent(*edgeset.graph) { } 542 527 543 NodeMap(const SmartEdgeSetBase<Graph>& edgeset, const _Value& value) 528 544 : Parent(*edgeset.graph, value) { } 545 546 NodeMap& operator=(const NodeMap& cmap) { 547 return operator=<NodeMap>(cmap); 548 } 549 550 template <typename CMap> 551 NodeMap& operator=(const CMap& cmap) { 552 Parent::operator=(cmap); 553 return *this; 554 } 529 555 }; 530 556 … … 668 694 669 695 void eraseNode(const Node& node) { 670 if ( Parent::IncEdgeIt(*this, node) == INVALID) {696 if (typename Parent::IncEdgeIt(*this, node) == INVALID) { 671 697 return; 672 698 }
Note: See TracChangeset
for help on using the changeset viewer.