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

Function NoTrunk

libs/routing_common/pedestrian_model.cpp:103–111  ·  view source on GitHub ↗

Same as defaults except trunk and trunk link are not allowed.

Source from the content-addressed store, hash-verified

101
102// Same as defaults except trunk and trunk link are not allowed.
103VehicleModel::LimitsInitList NoTrunk()
104{
105 VehicleModel::LimitsInitList res;
106 res.reserve(kDefaultOptions.size() - 2);
107 for (auto const & e : kDefaultOptions)
108 if (e.m_type != HighwayType::HighwayTrunk && e.m_type != HighwayType::HighwayTrunkLink)
109 res.push_back(e);
110 return res;
111}
112
113VehicleModel::LimitsInitList YesCycleway(VehicleModel::LimitsInitList res = kDefaultOptions)
114{

Callers 1

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected