map_value_map.h
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Thu, 10 Jul 2008 18:53:00 +0100
changeset 4 244d8c60b997
permissions -rw-r--r--
Issue a custom error message when Lemon is not found.
hegyi@1
     1
#ifndef MAP_VALUE_MAP_H
hegyi@1
     2
#define MAP_VALUE_MAP_H
hegyi@1
     3
hegyi@1
     4
#include "map_value.h"
hegyi@1
     5
#include <string>
hegyi@1
     6
#include "all_include.h"
hegyi@1
     7
hegyi@1
     8
class MapStorage;
hegyi@1
     9
hegyi@1
    10
class MapValueArcMap
hegyi@1
    11
{
hegyi@1
    12
  private:
hegyi@1
    13
    std::string mapName;
hegyi@1
    14
    MapStorage* pMapStorage;
hegyi@1
    15
  public:
hegyi@1
    16
    typedef MapValue Value;
hegyi@1
    17
    typedef Digraph::Arc Key;
hegyi@1
    18
    MapValueArcMap(const std::string&, MapStorage*);
hegyi@1
    19
    Value operator[](Key k) const;
hegyi@1
    20
    void set(Key k, Value v);
hegyi@1
    21
};
hegyi@1
    22
hegyi@1
    23
class MapValueNodeMap
hegyi@1
    24
{
hegyi@1
    25
  private:
hegyi@1
    26
    std::string mapName;
hegyi@1
    27
    MapStorage* pMapStorage;
hegyi@1
    28
  public:
hegyi@1
    29
    typedef MapValue Value;
hegyi@1
    30
    typedef Digraph::Node Key;
hegyi@1
    31
    MapValueNodeMap(const std::string&, MapStorage*);
hegyi@1
    32
    Value operator[](Key k) const;
hegyi@1
    33
    void set(Key k, Value v);
hegyi@1
    34
};
hegyi@1
    35
hegyi@1
    36
#endif