Changeset 1267:a93f94dbe3d3 in lemon0.x for src/lemon/vector_map.h
 Timestamp:
 03/26/05 00:31:57 (15 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1694
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/lemon/vector_map.h
r1164 r1267 21 21 #include <algorithm> 22 22 23 #include <lemon/utility.h> 24 #include <lemon/map_iterator.h> 23 25 #include <lemon/alteration_notifier.h> 24 26 … … 45 47 46 48 47 template <typename _Graph, 48 typename _Item, 49 typename _Value> 49 template < 50 typename _Graph, 51 typename _Item, 52 typename _Value 53 > 50 54 class VectorMap : public AlterationNotifier<_Item>::ObserverBase { 51 55 public: … … 83 87 /// The pointer type of the map; 84 88 typedef typename Container::const_pointer ConstPointer; 89 90 typedef True FullTypeTag; 85 91 86 92 /// Constructor to attach the new map into the registry. … … 206 212 container.clear(); 207 213 } 208 214 209 215 private: 210 216 … … 233 239 234 240 235 236 241 template <typename _Value> 237 class NodeMap : public VectorMap<Graph, Node, _Value> { 242 class NodeMap : 243 public IterableMapExtender<VectorMap<Graph, Node, _Value> > { 238 244 public: 239 245 typedef VectorMappableGraphExtender<_Base> Graph; … … 241 247 typedef typename Graph::Node Node; 242 248 243 typedef VectorMap<Graph, Node, _Value> Parent;249 typedef IterableMapExtender<VectorMap<Graph, Node, _Value> > Parent; 244 250 245 251 //typedef typename Parent::Graph Graph; … … 254 260 255 261 template <typename _Value> 256 class EdgeMap : public VectorMap<Graph, Edge, _Value> { 262 class EdgeMap 263 : public IterableMapExtender<VectorMap<Graph, Edge, _Value> > { 257 264 public: 258 265 typedef VectorMappableGraphExtender<_Base> Graph; … … 260 267 typedef typename Graph::Edge Edge; 261 268 262 typedef VectorMap<Graph, Edge, _Value> Parent;269 typedef IterableMapExtender<VectorMap<Graph, Edge, _Value> > Parent; 263 270 264 271 //typedef typename Parent::Graph Graph;
Note: See TracChangeset
for help on using the changeset viewer.