Changes in / [255:914c5432be97:254:43500afd5cb0] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/dijkstra.h
r251 r247 1069 1069 //Pointer to the length map 1070 1070 void *_length; 1071 //Pointer to the map of processed nodes.1072 void *_processed;1073 1071 //Pointer to the map of predecessors arcs. 1074 1072 void *_pred; … … 1083 1081 /// This constructor does not require parameters, therefore it initiates 1084 1082 /// all of the attributes to default values (0, INVALID). 1085 DijkstraWizardBase() : _g(0), _length(0), _pr ocessed(0), _pred(0),1083 DijkstraWizardBase() : _g(0), _length(0), _pred(0), 1086 1084 _dist(0), _source(INVALID) {} 1087 1085 … … 1097 1095 _g(reinterpret_cast<void*>(const_cast<GR*>(&g))), 1098 1096 _length(reinterpret_cast<void*>(const_cast<LM*>(&l))), 1099 _pr ocessed(0), _pred(0), _dist(0), _source(s) {}1097 _pred(0), _dist(0), _source(s) {} 1100 1098 1101 1099 }; … … 1176 1174 dij(*reinterpret_cast<const Digraph*>(Base::_g), 1177 1175 *reinterpret_cast<const LengthMap*>(Base::_length)); 1178 if(Base::_processed) 1179 dij.processedMap(*reinterpret_cast<ProcessedMap*>(Base::_processed)); 1180 if(Base::_pred) 1181 dij.predMap(*reinterpret_cast<PredMap*>(Base::_pred)); 1182 if(Base::_dist) 1183 dij.distMap(*reinterpret_cast<DistMap*>(Base::_dist)); 1176 if(Base::_pred) dij.predMap(*reinterpret_cast<PredMap*>(Base::_pred)); 1177 if(Base::_dist) dij.distMap(*reinterpret_cast<DistMap*>(Base::_dist)); 1184 1178 dij.run(Base::_source); 1185 1179 }
Note: See TracChangeset
for help on using the changeset viewer.