# HG changeset patch # User klao # Date 1081017706 0 # Node ID 2d4684f76aac4a695cb6bd01e540f0981afd73d1 # Parent 91e78d9b78f4266e536ee7314f160811b583253f Superfluous parts removed diff -r 91e78d9b78f4 -r 2d4684f76aac src/include/skeletons/maps.h --- a/src/include/skeletons/maps.h Sat Apr 03 18:22:08 2004 +0000 +++ b/src/include/skeletons/maps.h Sat Apr 03 18:41:46 2004 +0000 @@ -10,29 +10,9 @@ /// The namespace of HUGOlib concepts and concept checking classes namespace skeleton { - /// Null map concept - template - class NullMap - { - public: - /// Map's key type. - typedef K KeyType; - /// Map's value type. (The type of objects associated with the keys). - typedef T ValueType; - - /// Facility to define a map with an other value type - template - struct rebind { - /// The type of a map with the given value type - typedef NullMap other; - }; - - NullMap() {} - }; - /// Readable map concept template - class ReadableMap : public NullMap + class ReadableMap { public: /// Map's key type. @@ -48,24 +28,13 @@ /// Assignment operator. (optional) ReadableMap& operator=(const ReadableMap&) {return *this;} - /// Facility to define a map with an other value type (optional) - template - struct rebind { - /// The type of a map with the given value type - typedef ReadableMap other; - }; - /// @brief Constructor that copies all keys from the other map and - /// assigns to them a default value (optional) - template - ReadableMap(const ReadableMap &map, const T1 &v) {} - ReadableMap() {} }; /// Writable map concept template - class WritableMap : public NullMap + class WritableMap { public: /// Map's key type. @@ -76,22 +45,6 @@ /// Sets the value associated with a key. void set(const KeyType &k,const ValueType &t) {} - /// Copy contsructor. (optional) - WritableMap(const WritableMap&) {} - /// Assignment operator. (optional) - WritableMap& operator=(const WritableMap&) {return *this;} - - /// Facility to define a map with an other value type (optional) - template - struct rebind { - /// The type of a map with the given value type - typedef WritableMap other; - }; - /// @brief Constructor that copies all keys from the other map and - /// assigns to them a default value (optional) - template - WritableMap(const WritableMap &map, const T1 &v) {} - WritableMap() {} };