Last change
on this file since 1:67188bd752db was
1:67188bd752db,
checked in by Peter Hegyi <hegyi@…>, 16 years ago
|
SVN revision 3500 made compilable with Lemon 1.0.
|
File size:
714 bytes
|
Rev | Line | |
---|
[1] | 1 | #include "map_value_map.h" |
---|
| 2 | #include "mapstorage.h" |
---|
| 3 | |
---|
| 4 | MapValueArcMap::MapValueArcMap(const std::string& _mapName, MapStorage* _pMapStorage) : |
---|
| 5 | mapName(_mapName), |
---|
| 6 | pMapStorage(_pMapStorage) |
---|
| 7 | { |
---|
| 8 | } |
---|
| 9 | |
---|
| 10 | MapValueArcMap::Value MapValueArcMap::operator[](Key k) const { |
---|
| 11 | return pMapStorage->get(mapName, k); |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | void MapValueArcMap::set(Key k, Value v) |
---|
| 15 | { |
---|
| 16 | pMapStorage->set(mapName, k, v); |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | MapValueNodeMap::MapValueNodeMap(const std::string& _mapName, MapStorage* _pMapStorage) : |
---|
| 20 | mapName(_mapName), |
---|
| 21 | pMapStorage(_pMapStorage) |
---|
| 22 | { |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | MapValueNodeMap::Value MapValueNodeMap::operator[](Key k) const { |
---|
| 26 | return pMapStorage->get(mapName, k); |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | void MapValueNodeMap::set(Key k, Value v) |
---|
| 30 | { |
---|
| 31 | pMapStorage->set(mapName, k, v); |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.