diff -r a67ec111236c -r 657de7e5043c lemon/smart_graph.h --- a/lemon/smart_graph.h Fri Nov 04 16:10:23 2005 +0000 +++ b/lemon/smart_graph.h Fri Nov 04 16:18:51 2005 +0000 @@ -249,11 +249,11 @@ class SmartGraph : public ExtendedSmartGraphBase { public: - class SnapShot; - friend class SnapShot; + class Snapshot; + friend class Snapshot; protected: - void restoreSnapShot(const SnapShot &s) + void restoreSnapshot(const Snapshot &s) { while(s.edge_numInEdge's and OutEdge's ///may be invalidated. - ///\warning This functionality cannot be used together with the SnapShot + ///\warning This functionality cannot be used together with the Snapshot ///feature. ///\todo It could be implemented in a bit faster way. Node split(Node n, bool connect = true) @@ -300,9 +300,9 @@ ///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. + ///by restore() using another Snapshot instance. /// - class SnapShot + class Snapshot { SmartGraph *g; protected: @@ -315,12 +315,12 @@ ///Default constructor. ///To actually make a snapshot you must call save(). /// - SnapShot() : g(0) {} + Snapshot() : g(0) {} ///Constructor that immediately makes a snapshot ///This constructor immediately makes a snapshot of the graph. ///\param _g The graph we make a snapshot of. - SnapShot(SmartGraph &_g) :g(&_g) { + Snapshot(SmartGraph &_g) :g(&_g) { node_num=g->nodes.size(); edge_num=g->edges.size(); } @@ -351,7 +351,7 @@ void restore() { - g->restoreSnapShot(*this); + g->restoreSnapshot(*this); } }; }; @@ -376,7 +376,7 @@ ///the \ref concept::UndirGraph "UndirGraph" concept. ///\sa concept::UndirGraph. /// - ///\todo SnapShot hasn't been implemented yet. + ///\todo Snapshot hasn't been implemented yet. /// class UndirSmartGraph : public ExtendedUndirSmartGraphBase { };