Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SmartGraph::SnapShot Class Reference

#include <lemon/smart_graph.h>

List of all members.


Detailed Description

Class to make a snapshot of the graph and to restrore to it later.

The newly added nodes and edges can be removed using the restore() function.

Note:
After you restore a state, you cannot restore a later state, in other word you cannot add again the edges deleted by restore() using another SnapShot instance.


Public Member Functions

 SnapShot ()
 Default constructor.
 SnapShot (SmartGraph &_g)
 Constructor that immediately makes a snapshot.
void save (SmartGraph &_g)
 Make a snapshot.
void restore ()
 Undo the changes until a snapshot.


Constructor & Destructor Documentation

SnapShot  )  [inline]
 

Default constructor. To actually make a snapshot you must call save().

SnapShot SmartGraph _g  )  [inline]
 

This constructor immediately makes a snapshot of the graph.

Parameters:
_g The graph we make a snapshot of.


Member Function Documentation

void save SmartGraph _g  )  [inline]
 

Make a snapshot of the graph.

This function can be called more than once. In case of a repeated call, the previous snapshot gets lost.

Parameters:
_g The graph we make the snapshot of.

void restore  )  [inline]
 

Undo the changes until a snapshot created by save().

Note:
After you restored a state, you cannot restore a later state, in other word you cannot add again the edges deleted by restore().
Todo:
This function might be called undo().


The documentation for this class was generated from the following file:
Generated on Sat Aug 27 14:16:13 2005 for LEMON by  doxygen 1.4.4