| 202 | } |
| 203 | |
| 204 | void 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 | |
| 226 | void TestIndexGraphTopology::SetVertexAccessConditional(Vertex v, RoadAccess::Type type, string const & condition) |
| 227 | { |