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

Method CalcRoadMask

generator/routing_index_generator.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 VehicleMask CalcRoadMask(FeatureType & f) const
73 {
74 feature::TypesHolder const types(f);
75 if (types.HasWithSubclass(m_constructionType))
76 return 0;
77
78 return CalcMask([&](VehicleModelInterface const & model) { return model.IsRoad(types); });
79 }
80
81 VehicleMask CalcOneWayMask(FeatureType & f) const
82 {

Callers 2

ProcessFeatureMethod · 0.80
CalcCrossMwmTransitionsFunction · 0.80

Calls 2

HasWithSubclassMethod · 0.80
IsRoadMethod · 0.45

Tested by

no test coverage detected