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

Method Matches

tools/openlr/openlr_decoder.cpp:425–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425bool OpenLRDecoder::SegmentsFilter::Matches(LinearSegment const & segment) const
426{
427 if (m_multipointsOnly && segment.m_locationReference.m_points.size() == 2)
428 return false;
429 if (m_idsSet && m_ids.count(segment.m_segmentId) == 0)
430 return false;
431 return true;
432}
433
434// OpenLRDecoder -----------------------------------------------------------------------------
435OpenLRDecoder::OpenLRDecoder(vector<FrozenDataSource> & dataSources,

Callers 1

LoadSegmentsFunction · 0.45

Calls 2

sizeMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected