Changeset 1039:bd01c5a3f989 in lemon-0.x for src/lemon/vector_map.h
- Timestamp:
- 12/16/04 13:26:57 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1429
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/vector_map.h
r987 r1039 21 21 #include <algorithm> 22 22 23 #include <lemon/alteration_ observer_registry.h>23 #include <lemon/alteration_notifier.h> 24 24 25 25 ///\ingroup graphmaps … … 38 38 /// uses the std::vector to implement the container function. 39 39 /// 40 /// \param Registry The Alteration ObserverRegistrythat will notify this map.40 /// \param Registry The AlterationNotifier that will notify this map. 41 41 /// \param IdMap The IdMap type of the graph items. 42 42 /// \param Value The value type of the map. … … 48 48 typename _Item, 49 49 typename _Value> 50 class VectorMap : public Alteration ObserverRegistry<_Item>::ObserverBase {50 class VectorMap : public AlterationNotifier<_Item>::ObserverBase { 51 51 public: 52 52 … … 56 56 typedef _Item Key; 57 57 /// The id map type of the map. 58 typedef Alteration ObserverRegistry<_Item> Registry;58 typedef AlterationNotifier<_Item> Registry; 59 59 /// The value type of the map. 60 60 typedef _Value Value; … … 90 90 91 91 VectorMap(const Graph& _g) : graph(&_g) { 92 attach(_g.get ObserverRegistry(_Item()));92 attach(_g.getNotifier(_Item())); 93 93 build(); 94 94 } … … 100 100 101 101 VectorMap(const Graph& _g, const Value& _v) : graph(&_g) { 102 attach(_g.get ObserverRegistry(_Item()));102 attach(_g.getNotifier(_Item())); 103 103 container.resize(graph->maxId(_Item()) + 1, _v); 104 104 } … … 225 225 typedef typename Parent::NodeIt NodeIt; 226 226 typedef typename Parent::NodeIdMap NodeIdMap; 227 typedef typename Parent::Node ObserverRegistryNodeObserverRegistry;227 typedef typename Parent::NodeNotifier NodeObserverRegistry; 228 228 229 229 typedef typename Parent::Edge Edge; 230 230 typedef typename Parent::EdgeIt EdgeIt; 231 231 typedef typename Parent::EdgeIdMap EdgeIdMap; 232 typedef typename Parent::Edge ObserverRegistryEdgeObserverRegistry;232 typedef typename Parent::EdgeNotifier EdgeObserverRegistry; 233 233 234 234
Note: See TracChangeset
for help on using the changeset viewer.