COIN-OR::LEMON - Graph Library

Changeset 1039:bd01c5a3f989 in lemon-0.x for src/lemon/vector_map.h


Ignore:
Timestamp:
12/16/04 13:26:57 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1429
Message:

AlterationObserverRegistry? -> AlterationNotifier?
2 step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/vector_map.h

    r987 r1039  
    2121#include <algorithm>
    2222
    23 #include <lemon/alteration_observer_registry.h>
     23#include <lemon/alteration_notifier.h>
    2424
    2525///\ingroup graphmaps
     
    3838  /// uses the std::vector to implement the container function.
    3939  ///
    40   /// \param Registry The AlterationObserverRegistry that will notify this map.
     40  /// \param Registry The AlterationNotifier that will notify this map.
    4141  /// \param IdMap The IdMap type of the graph items.
    4242  /// \param Value The value type of the map.
     
    4848            typename _Item,
    4949            typename _Value>
    50   class VectorMap : public AlterationObserverRegistry<_Item>::ObserverBase {
     50  class VectorMap : public AlterationNotifier<_Item>::ObserverBase {
    5151  public:
    5252               
     
    5656    typedef _Item Key;
    5757    /// The id map type of the map.
    58     typedef AlterationObserverRegistry<_Item> Registry;
     58    typedef AlterationNotifier<_Item> Registry;
    5959    /// The value type of the map.
    6060    typedef _Value Value;
     
    9090     
    9191    VectorMap(const Graph& _g) : graph(&_g) {
    92       attach(_g.getObserverRegistry(_Item()));
     92      attach(_g.getNotifier(_Item()));
    9393      build();
    9494    }
     
    100100     
    101101    VectorMap(const Graph& _g, const Value& _v) : graph(&_g) {
    102       attach(_g.getObserverRegistry(_Item()));
     102      attach(_g.getNotifier(_Item()));
    103103      container.resize(graph->maxId(_Item()) + 1, _v);
    104104    }
     
    225225    typedef typename Parent::NodeIt NodeIt;
    226226    typedef typename Parent::NodeIdMap NodeIdMap;
    227     typedef typename Parent::NodeObserverRegistry NodeObserverRegistry;
     227    typedef typename Parent::NodeNotifier NodeObserverRegistry;
    228228
    229229    typedef typename Parent::Edge Edge;
    230230    typedef typename Parent::EdgeIt EdgeIt;
    231231    typedef typename Parent::EdgeIdMap EdgeIdMap;
    232     typedef typename Parent::EdgeObserverRegistry EdgeObserverRegistry;
     232    typedef typename Parent::EdgeNotifier EdgeObserverRegistry;
    233233
    234234   
Note: See TracChangeset for help on using the changeset viewer.