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

Method IsFake

libs/routing/joint_segment.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool JointSegment::IsFake() const
55{
56 // This is enough, but let's check in Debug for confidence.
57 bool const result = (m_numMwmId == kFakeNumMwmId && m_startSegmentId != kInvalidSegmentId);
58 if (result)
59 {
60 // Try if m_featureId can be real in a fake JointSegment.
61 // ASSERT_EQUAL(m_featureId, kInvalidFeatureId, ());
62
63 ASSERT_EQUAL(m_startSegmentId, m_endSegmentId, ());
64 ASSERT_EQUAL(m_forward, false, ());
65 }
66
67 return result;
68}
69
70Segment JointSegment::GetSegment(bool start) const
71{

Callers 12

FillWeightsFunction · 0.45
ConvertEdgeToSegmentFunction · 0.45
DebugPrintFunction · 0.45
GetEdgeTypesMethod · 0.45
GetEdgeTypesMethod · 0.45
AreWavesConnectibleMethod · 0.45
GetSegmentFromJointMethod · 0.45
HeuristicCostEstimateMethod · 0.45
ReconstructJointMethod · 0.45
GetParentSegmentMethod · 0.45
GetSpeedKMpHMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected