move implementation details out of templat'ized container code
This commit is contained in:
		
							parent
							
								
									50ccfbf554
								
							
						
					
					
						commit
						0e33f638e6
					
				| @ -23,6 +23,10 @@ struct EdgeBasedNode { | ||||
|         FixedPointCoordinate & nearest_location, | ||||
|         double & r | ||||
|     ) const { | ||||
|         if( ignoreInGrid ) { | ||||
|             return std::numeric_limits<double>::max(); | ||||
|         } | ||||
| 
 | ||||
|         const double x = inputPoint.lat/COORDINATE_PRECISION; | ||||
|         const double y = inputPoint.lon/COORDINATE_PRECISION; | ||||
|         const double a = lat1/COORDINATE_PRECISION; | ||||
| @ -83,9 +87,9 @@ struct EdgeBasedNode { | ||||
|         return centroid; | ||||
|     } | ||||
| 
 | ||||
|     inline bool isIgnored() const { | ||||
|         return ignoreInGrid; | ||||
|     } | ||||
|     // inline bool isIgnored() const {
 | ||||
|     //     return ignoreInGrid;
 | ||||
|     // }
 | ||||
| 
 | ||||
|     NodeID id; | ||||
|     int lat1; | ||||
|  | ||||
| @ -675,9 +675,6 @@ public: | ||||
|                         ) { | ||||
|                             continue; | ||||
|                         } | ||||
|                         if(current_edge.isIgnored()) { | ||||
|                             continue; | ||||
|                         } | ||||
| 
 | ||||
|                         double current_minimum_distance = ApproximateDistance( | ||||
|                                 input_coordinate.lat, | ||||
| @ -781,9 +778,6 @@ public: | ||||
|                         if(ignore_tiny_components && current_edge.belongsToTinyComponent) { | ||||
|                             continue; | ||||
|                         } | ||||
|                         if(current_edge.isIgnored()) { | ||||
|                             continue; | ||||
|                         } | ||||
| 
 | ||||
|                         double current_ratio = 0.; | ||||
|                         double current_perpendicular_distance = current_edge.ComputePerpendicularDistance( | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user