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

Function GetWorldContext

libs/search/geocoder.cpp:301–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301unique_ptr<MwmContext> GetWorldContext(DataSource const & dataSource)
302{
303 vector<shared_ptr<MwmInfo>> infos;
304 dataSource.GetMwmsInfo(infos);
305 MwmSet::MwmHandle handle = indexer::FindWorld(dataSource, infos);
306 if (handle.IsAlive())
307 return make_unique<MwmContext>(std::move(handle));
308 return {};
309}
310
311#define TRACE(branch) \
312 m_resultTracer.CallMethod(ResultTracer::Branch::branch); \

Callers 2

CacheWorldLocalitiesMethod · 0.85
WithPostcodesMethod · 0.85

Calls 3

FindWorldFunction · 0.85
GetMwmsInfoMethod · 0.80
IsAliveMethod · 0.45

Tested by

no test coverage detected