Changeset 1770:657de7e5043c in lemon-0.x for lemon/smart_graph.h
- Timestamp:
- 11/04/05 17:18:51 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2302
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/smart_graph.h
r1768 r1770 250 250 public: 251 251 252 class Snap Shot;253 friend class Snap Shot;252 class Snapshot; 253 friend class Snapshot; 254 254 255 255 protected: 256 void restoreSnap Shot(const SnapShot &s)256 void restoreSnapshot(const Snapshot &s) 257 257 { 258 258 while(s.edge_num<edges.size()) { … … 283 283 ///valid. However <tt>InEdge</tt>'s and <tt>OutEdge</tt>'s 284 284 ///may be invalidated. 285 ///\warning This functionality cannot be used together with the Snap Shot285 ///\warning This functionality cannot be used together with the Snapshot 286 286 ///feature. 287 287 ///\todo It could be implemented in a bit faster way. … … 301 301 ///\note After you restore a state, you cannot restore 302 302 ///a later state, in other word you cannot add again the edges deleted 303 ///by restore() using another Snap Shot instance.304 /// 305 class Snap Shot303 ///by restore() using another Snapshot instance. 304 /// 305 class Snapshot 306 306 { 307 307 SmartGraph *g; … … 316 316 ///To actually make a snapshot you must call save(). 317 317 /// 318 Snap Shot() : g(0) {}318 Snapshot() : g(0) {} 319 319 ///Constructor that immediately makes a snapshot 320 320 321 321 ///This constructor immediately makes a snapshot of the graph. 322 322 ///\param _g The graph we make a snapshot of. 323 Snap Shot(SmartGraph &_g) :g(&_g) {323 Snapshot(SmartGraph &_g) :g(&_g) { 324 324 node_num=g->nodes.size(); 325 325 edge_num=g->edges.size(); … … 352 352 void restore() 353 353 { 354 g->restoreSnap Shot(*this);354 g->restoreSnapshot(*this); 355 355 } 356 356 }; … … 377 377 ///\sa concept::UndirGraph. 378 378 /// 379 ///\todo Snap Shot hasn't been implemented yet.379 ///\todo Snapshot hasn't been implemented yet. 380 380 /// 381 381 class UndirSmartGraph : public ExtendedUndirSmartGraphBase {
Note: See TracChangeset
for help on using the changeset viewer.