diff -r 137cb007b199 -r c69fedfbb9b3 mapstorage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mapstorage.h Wed May 11 16:55:18 2005 +0000 @@ -0,0 +1,37 @@ +// -*- C++ -*- // + +#ifndef MAPSTORAGE_H +#define MAPSTORAGE_H + +#include + +class MapStorage +{ + +public: ///!!!!!!!! + Graph g; + std::map< std::string,Graph::NodeMap * > nodemap_storage; + std::map< std::string,Graph::EdgeMap * > edgemap_storage; + + std::vector > default_nodemaps; + std::vector > default_edgemaps; + +public: + MapStorage(Graph &); + int addNodeMap(const std::string &,Graph::NodeMap *); + int addEdgeMap(const std::string &,Graph::EdgeMap *); + + int numOfNodeMaps() {return nodemap_storage.size();}; + int numOfEdgeMaps() {return edgemap_storage.size();}; + + double maxOfNodeMap(const std::string &); + double maxOfEdgeMap(const std::string &); + + double minOfNodeMap(const std::string &); + double minOfEdgeMap(const std::string &); + + std::map< std::string,Graph::NodeMap * >::iterator beginOfNodeMaps(){return nodemap_storage.begin();}; + std::map< std::string,Graph::EdgeMap * >::iterator beginOfEdgeMaps(){return edgemap_storage.begin();}; +}; + +#endif //MAPSTORAGE_H