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

Method GetHighwayClassDiff

tools/openlr/score_paths_connector.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 uint8_t GetHighwayClassDiff() const
66 {
67 CHECK_NOT_EQUAL(m_minHwClass, ftypes::HighwayClass::Undefined, ());
68 CHECK_GREATER_OR_EQUAL(m_maxHwClass, m_minHwClass, ());
69
70 uint8_t const hwClassDiff = static_cast<uint8_t>(m_maxHwClass) - static_cast<uint8_t>(m_minHwClass);
71 return hwClassDiff;
72 }
73
74 bool AreAllOneWaysEqual() const { return m_oneWay.m_allEqual; }
75 bool AreAllRoundaboutEqual() const { return m_roundabout.m_allEqual; }

Callers 1

GetScoreForUniformityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected