lemon/smart_graph.h
changeset 2379 248152674a9e
parent 2343 21587bc5922b
child 2381 0248790c66ea
equal deleted inserted replaced
39:da1d2097a29b 40:ff5731122c10
   691       ///
   691       ///
   692       Snapshot() : g(0) {}
   692       Snapshot() : g(0) {}
   693       ///Constructor that immediately makes a snapshot
   693       ///Constructor that immediately makes a snapshot
   694       
   694       
   695       ///This constructor immediately makes a snapshot of the graph.
   695       ///This constructor immediately makes a snapshot of the graph.
   696       ///\param _g The graph we make a snapshot of.
   696       ///\param g The graph we make a snapshot of.
   697       Snapshot(SmartUGraph &g) {
   697       Snapshot(SmartUGraph &g) {
   698         g.saveSnapshot(*this);
   698         g.saveSnapshot(*this);
   699       }
   699       }
   700 
   700 
   701       ///Make a snapshot.
   701       ///Make a snapshot.
   702 
   702 
   703       ///Make a snapshot of the graph.
   703       ///Make a snapshot of the graph.
   704       ///
   704       ///
   705       ///This function can be called more than once. In case of a repeated
   705       ///This function can be called more than once. In case of a repeated
   706       ///call, the previous snapshot gets lost.
   706       ///call, the previous snapshot gets lost.
   707       ///\param _g The graph we make the snapshot of.
   707       ///\param g The graph we make the snapshot of.
   708       void save(SmartUGraph &g) 
   708       void save(SmartUGraph &g) 
   709       {
   709       {
   710         g.saveSnapshot(*this);
   710         g.saveSnapshot(*this);
   711       }
   711       }
   712 
   712