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

Method Add

libs/routing/routing_options.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void RoutingOptions::Add(RoutingOptions::Road type)
38{
39 if (type == RoutingOptions::Road::Paved)
40 Remove(RoutingOptions::Road::Dirty);
41 else if (type == RoutingOptions::Road::Dirty)
42 Remove(RoutingOptions::Road::Paved);
43 m_options |= static_cast<RoadType>(type);
44}
45
46void RoutingOptions::Remove(RoutingOptions::Road type)
47{

Callers 6

LoadMethod · 0.45
UNIT_CLASS_TESTFunction · 0.45
CheckSpeedWithParamsFunction · 0.45
CheckOneWayFunction · 0.45
CheckPassThroughAllowedFunction · 0.45
UNIT_CLASS_TESTFunction · 0.45

Calls

no outgoing calls

Tested by 5

UNIT_CLASS_TESTFunction · 0.36
CheckSpeedWithParamsFunction · 0.36
CheckOneWayFunction · 0.36
CheckPassThroughAllowedFunction · 0.36
UNIT_CLASS_TESTFunction · 0.36