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

Method SetVertexAccess

libs/routing/routing_tests/index_graph_tools.cpp:204–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void TestIndexGraphTopology::SetVertexAccess(Vertex v, RoadAccess::Type type)
205{
206 bool found = false;
207 for (auto & r : m_edgeRequests)
208 {
209 if (r.m_from == v)
210 {
211 r.m_fromAccessType = type;
212 found = true;
213 }
214 else if (r.m_to == v)
215 {
216 r.m_toAccessType = type;
217 found = true;
218 }
219
220 if (found)
221 break;
222 }
223 CHECK(found, ("Cannot set access for vertex that is not in the graph", v));
224}
225
226void TestIndexGraphTopology::SetVertexAccessConditional(Vertex v, RoadAccess::Type type, string const & condition)
227{

Callers 1

UNIT_TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.64