diff -r f2d6d3446adf -r 4137ef9aacc6 lemon/bits/array_map.h --- a/lemon/bits/array_map.h Fri Apr 24 10:15:33 2009 +0200 +++ b/lemon/bits/array_map.h Fri Apr 24 11:54:48 2009 +0200 @@ -47,7 +47,7 @@ : public ItemSetTraits<_Graph, _Item>::ItemNotifier::ObserverBase { public: // The graph type. - typedef _Graph Graph; + typedef _Graph GraphType; // The item type. typedef _Item Item; // The reference map tag. @@ -63,13 +63,17 @@ // The reference type of the map. typedef _Value& Reference; + // The map type. + typedef ArrayMap Map; + // The notifier type. typedef typename ItemSetTraits<_Graph, _Item>::ItemNotifier Notifier; + private: + // The MapBase of the Map which imlements the core regisitry function. typedef typename Notifier::ObserverBase Parent; - private: typedef std::allocator Allocator; public: @@ -77,7 +81,7 @@ // \brief Graph initialized map constructor. // // Graph initialized map constructor. - explicit ArrayMap(const Graph& graph) { + explicit ArrayMap(const GraphType& graph) { Parent::attach(graph.notifier(Item())); allocate_memory(); Notifier* nf = Parent::notifier(); @@ -91,7 +95,7 @@ // \brief Constructor to use default value to initialize the map. // // It constructs a map and initialize all of the the map. - ArrayMap(const Graph& graph, const Value& value) { + ArrayMap(const GraphType& graph, const Value& value) { Parent::attach(graph.notifier(Item())); allocate_memory(); Notifier* nf = Parent::notifier();