COIN-OR::LEMON - Graph Library

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


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

SnapShot? -> Snapshot

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/list_graph.h

    r1729 r1770  
    413413    ///valid. However <tt>InEdge</tt>'s and <tt>OutEdge</tt>'s
    414414    ///may be invalidated.
    415     ///\warning This functionality cannot be used together with the SnapShot
     415    ///\warning This functionality cannot be used together with the Snapshot
    416416    ///feature.
    417417    ///\todo It could be implemented in a bit faster way.
     
    437437    ///
    438438    ///\warning Edge and node deletions cannot be restored.
    439     ///\warning SnapShots cannot be nested.
    440     ///\todo \c SnapShot or \c Snapshot?
    441     class SnapShot : protected AlterationNotifier<Node>::ObserverBase,
     439    ///\warning Snapshots cannot be nested.
     440    class Snapshot : protected AlterationNotifier<Node>::ObserverBase,
    442441                     protected AlterationNotifier<Edge>::ObserverBase
    443442    {
     
    497496      ///To actually make a snapshot you must call save().
    498497      ///
    499       SnapShot() : g(0) {}
     498      Snapshot() : g(0) {}
    500499      ///Constructor that immediately makes a snapshot.
    501500     
    502501      ///This constructor immediately makes a snapshot of the graph.
    503502      ///\param _g The graph we make a snapshot of.
    504       SnapShot(ListGraph &_g) {
     503      Snapshot(ListGraph &_g) {
    505504        regist(_g);
    506505      }
    507506      ///\bug Is it necessary?
    508507      ///
    509       ~SnapShot()
     508      ~Snapshot()
    510509      {
    511510        if(g) deregist();
     
    574573  ///\sa concept::UndirGraph.
    575574  ///
    576   ///\todo SnapShot, reverseEdge(), changeTarget(), changeSource(), contract()
     575  ///\todo Snapshot, reverseEdge(), changeTarget(), changeSource(), contract()
    577576  ///haven't been implemented yet.
    578577  ///
  • 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.