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

Method NeedToFilter

libs/search/features_filter.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8FeaturesFilter::FeaturesFilter(CBV const & filter, uint64_t threshold) : m_filter(filter), m_threshold(threshold) {}
9
10bool FeaturesFilter::NeedToFilter(CBV const & cbv) const
11{
12 if (cbv.IsFull())
13 return true;
14 return cbv.PopCount() > m_threshold;
15}
16
17// LocalityFilter ----------------------------------------------------------------------------------
18LocalityFilter::LocalityFilter(CBV const & filter) : FeaturesFilter(filter, 0 /* threshold */) {}

Callers 3

FindStreetsFunction · 0.80
MatchPOIsAndBuildingsMethod · 0.80
MatchUnclassifiedMethod · 0.80

Calls 2

IsFullMethod · 0.45
PopCountMethod · 0.45

Tested by

no test coverage detected