| 2230 | |
| 2231 | |
| 2232 | THashMap<ui32, TString> NCB::MergeCatFeaturesHashToString(const NCB::TObjectsDataProvider& objectsData) { |
| 2233 | THashMap<ui32, TString> result; |
| 2234 | |
| 2235 | for (auto catFeatureIdx : xrange(objectsData.GetFeaturesLayout()->GetCatFeatureCount())) { |
| 2236 | const auto& perFeatureCatFeaturesHashToString |
| 2237 | = objectsData.GetCatFeaturesHashToString(catFeatureIdx); |
| 2238 | for (const auto& [hashedCatValue, catValueString] : perFeatureCatFeaturesHashToString) { |
| 2239 | // TODO(kirillovs): remove this cast, needed only for MSVC 14.12 compiler bug |
| 2240 | result[(ui32)hashedCatValue] = catValueString; |
| 2241 | } |
| 2242 | } |
| 2243 | |
| 2244 | return result; |
| 2245 | } |
nothing calls this directly
no test coverage detected