Changeset 2384:805c5a2a36dd in lemon-0.x for lemon/bits/edge_set_extender.h
- Timestamp:
- 03/01/07 18:14:24 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3215
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/edge_set_extender.h
r2046 r2384 82 82 public: 83 83 84 using Parent:: getNotifier;84 using Parent::notifier; 85 85 86 86 /// \brief Gives back the edge alteration notifier. 87 87 /// 88 88 /// Gives back the edge alteration notifier. 89 EdgeNotifier& getNotifier(Edge) const {89 EdgeNotifier& notifier(Edge) const { 90 90 return edge_notifier; 91 91 } … … 247 247 Edge addEdge(const Node& from, const Node& to) { 248 248 Edge edge = Parent::addEdge(from, to); 249 getNotifier(Edge()).add(edge);249 notifier(Edge()).add(edge); 250 250 return edge; 251 251 } 252 252 253 253 void clear() { 254 getNotifier(Edge()).clear();254 notifier(Edge()).clear(); 255 255 Parent::clear(); 256 256 } 257 257 258 258 void erase(const Edge& edge) { 259 getNotifier(Edge()).erase(edge);259 notifier(Edge()).erase(edge); 260 260 Parent::erase(edge); 261 261 } … … 341 341 public: 342 342 343 using Parent:: getNotifier;343 using Parent::notifier; 344 344 345 EdgeNotifier& getNotifier(Edge) const {345 EdgeNotifier& notifier(Edge) const { 346 346 return edge_notifier; 347 347 } 348 348 349 UEdgeNotifier& getNotifier(UEdge) const {349 UEdgeNotifier& notifier(UEdge) const { 350 350 return uedge_notifier; 351 351 } … … 590 590 UEdge addEdge(const Node& from, const Node& to) { 591 591 UEdge uedge = Parent::addEdge(from, to); 592 getNotifier(UEdge()).add(uedge);593 getNotifier(Edge()).add(Parent::direct(uedge, true));594 getNotifier(Edge()).add(Parent::direct(uedge, false));592 notifier(UEdge()).add(uedge); 593 notifier(Edge()).add(Parent::direct(uedge, true)); 594 notifier(Edge()).add(Parent::direct(uedge, false)); 595 595 return uedge; 596 596 } 597 597 598 598 void clear() { 599 getNotifier(Edge()).clear();600 getNotifier(UEdge()).clear();599 notifier(Edge()).clear(); 600 notifier(UEdge()).clear(); 601 601 Parent::clear(); 602 602 } 603 603 604 604 void erase(const UEdge& uedge) { 605 getNotifier(Edge()).erase(Parent::direct(uedge, true));606 getNotifier(Edge()).erase(Parent::direct(uedge, false));607 getNotifier(UEdge()).erase(uedge);605 notifier(Edge()).erase(Parent::direct(uedge, true)); 606 notifier(Edge()).erase(Parent::direct(uedge, false)); 607 notifier(UEdge()).erase(uedge); 608 608 Parent::erase(uedge); 609 609 }
Note: See TracChangeset
for help on using the changeset viewer.