inline std::string DebugPrint(Segment const & segment) { std::ostringstream out; out << std::boolalpha << "Segment(" << segment.GetMwmId() << ", " << segment.GetFeatureId() << ", " << segment.GetSegmentIdx() << ", " << segment.IsForward() << ")"; return out.str(); }
void CrossMwmGraph::GetTwinFeature(Segment const & segment, bool isOutgoing, vector<Segment> & twins) { std::vector<uint32_t> const & transitSegmentIds = m_crossMwmIndexGraph.GetTransitSegmentId(segment.GetMwmId(), segment.GetFeatureId()); for (auto transitSegmentId : transitSegmentIds) { Segment const transitSegment(segment.GetMwmId(), segment.GetFeatureId(), transitSegmentId, segment.IsForward()); if (!IsTransition(transitSegment, isOutgoing)) continue; GetTwins(transitSegment, isOutgoing, twins); break; } }