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

Method SetEdgeAccess

libs/routing/routing_tests/index_graph_tools.cpp:175–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void TestIndexGraphTopology::SetEdgeAccess(Vertex from, Vertex to, RoadAccess::Type type)
176{
177 for (auto & r : m_edgeRequests)
178 {
179 if (r.m_from == from && r.m_to == to)
180 {
181 r.m_accessType = type;
182 return;
183 }
184 }
185 CHECK(false, ("Cannot set access for edge that is not in the graph", from, to));
186}
187
188void TestIndexGraphTopology::SetEdgeAccessConditional(Vertex from, Vertex to, RoadAccess::Type type,
189 string const & condition)

Callers 1

UNIT_TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.64