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

Method LoadFeature

libs/search/ranker.cpp:421–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419 bool IsSameLoader(FeatureID const & id) const { return (m_loader && m_loader->GetId() == id.m_mwmId); }
420
421 unique_ptr<FeatureType> LoadFeature(FeatureID const & id)
422 {
423 if (!IsSameLoader(id))
424 m_loader = make_unique<FeaturesLoaderGuard>(m_dataSource, id.m_mwmId);
425 return LoadFeatureImpl(id, *m_loader);
426 }
427
428 static unique_ptr<FeatureType> LoadFeatureImpl(FeatureID const & id, FeaturesLoaderGuard & loader)
429 {

Callers

nothing calls this directly

Calls 15

ASSERTFunction · 0.85
GetCenterFunction · 0.85
TranslatedBrandFunction · 0.85
GetReadableAddressFunction · 0.85
GetCountryFileNameMethod · 0.80
GetBestMatchNameMethod · 0.80
SortBySpecMethod · 0.80
GetHouseNumberMethod · 0.80
GetIdMethod · 0.45
IsWorldMethod · 0.45
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected