MCPcopy Create free account
hub / github.com/comaps/comaps / operator<

Method operator<

tools/openlr/router.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68bool Router::Vertex::Score::operator<(Score const & rhs) const
69{
70 auto const ls = GetScore();
71 auto const rs = rhs.GetScore();
72 if (ls != rs)
73 return ls < rs;
74
75 if (m_distance != rhs.m_distance)
76 return m_distance < rhs.m_distance;
77 return m_penalty < rhs.m_penalty;
78}
79
80bool Router::Vertex::Score::operator==(Score const & rhs) const
81{

Callers

nothing calls this directly

Calls 2

GetScoreFunction · 0.85
GetScoreMethod · 0.45

Tested by

no test coverage detected