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

Method ForEachFeatureIDInRect

libs/indexer/data_source.cpp:242–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void DataSource::ForEachFeatureIDInRect(FeatureIdCallback const & f, m2::RectD const & rect, int scale,
243 covering::CoveringMode mode /* = covering::ViewportWithLowLevels */) const
244{
245 auto readFeatureId = [&f](uint32_t index, FeatureSource & src)
246 {
247 if (src.GetFeatureStatus(index) != FeatureStatus::Deleted)
248 f({src.GetMwmId(), index});
249 };
250
251 ReadMWMFunctor readFunctor(*m_factory, readFeatureId);
252 ForEachInIntervals(readFunctor, mode, rect, scale);
253}
254
255void DataSource::ForEachInRect(FeatureCallback const & f, m2::RectD const & rect, int scale) const
256{

Callers 3

EmitWithMetadataMethod · 0.80
UpdateMethod · 0.80
ForEachFeatureIDMethod · 0.80

Calls 2

GetFeatureStatusMethod · 0.45
GetMwmIdMethod · 0.45

Tested by

no test coverage detected