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

Function AddGraph

libs/routing/routing_tests/index_graph_tools.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <typename Graph>
34void AddGraph(ankerl::unordered_dense::map<NumMwmId, unique_ptr<Graph>> & graphs, NumMwmId mwmId,
35 unique_ptr<Graph> graph)
36{
37 auto it = graphs.find(mwmId);
38 CHECK(it == graphs.end(), ("Already contains graph for mwm", mwmId));
39 graphs[mwmId] = std::move(graph);
40}
41
42// RestrictionTest ---------------------------------------------------------------------------------
43void RestrictionTest::SetStarter(FakeEnding const & start, FakeEnding const & finish)

Callers 1

AddGraphMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected