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

Function CalcSearchRank

libs/indexer/rank_table.cpp:150–153  ·  view source on GitHub ↗

Calculates search rank for a feature.

Source from the content-addressed store, hash-verified

148
149// Calculates search rank for a feature.
150uint8_t CalcSearchRank(FeatureType & ft)
151{
152 return feature::PopulationToRank(ftypes::GetPopulation(ft));
153}
154
155// Creates rank table if it does not exists in |rcont| or has wrong
156// endianness. Otherwise (table exists and has correct format) returns null.

Callers 1

CalcSearchRanksMethod · 0.85

Calls 2

PopulationToRankFunction · 0.85
GetPopulationFunction · 0.70

Tested by

no test coverage detected