equal
deleted
inserted
replaced
49 { |
49 { |
50 delete it->second; |
50 delete it->second; |
51 } |
51 } |
52 } |
52 } |
53 |
53 |
54 int MapStorage::addNodeMap(const std::string & name, Graph::NodeMap<double> *nodemap, double default_value = 0.0) |
54 int MapStorage::addNodeMap(const std::string & name, Graph::NodeMap<double> *nodemap, double default_value) |
55 { |
55 { |
|
56 std::cout << default_value << std::endl; |
56 if( nodemap_storage.find(name) == nodemap_storage.end() ) |
57 if( nodemap_storage.find(name) == nodemap_storage.end() ) |
57 { |
58 { |
58 nodemap_storage[name]=nodemap; |
59 nodemap_storage[name]=nodemap; |
59 // set the maps default value |
60 // set the maps default value |
60 nodemap_default[name] = default_value; |
61 nodemap_default[name] = default_value; |
120 MapStorage::Signal_Prop MapStorage::signal_prop_ch() |
121 MapStorage::Signal_Prop MapStorage::signal_prop_ch() |
121 { |
122 { |
122 return signal_prop; |
123 return signal_prop; |
123 } |
124 } |
124 |
125 |
125 int MapStorage::addEdgeMap(const std::string & name, Graph::EdgeMap<double> *edgemap, double default_value = 0.0) |
126 int MapStorage::addEdgeMap(const std::string & name, Graph::EdgeMap<double> *edgemap, double default_value) |
126 { |
127 { |
127 if( edgemap_storage.find(name) == edgemap_storage.end() ) |
128 if( edgemap_storage.find(name) == edgemap_storage.end() ) |
128 { |
129 { |
129 edgemap_storage[name]=edgemap; |
130 edgemap_storage[name]=edgemap; |
130 // set the maps default value |
131 // set the maps default value |