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

Method IsTrivial

src/extractor/compressed_edge_container.cpp:361–365  ·  view source on GitHub ↗

Since all edges are technically in the compressed geometry container, regardless of whether a compressed edge actually contains multiple original segments, we use 'Trivial' here to describe compressed edges that only contain one original segment

Source from the content-addressed store, hash-verified

359// original segments, we use 'Trivial' here to describe compressed edges
360// that only contain one original segment
361bool CompressedEdgeContainer::IsTrivial(const EdgeID edge_id) const
362{
363 const auto &bucket = GetBucketReference(edge_id);
364 return bucket.size() == 1;
365}
366
367NodeID CompressedEdgeContainer::GetFirstEdgeTargetID(const EdgeID edge_id) const
368{

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected