diff -r 0e4f009eab8b -r 67188bd752db map_value_map.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/map_value_map.cc Mon Jul 07 08:10:39 2008 -0500 @@ -0,0 +1,32 @@ +#include "map_value_map.h" +#include "mapstorage.h" + +MapValueArcMap::MapValueArcMap(const std::string& _mapName, MapStorage* _pMapStorage) : + mapName(_mapName), + pMapStorage(_pMapStorage) +{ +} + +MapValueArcMap::Value MapValueArcMap::operator[](Key k) const { + return pMapStorage->get(mapName, k); +} + +void MapValueArcMap::set(Key k, Value v) +{ + pMapStorage->set(mapName, k, v); +} + +MapValueNodeMap::MapValueNodeMap(const std::string& _mapName, MapStorage* _pMapStorage) : + mapName(_mapName), + pMapStorage(_pMapStorage) +{ +} + +MapValueNodeMap::Value MapValueNodeMap::operator[](Key k) const { + return pMapStorage->get(mapName, k); +} + +void MapValueNodeMap::set(Key k, Value v) +{ + pMapStorage->set(mapName, k, v); +}