Changeset 1999:2ff283124dfc in lemon-0.x for lemon/list_graph.h
- Timestamp:
- 03/06/06 11:28:37 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2609
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/list_graph.h
r1995 r1999 24 24 ///\brief ListGraph, ListUGraph classes. 25 25 26 #include <lemon/bits/base_extender.h> 26 27 #include <lemon/bits/graph_extender.h> 27 28 … … 321 322 ///\sa concept::ErasableGraph. 322 323 323 class ListGraph : public ExtendedListGraphBase 324 { 324 class ListGraph : public ExtendedListGraphBase { 325 325 public: 326 327 typedef ExtendedListGraphBase Parent; 328 326 329 /// Changes the target of \c e to \c n 327 330 … … 447 450 ///\warning Edge and node deletions cannot be restored. 448 451 ///\warning Snapshots cannot be nested. 449 class Snapshot : protected AlterationNotifier<Node>::ObserverBase,450 protected AlterationNotifier<Edge>::ObserverBase452 class Snapshot : protected Parent::NodeNotifier::ObserverBase, 453 protected Parent::EdgeNotifier::ObserverBase 451 454 { 452 455 public: … … 460 463 461 464 462 465 protected: 463 466 464 467 ListGraph *g; … … 491 494 void regist(ListGraph &_g) { 492 495 g=&_g; 493 AlterationNotifier<Node>::ObserverBase:: 494 attach(g->getNotifier(Node())); 495 AlterationNotifier<Edge>::ObserverBase:: 496 attach(g->getNotifier(Edge())); 496 Parent::NodeNotifier::ObserverBase::attach(g->getNotifier(Node())); 497 Parent::EdgeNotifier::ObserverBase::attach(g->getNotifier(Edge())); 497 498 } 498 499 499 500 void deregist() { 500 AlterationNotifier<Node>::ObserverBase:: 501 detach(); 502 AlterationNotifier<Edge>::ObserverBase:: 503 detach(); 501 Parent::NodeNotifier::ObserverBase::detach(); 502 Parent::EdgeNotifier::ObserverBase::detach(); 504 503 g=0; 505 504 }
Note: See TracChangeset
for help on using the changeset viewer.