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

Method GoInViewport

libs/search/geocoder.cpp:415–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void Geocoder::GoInViewport()
416{
417 TRACE(GoInViewport);
418
419 if (m_params.GetNumTokens() == 0)
420 return;
421
422 vector<MwmInfoPtr> infos;
423 m_dataSource.GetMwmsInfo(infos);
424
425 base::EraseIf(infos, [this](MwmInfoPtr const & info) { return !m_params.m_pivot.IsIntersect(info->m_bordersRect); });
426
427 GoImpl(infos, true /* inViewport */);
428}
429
430void Geocoder::Finish(bool cancelled)
431{

Callers 1

SearchMethod · 0.80

Calls 4

EraseIfFunction · 0.85
GetMwmsInfoMethod · 0.80
GetNumTokensMethod · 0.45
IsIntersectMethod · 0.45

Tested by

no test coverage detected