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