COIN-OR::LEMON - Graph Library

Changeset 1999:2ff283124dfc in lemon-0.x for lemon/graph_adaptor.h


Ignore:
Timestamp:
03/06/06 11:28:37 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2609
Message:

Clarifing alteration observing system
It is directly connected now to a container

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_adaptor.h

    r1993 r1999  
    3131#include <lemon/maps.h>
    3232
     33#include <lemon/bits/base_extender.h>
    3334#include <lemon/bits/graph_adaptor_extender.h>
    3435#include <lemon/bits/graph_extender.h>
     
    938939
    939940    UndirGraphAdaptorBase()
    940       : Parent(), edge_notifier(), edge_notifier_proxy(edge_notifier) {}
     941      : edge_notifier(*this), edge_notifier_proxy(edge_notifier) {}
    941942
    942943    void setGraph(_Graph& graph) {
     
    948949
    949950    ~UndirGraphAdaptorBase() {
    950       getNotifier(Edge()).clear();
     951      edge_notifier.clear();
     952    }
     953
     954    int maxId(typename Parent::Edge) const {
     955      return Parent::maxEdgeId();
    951956    }
    952957
     
    959964    using Parent::getNotifier;
    960965
    961     typedef AlterationNotifier<Edge> EdgeNotifier;
     966    typedef AlterationNotifier<UndirGraphAdaptorBase, Edge> EdgeNotifier;
    962967    EdgeNotifier& getNotifier(Edge) const { return edge_notifier; }
    963968
Note: See TracChangeset for help on using the changeset viewer.