MCPcopy Create free account
hub / github.com/comaps/comaps / LoadedPathSegment

Class LoadedPathSegment

libs/routing/loaded_path_segment.hpp:21–35  ·  view source on GitHub ↗

! * \brief The LoadedPathSegment struct is a representation of a single node path. * It unpacks and stores information about path and road type flags. * Postprocessing must read information from the structure and does not initiate disk readings. */

Source from the content-addressed store, hash-verified

19 * Postprocessing must read information from the structure and does not initiate disk readings.
20 */
21struct LoadedPathSegment
22{
23 std::vector<geometry::PointWithAltitude> m_path;
24 turns::lanes::LanesInfo m_lanes;
25 RouteSegment::RoadNameInfo m_roadNameInfo;
26 // double m_weight = 0.0; /*!< Time in seconds to pass the segment. */
27 SegmentRange m_segmentRange;
28 std::vector<Segment> m_segments; /*!< Traffic segments for |m_path|. */
29 ftypes::HighwayClass m_highwayClass = ftypes::HighwayClass::Undefined;
30 bool m_onRoundabout = false;
31 bool m_isLink = false;
32 bool m_isOneWay = false;
33
34 bool IsValid() const { return m_path.size() > 1; }
35};
36
37using TUnpackedPathSegments = std::vector<LoadedPathSegment>;
38} // namespace routing

Callers 1

UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.68