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

Method VehicleMaskBuilder

generator/routing_index_generator.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59{
60public:
61 VehicleMaskBuilder(string const & country, CountryParentNameGetterFn const & countryParentNameGetterFn)
62 : m_pedestrianModel(PedestrianModelFactory(countryParentNameGetterFn).GetVehicleModelForCountry(country))
63 , m_bicycleModel(BicycleModelFactory(countryParentNameGetterFn).GetVehicleModelForCountry(country))
64 , m_carModel(CarModelFactory(countryParentNameGetterFn).GetVehicleModelForCountry(country))
65 , m_constructionType(classif().GetTypeByPath({"highway", "construction"}))
66 {
67 CHECK(m_pedestrianModel, ());
68 CHECK(m_bicycleModel, ());
69 CHECK(m_carModel, ());
70 }
71
72 VehicleMask CalcRoadMask(FeatureType & f) const
73 {

Callers

nothing calls this directly

Calls 5

BicycleModelFactoryClass · 0.85
CarModelFactoryClass · 0.85
GetTypeByPathMethod · 0.80

Tested by

no test coverage detected