lemon/smart_graph.h
changeset 1770 657de7e5043c
parent 1768 1e2e0238e7c8
child 1791 62e7d237e1fb
     1.1 --- a/lemon/smart_graph.h	Fri Nov 04 16:10:23 2005 +0000
     1.2 +++ b/lemon/smart_graph.h	Fri Nov 04 16:18:51 2005 +0000
     1.3 @@ -249,11 +249,11 @@
     1.4    class SmartGraph : public ExtendedSmartGraphBase {
     1.5    public:
     1.6      
     1.7 -    class SnapShot;
     1.8 -    friend class SnapShot;
     1.9 +    class Snapshot;
    1.10 +    friend class Snapshot;
    1.11  
    1.12    protected:
    1.13 -    void restoreSnapShot(const SnapShot &s)
    1.14 +    void restoreSnapshot(const Snapshot &s)
    1.15      {
    1.16        while(s.edge_num<edges.size()) {
    1.17  	Parent::getNotifier(Edge()).erase(Edge(edges.size()-1));
    1.18 @@ -282,7 +282,7 @@
    1.19      ///referencing a moved edge remain
    1.20      ///valid. However <tt>InEdge</tt>'s and <tt>OutEdge</tt>'s
    1.21      ///may be invalidated.
    1.22 -    ///\warning This functionality cannot be used together with the SnapShot
    1.23 +    ///\warning This functionality cannot be used together with the Snapshot
    1.24      ///feature.
    1.25      ///\todo It could be implemented in a bit faster way.
    1.26      Node split(Node n, bool connect = true) 
    1.27 @@ -300,9 +300,9 @@
    1.28      ///restore() function.
    1.29      ///\note After you restore a state, you cannot restore
    1.30      ///a later state, in other word you cannot add again the edges deleted
    1.31 -    ///by restore() using another SnapShot instance.
    1.32 +    ///by restore() using another Snapshot instance.
    1.33      ///
    1.34 -    class SnapShot 
    1.35 +    class Snapshot 
    1.36      {
    1.37        SmartGraph *g;
    1.38      protected:
    1.39 @@ -315,12 +315,12 @@
    1.40        ///Default constructor.
    1.41        ///To actually make a snapshot you must call save().
    1.42        ///
    1.43 -      SnapShot() : g(0) {}
    1.44 +      Snapshot() : g(0) {}
    1.45        ///Constructor that immediately makes a snapshot
    1.46        
    1.47        ///This constructor immediately makes a snapshot of the graph.
    1.48        ///\param _g The graph we make a snapshot of.
    1.49 -      SnapShot(SmartGraph &_g) :g(&_g) {
    1.50 +      Snapshot(SmartGraph &_g) :g(&_g) {
    1.51  	node_num=g->nodes.size();
    1.52  	edge_num=g->edges.size();
    1.53        }
    1.54 @@ -351,7 +351,7 @@
    1.55        
    1.56        void restore()
    1.57        {
    1.58 -	g->restoreSnapShot(*this);
    1.59 +	g->restoreSnapshot(*this);
    1.60        }
    1.61      };
    1.62    };
    1.63 @@ -376,7 +376,7 @@
    1.64    ///the \ref concept::UndirGraph "UndirGraph" concept.
    1.65    ///\sa concept::UndirGraph.
    1.66    ///
    1.67 -  ///\todo SnapShot hasn't been implemented yet.
    1.68 +  ///\todo Snapshot hasn't been implemented yet.
    1.69    ///
    1.70    class UndirSmartGraph : public ExtendedUndirSmartGraphBase {
    1.71    };