COIN-OR::LEMON - Graph Library

Changeset 1990:15fb7a4ea6be in lemon-0.x for lemon/edge_set.h


Ignore:
Timestamp:
03/01/06 11:17:25 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2592
Message:

Some classes assumed that the GraphMaps? should be inherited
from an ObserverBase?. These classes parents replaced with
DefaultMap? which cause that the graph maps should not be
inherited from the ObserverBase?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/edge_set.h

    r1979 r1990  
    2121
    2222
     23#include <lemon/bits/default_map.h>
    2324#include <lemon/bits/edge_set_extender.h>
    2425
     
    4647    };
    4748
    48     typedef typename Graph::template NodeMap<NodeT> NodesImplBase;
     49    typedef DefaultMap<Graph, Node, NodeT> NodesImplBase;
    4950
    5051    NodesImplBase* nodes;
     
    197198    Node target(const Edge& edge) const { return edges[edge.id].target;}
    198199
     200    typedef typename ItemSetTraits<Graph, Node>::ItemNotifier NodeNotifier;
     201
     202    NodeNotifier& getNotifier(Node) const {
     203      return graph->getNotifier(Node());
     204    }
     205
    199206    template <typename _Value>
    200207    class NodeMap : public Graph::template NodeMap<_Value> {
     
    405412    };
    406413
    407     typedef typename Graph::template NodeMap<NodeT> NodesImplBase;
     414    typedef DefaultMap<Graph, Node, NodeT> NodesImplBase;
    408415
    409416    NodesImplBase* nodes;
     
    506513    Node target(const Edge& edge) const { return edges[edge.id].target;}
    507514
     515    typedef typename ItemSetTraits<Graph, Node>::ItemNotifier NodeNotifier;
     516
     517    NodeNotifier& getNotifier(Node) const {
     518      return graph->getNotifier(Node());
     519    }
     520
    508521    template <typename _Value>
    509522    class NodeMap : public Graph::template NodeMap<_Value> {
Note: See TracChangeset for help on using the changeset viewer.