lemon/concept/maps.h
changeset 1719 674182524bd9
parent 1435 8e85e6bbefdf
child 1875 98698b69a902
     1.1 --- a/lemon/concept/maps.h	Fri Oct 14 10:44:49 2005 +0000
     1.2 +++ b/lemon/concept/maps.h	Fri Oct 14 10:48:34 2005 +0000
     1.3 @@ -17,6 +17,7 @@
     1.4  #ifndef LEMON_CONCEPT_MAPS_H
     1.5  #define LEMON_CONCEPT_MAPS_H
     1.6  
     1.7 +#include <lemon/utility.h>
     1.8  #include <lemon/concept_check.h>
     1.9  
    1.10  ///\ingroup concept
    1.11 @@ -97,7 +98,7 @@
    1.12  	typename _WriteMap::Value own_val;
    1.13  	Key& key;
    1.14  	typename _WriteMap::Key& own_key;
    1.15 -	WriteMap& m;
    1.16 +	_WriteMap& m;
    1.17  
    1.18        };
    1.19      };
    1.20 @@ -122,7 +123,7 @@
    1.21        struct Constraints {
    1.22  	void constraints() {
    1.23  	  checkConcept<ReadMap<K, T>, _ReadWriteMap >();
    1.24 -	  checkConcept<ReadMap<K, T>, _ReadWriteMap >();
    1.25 +	  checkConcept<WriteMap<K, T>, _ReadWriteMap >();
    1.26  	}
    1.27        };
    1.28      };
    1.29 @@ -133,6 +134,8 @@
    1.30      class ReferenceMap : public ReadWriteMap<K,T>
    1.31      {
    1.32      public:
    1.33 +      /// Tag for reference maps.
    1.34 +      typedef True ReferenceMapTag;
    1.35        /// Map's key type.
    1.36        typedef K Key;    
    1.37        /// Map's value type. (The type of objects associated with the keys).
    1.38 @@ -176,7 +179,7 @@
    1.39  	Key& key;
    1.40  	Value& val;
    1.41  	Reference& ref;
    1.42 -	ReferenceMap& m;
    1.43 +	_ReferenceMap& m;
    1.44        };
    1.45      };
    1.46