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

Method RoadAccess

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

RoadAccess -------------------------------------------------------------------------------------- * @todo (bykoinako) It's a fast fix for release. The idea behind it is to remember the time of * creation RoadAccess instance and return it instead of getting time when m_currentTimeGetter() is * called. But it's not understandable now why m_currentTimeGetter() is called when * cross_mwm section i

Source from the content-addressed store, hash-verified

34 * Fixed by setting custom time getter in BuildRoutingCrossMwmSection -> FillWeights.
35 */
36RoadAccess::RoadAccess() : m_currentTimeGetter([]() { return GetCurrentTimestamp(); }) {}
37
38std::pair<RoadAccess::Type, RoadAccess::Confidence> RoadAccess::GetAccess(uint32_t featureId,
39 RouteWeight const & weightToFeature) const

Callers

nothing calls this directly

Calls 1

GetCurrentTimestampFunction · 0.85

Tested by

no test coverage detected