Changeset 1770:657de7e5043c in lemon-0.x
- Timestamp:
- 11/04/05 17:18:51 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2302
- Location:
- lemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/list_graph.h
r1729 r1770 413 413 ///valid. However <tt>InEdge</tt>'s and <tt>OutEdge</tt>'s 414 414 ///may be invalidated. 415 ///\warning This functionality cannot be used together with the Snap Shot415 ///\warning This functionality cannot be used together with the Snapshot 416 416 ///feature. 417 417 ///\todo It could be implemented in a bit faster way. … … 437 437 /// 438 438 ///\warning Edge and node deletions cannot be restored. 439 ///\warning SnapShots cannot be nested. 440 ///\todo \c SnapShot or \c Snapshot? 441 class SnapShot : protected AlterationNotifier<Node>::ObserverBase, 439 ///\warning Snapshots cannot be nested. 440 class Snapshot : protected AlterationNotifier<Node>::ObserverBase, 442 441 protected AlterationNotifier<Edge>::ObserverBase 443 442 { … … 497 496 ///To actually make a snapshot you must call save(). 498 497 /// 499 Snap Shot() : g(0) {}498 Snapshot() : g(0) {} 500 499 ///Constructor that immediately makes a snapshot. 501 500 502 501 ///This constructor immediately makes a snapshot of the graph. 503 502 ///\param _g The graph we make a snapshot of. 504 Snap Shot(ListGraph &_g) {503 Snapshot(ListGraph &_g) { 505 504 regist(_g); 506 505 } 507 506 ///\bug Is it necessary? 508 507 /// 509 ~Snap Shot()508 ~Snapshot() 510 509 { 511 510 if(g) deregist(); … … 574 573 ///\sa concept::UndirGraph. 575 574 /// 576 ///\todo Snap Shot, reverseEdge(), changeTarget(), changeSource(), contract()575 ///\todo Snapshot, reverseEdge(), changeTarget(), changeSource(), contract() 577 576 ///haven't been implemented yet. 578 577 /// -
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.