Changeset 2386:81b47fc5c444 in lemon-0.x for lemon/smart_graph.h
- Timestamp:
- 03/02/07 19:04:28 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/smart_graph.h
r2381 r2386 642 642 void saveSnapshot(Snapshot &s) 643 643 { 644 s.g = this;644 s.graph = this; 645 645 s.node_num = nodes.size(); 646 646 s.edge_num = edges.size(); … … 689 689 class Snapshot 690 690 { 691 SmartUGraph *g ;691 SmartUGraph *graph; 692 692 protected: 693 693 friend class SmartUGraph; … … 700 700 ///To actually make a snapshot you must call save(). 701 701 /// 702 Snapshot() : g (0) {}702 Snapshot() : graph(0) {} 703 703 ///Constructor that immediately makes a snapshot 704 704 … … 730 730 void restore() 731 731 { 732 g ->restoreSnapshot(*this);732 graph->restoreSnapshot(*this); 733 733 } 734 734 };
Note: See TracChangeset
for help on using the changeset viewer.