Changeset 1645:4a04bb856ac7 in lemon-0.x for gui/mapstorage.h
- Timestamp:
- 08/23/05 09:36:09 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2158
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/mapstorage.h
r1606 r1645 38 38 std::vector<Graph::EdgeMap<double> > default_edgemaps; 39 39 40 // Default values for the maps 41 std::map< std::string, double > nodemap_default; 42 43 // Default values for the maps 44 std::map< std::string, double > edgemap_default; 45 40 46 public: 41 47 ///Constructor of MapStorage. Expects the Graph of … … 53 59 ///\nodemap is the pointer of the given nodemap 54 60 ///\todo map should be given by reference! 55 int addNodeMap(const std::string &,Graph::NodeMap<double> * );61 int addNodeMap(const std::string &,Graph::NodeMap<double> *, double); 56 62 57 63 ///Adds given map to storage. A name and the map itself has to be provided. … … 59 65 ///\edgemap is the pointer of the given edgemap 60 66 ///\todo map should be given by reference! 61 int addEdgeMap(const std::string &,Graph::EdgeMap<double> * );67 int addEdgeMap(const std::string &,Graph::EdgeMap<double> *, double); 62 68 63 69 ///Returns how much nodemaps is stored in \ref MapStorage … … 95 101 std::map< std::string,Graph::EdgeMap<double> * >::iterator endOfEdgeMaps(){return edgemap_storage.end();}; 96 102 97 ///This function sets a default base value for the newly created node 98 void initMapsForNode(NodeIt); 99 100 ///This function sets a default base value for the newly created node 101 void initMapsForEdge(Graph::Edge); 102 103 void readFromFile(const std::string &); 103 int readFromFile(const std::string &); 104 104 void writeToFile(const std::string &); 105 105
Note: See TracChangeset
for help on using the changeset viewer.