map_value_map.cc
changeset 1 67188bd752db
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/map_value_map.cc	Mon Jul 07 08:10:39 2008 -0500
     1.3 @@ -0,0 +1,32 @@
     1.4 +#include "map_value_map.h"
     1.5 +#include "mapstorage.h"
     1.6 +
     1.7 +MapValueArcMap::MapValueArcMap(const std::string& _mapName, MapStorage* _pMapStorage) :
     1.8 +  mapName(_mapName),
     1.9 +  pMapStorage(_pMapStorage)
    1.10 +{
    1.11 +}
    1.12 +
    1.13 +MapValueArcMap::Value MapValueArcMap::operator[](Key k) const {
    1.14 +  return pMapStorage->get(mapName, k);
    1.15 +}
    1.16 +
    1.17 +void MapValueArcMap::set(Key k, Value v)
    1.18 +{
    1.19 +  pMapStorage->set(mapName, k, v);
    1.20 +}
    1.21 +
    1.22 +MapValueNodeMap::MapValueNodeMap(const std::string& _mapName, MapStorage* _pMapStorage) :
    1.23 +  mapName(_mapName),
    1.24 +  pMapStorage(_pMapStorage)
    1.25 +{
    1.26 +}
    1.27 +
    1.28 +MapValueNodeMap::Value MapValueNodeMap::operator[](Key k) const {
    1.29 +  return pMapStorage->get(mapName, k);
    1.30 +}
    1.31 +
    1.32 +void MapValueNodeMap::set(Key k, Value v)
    1.33 +{
    1.34 +  pMapStorage->set(mapName, k, v);
    1.35 +}