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

Method LoadFeatureImpl

libs/search/ranker.cpp:428–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 }
427
428 static unique_ptr<FeatureType> LoadFeatureImpl(FeatureID const & id, FeaturesLoaderGuard & loader)
429 {
430 auto ft = loader.GetFeatureByIndex(id.m_index);
431 if (ft)
432 {
433 ASSERT(id.IsValid(), ());
434 ft->SetID(id);
435 }
436 return ft;
437 }
438
439 bool GetExactAddress(FeatureType & ft, m2::PointD const & center, ReverseGeocoder::Address & addr) const
440 {

Callers

nothing calls this directly

Calls 4

ASSERTFunction · 0.85
GetFeatureByIndexMethod · 0.45
IsValidMethod · 0.45
SetIDMethod · 0.45

Tested by

no test coverage detected