1.1 --- a/lemon/bits/static_map.h Fri Oct 14 10:44:49 2005 +0000
1.2 +++ b/lemon/bits/static_map.h Fri Oct 14 10:48:34 2005 +0000
1.3 @@ -62,28 +62,37 @@
1.4 }
1.5 };
1.6
1.7 - typedef True AdaptibleTag;
1.8 + private:
1.9
1.10 + typedef std::vector<_Value> Container;
1.11 +
1.12 + public:
1.13 +
1.14 /// The graph type of the map.
1.15 typedef _Graph Graph;
1.16 + /// The reference map tag.
1.17 + typedef True ReferenceMapTag;
1.18 +
1.19 /// The key type of the map.
1.20 typedef _Item Key;
1.21 - /// The id map type of the map.
1.22 - typedef AlterationNotifier<_Item> Registry;
1.23 /// The value type of the map.
1.24 typedef _Value Value;
1.25 + /// The const reference type of the map.
1.26 + typedef typename Container::const_reference ConstReference;
1.27 + /// The reference type of the map.
1.28 + typedef typename Container::reference Reference;
1.29 +
1.30 + typedef const Value ConstValue;
1.31 + typedef Value* Pointer;
1.32 + typedef const Value* ConstPointer;
1.33 +
1.34 + typedef AlterationNotifier<_Item> Registry;
1.35
1.36 /// The map type.
1.37 typedef StaticMap Map;
1.38 /// The base class of the map.
1.39 typedef typename Registry::ObserverBase Parent;
1.40
1.41 - private:
1.42 -
1.43 - typedef std::vector<Value> Container;
1.44 -
1.45 - public:
1.46 -
1.47 /// \brief Constructor to attach the new map into the registry.
1.48 ///
1.49 /// It constructs a map and attachs it into the registry.
1.50 @@ -141,12 +150,6 @@
1.51
1.52 public:
1.53
1.54 - typedef typename Container::reference Reference;
1.55 - typedef typename Container::pointer Pointer;
1.56 - typedef const Value ConstValue;
1.57 - typedef typename Container::const_reference ConstReference;
1.58 - typedef typename Container::const_pointer ConstPointer;
1.59 -
1.60 /// \brief The subcript operator.
1.61 ///
1.62 /// The subscript operator. The map can be subscripted by the