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

Method GetByIndex

libs/indexer/features_vector.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::unique_ptr<FeatureType> FeaturesVector::GetByIndex(uint32_t index) const
36{
37 auto const ftOffset = m_table ? m_table->GetFeatureOffset(index) : index;
38 return std::make_unique<FeatureType>(&m_loadInfo, m_recordReader->ReadRecord(ftOffset));
39}
40
41size_t FeaturesVector::GetNumFeatures() const
42{

Callers 3

GetRoadInfoMethod · 0.45
GetOriginalFeatureMethod · 0.45
LoadMethod · 0.45

Calls 2

GetFeatureOffsetMethod · 0.80
ReadRecordMethod · 0.80

Tested by

no test coverage detected