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

Method GetOriginalFeature

libs/indexer/feature_source.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39std::unique_ptr<FeatureType> FeatureSource::GetOriginalFeature(uint32_t index) const
40{
41 ASSERT(m_handle.IsAlive(), ());
42 ASSERT(m_vector, ());
43 auto ft = m_vector->GetByIndex(index);
44 ft->SetID({GetMwmId(), index});
45 return ft;
46}
47
48FeatureStatus FeatureSource::GetFeatureStatus(uint32_t index) const
49{

Callers 5

ReadFeatureTypeMethod · 0.80
ReadFeaturesMethod · 0.80
LoadMethod · 0.80
GetFeatureMethod · 0.80

Calls 4

ASSERTFunction · 0.85
IsAliveMethod · 0.45
GetByIndexMethod · 0.45
SetIDMethod · 0.45

Tested by

no test coverage detected