hegyi@1: #ifndef MAP_VALUE_MAP_H hegyi@1: #define MAP_VALUE_MAP_H hegyi@1: hegyi@1: #include "map_value.h" hegyi@1: #include hegyi@1: #include "all_include.h" hegyi@1: hegyi@1: class MapStorage; hegyi@1: hegyi@1: class MapValueArcMap hegyi@1: { hegyi@1: private: hegyi@1: std::string mapName; hegyi@1: MapStorage* pMapStorage; hegyi@1: public: hegyi@1: typedef MapValue Value; hegyi@1: typedef Digraph::Arc Key; hegyi@1: MapValueArcMap(const std::string&, MapStorage*); hegyi@1: Value operator[](Key k) const; hegyi@1: void set(Key k, Value v); hegyi@1: }; hegyi@1: hegyi@1: class MapValueNodeMap hegyi@1: { hegyi@1: private: hegyi@1: std::string mapName; hegyi@1: MapStorage* pMapStorage; hegyi@1: public: hegyi@1: typedef MapValue Value; hegyi@1: typedef Digraph::Node Key; hegyi@1: MapValueNodeMap(const std::string&, MapStorage*); hegyi@1: Value operator[](Key k) const; hegyi@1: void set(Key k, Value v); hegyi@1: }; hegyi@1: hegyi@1: #endif