COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
11/28/04 17:30:10 (16 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1412
Message:

UndirGraph? implementation nearly complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/clearable_graph_extender.h

    r980 r1022  
    2626  };
    2727
     28  template <typename _Base>
     29  class ClearableUndirGraphExtender : public _Base {
     30  public:
     31
     32    typedef ClearableUndirGraphExtender Graph;
     33    typedef _Base Parent;
     34    typedef typename Parent::Node Node;
     35    typedef typename Parent::UndirEdge UndirEdge;
     36    typedef typename Parent::Edge Edge;
     37
     38    void clear() {
     39      Parent::getObserverRegistry(Node()).clear();
     40      Parent::getObserverRegistry(UndirEdge()).clear();
     41      Parent::getObserverRegistry(Edge()).clear();
     42      Parent::clear();
     43    }
     44
     45  };
     46
    2847}
    2948
Note: See TracChangeset for help on using the changeset viewer.