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

Method GetAccessWithoutConditional

libs/routing/road_access.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86std::pair<RoadAccess::Type, RoadAccess::Confidence> RoadAccess::GetAccessWithoutConditional(uint32_t featureId) const
87{
88 // todo(@m) This may or may not be too slow. Consider profiling this and using
89 // a Bloom filter or anything else that is faster than ska::flat_hash_map
90 auto const it = m_wayToAccess.find(featureId);
91 if (it != m_wayToAccess.cend())
92 return {it->second, Confidence::Sure};
93
94 return {Type::Yes, Confidence::Sure};
95}
96
97std::pair<RoadAccess::Type, RoadAccess::Confidence> RoadAccess::GetAccessWithoutConditional(
98 RoadPoint const & point) const

Callers 4

UNIT_CLASS_TESTFunction · 0.80
GetAccessTypeMethod · 0.80
IsAccessNoForSureMethod · 0.80
GetPenaltiesMethod · 0.80

Calls 2

findMethod · 0.45
cendMethod · 0.45

Tested by 1

UNIT_CLASS_TESTFunction · 0.64