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

Method CalcSearchRanks

libs/indexer/rank_table.cpp:181–187  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

179
180// static
181void SearchRankTableBuilder::CalcSearchRanks(FilesContainerR & rcont, vector<uint8_t> & ranks)
182{
183 feature::DataHeader header(rcont);
184 FeaturesVector featuresVector(rcont, header, nullptr, nullptr, nullptr);
185
186 featuresVector.ForEach([&ranks](FeatureType & ft, uint32_t /* index */) { ranks.push_back(CalcSearchRank(ft)); });
187}
188
189// static
190bool SearchRankTableBuilder::CreateIfNotExists(string const & mapPath) noexcept

Callers

nothing calls this directly

Calls 3

CalcSearchRankFunction · 0.85
ForEachMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected