| 62 | } |
| 63 | |
| 64 | bool IndexGraph::IsJointOrEnd(Segment const & segment, bool fromStart) const |
| 65 | { |
| 66 | if (IsJoint(segment.GetRoadPoint(fromStart))) |
| 67 | return true; |
| 68 | |
| 69 | // For features, that ends out of mwm. In this case |m_graph.IsJoint| returns false, but we should |
| 70 | // think, that it's Joint anyway. |
| 71 | uint32_t const pointId = segment.GetPointId(fromStart); |
| 72 | if (pointId == 0) |
| 73 | return true; |
| 74 | |
| 75 | uint32_t const pointsNumber = GetRoadGeometry(segment.GetFeatureId()).GetPointsCount(); |
| 76 | return pointId + 1 == pointsNumber; |
| 77 | } |
| 78 | |
| 79 | void IndexGraph::GetEdgeList(astar::VertexData<Segment, RouteWeight> const & vertexData, bool isOutgoing, |
| 80 | bool useRoutingOptions, SegmentEdgeListT & edges, Parents<Segment> const & parents) const |
nothing calls this directly
no test coverage detected