diff -r 6a958ab38386 -r 674182524bd9 lemon/bits/static_map.h --- a/lemon/bits/static_map.h Fri Oct 14 10:44:49 2005 +0000 +++ b/lemon/bits/static_map.h Fri Oct 14 10:48:34 2005 +0000 @@ -62,28 +62,37 @@ } }; - typedef True AdaptibleTag; + private: + typedef std::vector<_Value> Container; + + public: + /// The graph type of the map. typedef _Graph Graph; + /// The reference map tag. + typedef True ReferenceMapTag; + /// The key type of the map. typedef _Item Key; - /// The id map type of the map. - typedef AlterationNotifier<_Item> Registry; /// The value type of the map. typedef _Value Value; + /// The const reference type of the map. + typedef typename Container::const_reference ConstReference; + /// The reference type of the map. + typedef typename Container::reference Reference; + + typedef const Value ConstValue; + typedef Value* Pointer; + typedef const Value* ConstPointer; + + typedef AlterationNotifier<_Item> Registry; /// The map type. typedef StaticMap Map; /// The base class of the map. typedef typename Registry::ObserverBase Parent; - private: - - typedef std::vector Container; - - public: - /// \brief Constructor to attach the new map into the registry. /// /// It constructs a map and attachs it into the registry. @@ -141,12 +150,6 @@ public: - typedef typename Container::reference Reference; - typedef typename Container::pointer Pointer; - typedef const Value ConstValue; - typedef typename Container::const_reference ConstReference; - typedef typename Container::const_pointer ConstPointer; - /// \brief The subcript operator. /// /// The subscript operator. The map can be subscripted by the