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

Method GetPenalty

libs/routing/road_penalty.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14} // namespace penalty_impl
15
16std::optional<RoadPenalty::Penalty> RoadPenalty::GetPenalty(RoadPoint const & point) const
17{
18 auto const it = m_pointToPenalty.find(point);
19 if (it != m_pointToPenalty.end())
20 return it->second;
21 return {};
22}
23
24bool RoadPenalty::operator==(RoadPenalty const & rhs) const
25{

Callers 2

GetPenaltiesMethod · 0.45
UNIT_TESTFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36