src/lemon/clearable_graph_extender.h
changeset 1194 7bce0ef61d6b
parent 1022 567f392d1d2e
equal deleted inserted replaced
2:e6e135b14265 3:eaa3924c3177
    16     typedef _Base Parent;
    16     typedef _Base Parent;
    17     typedef typename Parent::Node Node;
    17     typedef typename Parent::Node Node;
    18     typedef typename Parent::Edge Edge;
    18     typedef typename Parent::Edge Edge;
    19 
    19 
    20     void clear() {
    20     void clear() {
    21       Parent::getObserverRegistry(Node()).clear();
    21       Parent::getNotifier(Node()).clear();
    22       Parent::getObserverRegistry(Edge()).clear();
    22       Parent::getNotifier(Edge()).clear();
    23       Parent::clear();
    23       Parent::clear();
    24     }
    24     }
    25 
    25 
    26   };
    26   };
    27 
    27 
    34     typedef typename Parent::Node Node;
    34     typedef typename Parent::Node Node;
    35     typedef typename Parent::UndirEdge UndirEdge;
    35     typedef typename Parent::UndirEdge UndirEdge;
    36     typedef typename Parent::Edge Edge;
    36     typedef typename Parent::Edge Edge;
    37 
    37 
    38     void clear() {
    38     void clear() {
    39       Parent::getObserverRegistry(Node()).clear();
    39       Parent::getNotifier(Node()).clear();
    40       Parent::getObserverRegistry(UndirEdge()).clear();
    40       Parent::getNotifier(UndirEdge()).clear();
    41       Parent::getObserverRegistry(Edge()).clear();
    41       Parent::getNotifier(Edge()).clear();
    42       Parent::clear();
    42       Parent::clear();
    43     }
    43     }
    44 
    44 
    45   };
    45   };
    46 
    46