MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / candidatesHaveComponent

Function candidatesHaveComponent

include/engine/phantom_node.hpp:259–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259inline bool candidatesHaveComponent(const PhantomNodeCandidates &candidates, uint32_t component_id)
260{
261 return std::any_of(candidates.begin(),
262 candidates.end(),
263 [component_id](const PhantomNode &node)
264 { return node.component.id == component_id; });
265}
266
267struct PhantomEndpoints
268{

Callers 2

HandleRequestMethod · 0.85
SnapPhantomNodesMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected