/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
generator/check_model.cpp
46 строк
1 KB
Maxim Pimenov
Got rid of the old style std/ includes for several files, mostly in map/ and platform/.
23 сен 2019, 13:25
23 сен 2019, 13:25
bfc0b02
Код
Авторство
О чём код?
#include "generator/check_model.hpp" #include "defines.hpp" #include "indexer/features_vector.hpp" #include "indexer/classificator.hpp" #include "indexer/feature_visibility.hpp" #include "base/logging.hpp" #include <vector> using namespace feature; namespace check_model { void ReadFeatures(std::string const & fName) { Classificator const & c = classif(); FeaturesVectorTest(fName).GetVector().ForEach([&](FeatureType & ft, uint32_t) { TypesHolder types(ft); std::vector<uint32_t> vTypes; for (uint32_t t : types) { CHECK_EQUAL(c.GetTypeForIndex(c.GetIndexForType(t)), t, ()); vTypes.push_back(t); } sort(vTypes.begin(), vTypes.end()); CHECK(unique(vTypes.begin(), vTypes.end()) == vTypes.end(), ()); m2::RectD const r = ft.GetLimitRect(FeatureType::BEST_GEOMETRY); CHECK(r.IsValid(), ()); GeomType const type = ft.GetGeomType(); if (type == GeomType::Line) CHECK_GREATER(ft.GetPointsCount(), 1, ()); IsDrawableLike(vTypes, ft.GetGeomType()); }); LOG(LINFO, ("OK")); } }