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

Function AddFeatureNameIndexPairs

generator/search_index_builder.cpp:371–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369
370template <class ContT>
371void AddFeatureNameIndexPairs(FeaturesVectorTest const & features, CategoriesHolder const & categoriesHolder,
372 ContT & keyValuePairs)
373{
374 feature::DataHeader const & header = features.GetHeader();
375
376 std::unique_ptr<SynonymsHolder> synonyms;
377 if (header.GetType() == feature::DataHeader::MapType::World)
378 synonyms = std::make_unique<SynonymsHolder>();
379
380 features.GetVector().ForEach(
381 FeatureInserter(synonyms.get(), keyValuePairs, categoriesHolder, header.GetScaleRange()));
382}
383
384void ReadAddressData(std::string const & filename, std::vector<feature::AddressData> & addrs)
385{

Callers 1

BuildSearchIndexFunction · 0.85

Calls 6

FeatureInserterClass · 0.85
GetHeaderMethod · 0.80
getMethod · 0.65
GetTypeMethod · 0.45
ForEachMethod · 0.45
GetScaleRangeMethod · 0.45

Tested by

no test coverage detected