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

Function IsDeadEndCached

libs/routing/index_router.cpp:185–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185bool IsDeadEndCached(Segment const & segment, bool isOutgoing, bool useRoutingOptions, WorldGraph & worldGraph,
186 set<Segment> & deadEnds)
187{
188 if (deadEnds.count(segment) != 0)
189 return true;
190
191 set<Segment> visitedSegments;
192 if (IsDeadEnd(segment, isOutgoing, useRoutingOptions, worldGraph, visitedSegments))
193 {
194 deadEnds.insert(visitedSegments.begin(), visitedSegments.end());
195 return true;
196 }
197
198 return false;
199}
200} // namespace
201
202// IndexRouter::BestEdgeComparator ----------------------------------------------------------------

Callers 3

FillDeadEndsCacheMethod · 0.85
EraseIfDeadEndMethod · 0.85
FindBestEdgesMethod · 0.85

Calls 5

IsDeadEndFunction · 0.85
countMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected