| 36 | |
| 37 | template <class ToDo> |
| 38 | void ForEach(ToDo && toDo) const |
| 39 | { |
| 40 | uint32_t index = 0; |
| 41 | m_recordReader->ForEachRecord([&](uint32_t pos, std::vector<uint8_t> && data) |
| 42 | { |
| 43 | FeatureType ft(&m_loadInfo, std::move(data)); |
| 44 | |
| 45 | // We can't properly set MwmId here, because FeaturesVector |
| 46 | // works with FileContainerR, not with MwmId/MwmHandle/MwmValue. |
| 47 | // But it's OK to set at least feature's index, because it can |
| 48 | // be used later for Metadata loading. |
| 49 | ft.SetID(FeatureID(MwmSet::MwmId(), index)); |
| 50 | toDo(ft, m_table ? index++ : pos); |
| 51 | }); |
| 52 | } |
| 53 | |
| 54 | template <class ToDo> |
| 55 | static void ForEachOffset(FilesContainerR const & cont, ToDo && toDo) |
nothing calls this directly
no test coverage detected