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

Function ExpandFakes

tools/openlr/openlr_decoder.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void ExpandFakes(DataSource const & dataSource, Graph & g, Graph::EdgeVector & path)
159{
160 ASSERT(!path.empty(), ());
161
162 ExpandFake(path, std::begin(path), dataSource, g);
163 if (path.empty())
164 return;
165 ExpandFake(path, std::end(path) - 1, dataSource, g);
166}
167
168// Returns an iterator pointing to the first edge that should not be cut off.
169// Offsets denote a distance in meters one should travel from the start/end of the path

Callers 1

DecodeSegmentMethod · 0.85

Calls 5

ASSERTFunction · 0.85
ExpandFakeFunction · 0.85
beginFunction · 0.50
endFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected