COIN-OR::LEMON - Graph Library

Changeset 1770:657de7e5043c in lemon-0.x for lemon/smart_graph.h


Ignore:
Timestamp:
11/04/05 17:18:51 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2302
Message:

SnapShot? -> Snapshot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r1768 r1770  
    250250  public:
    251251   
    252     class SnapShot;
    253     friend class SnapShot;
     252    class Snapshot;
     253    friend class Snapshot;
    254254
    255255  protected:
    256     void restoreSnapShot(const SnapShot &s)
     256    void restoreSnapshot(const Snapshot &s)
    257257    {
    258258      while(s.edge_num<edges.size()) {
     
    283283    ///valid. However <tt>InEdge</tt>'s and <tt>OutEdge</tt>'s
    284284    ///may be invalidated.
    285     ///\warning This functionality cannot be used together with the SnapShot
     285    ///\warning This functionality cannot be used together with the Snapshot
    286286    ///feature.
    287287    ///\todo It could be implemented in a bit faster way.
     
    301301    ///\note After you restore a state, you cannot restore
    302302    ///a later state, in other word you cannot add again the edges deleted
    303     ///by restore() using another SnapShot instance.
    304     ///
    305     class SnapShot
     303    ///by restore() using another Snapshot instance.
     304    ///
     305    class Snapshot
    306306    {
    307307      SmartGraph *g;
     
    316316      ///To actually make a snapshot you must call save().
    317317      ///
    318       SnapShot() : g(0) {}
     318      Snapshot() : g(0) {}
    319319      ///Constructor that immediately makes a snapshot
    320320     
    321321      ///This constructor immediately makes a snapshot of the graph.
    322322      ///\param _g The graph we make a snapshot of.
    323       SnapShot(SmartGraph &_g) :g(&_g) {
     323      Snapshot(SmartGraph &_g) :g(&_g) {
    324324        node_num=g->nodes.size();
    325325        edge_num=g->edges.size();
     
    352352      void restore()
    353353      {
    354         g->restoreSnapShot(*this);
     354        g->restoreSnapshot(*this);
    355355      }
    356356    };
     
    377377  ///\sa concept::UndirGraph.
    378378  ///
    379   ///\todo SnapShot hasn't been implemented yet.
     379  ///\todo Snapshot hasn't been implemented yet.
    380380  ///
    381381  class UndirSmartGraph : public ExtendedUndirSmartGraphBase {
Note: See TracChangeset for help on using the changeset viewer.