COIN-OR::LEMON - Graph Library

source: glemon-0.x/mapstorage.h @ 1:c69fedfbb9b3

gui
Last change on this file since 1:c69fedfbb9b3 was 1:c69fedfbb9b3, checked in by Akos Ladanyi, 19 years ago

moved the gui

File size: 1.1 KB
Line 
1// -*- C++ -*- //
2
3#ifndef MAPSTORAGE_H
4#define MAPSTORAGE_H
5
6#include <all_include.h>
7
8class MapStorage
9{
10
11public: ///!!!!!!!!
12  Graph g;
13  std::map< std::string,Graph::NodeMap<double> * > nodemap_storage;
14  std::map< std::string,Graph::EdgeMap<double> * > edgemap_storage;
15
16  std::vector<Graph::NodeMap<double> > default_nodemaps;
17  std::vector<Graph::EdgeMap<double> > default_edgemaps;
18
19public:
20  MapStorage(Graph &);
21  int addNodeMap(const std::string &,Graph::NodeMap<double> *);
22  int addEdgeMap(const std::string &,Graph::EdgeMap<double> *);
23
24  int numOfNodeMaps() {return nodemap_storage.size();};
25  int numOfEdgeMaps() {return edgemap_storage.size();};
26
27  double maxOfNodeMap(const std::string &);
28  double maxOfEdgeMap(const std::string &);
29
30  double minOfNodeMap(const std::string &);
31  double minOfEdgeMap(const std::string &);
32
33  std::map< std::string,Graph::NodeMap<double> * >::iterator beginOfNodeMaps(){return nodemap_storage.begin();};
34  std::map< std::string,Graph::EdgeMap<double> * >::iterator beginOfEdgeMaps(){return edgemap_storage.begin();};
35};
36
37#endif //MAPSTORAGE_H
Note: See TracBrowser for help on using the repository browser.