| 145 | } |
| 146 | |
| 147 | std::unique_ptr<FeatureType> FeaturesLoaderGuard::GetFeatureByIndex(uint32_t index) const |
| 148 | { |
| 149 | ASSERT(m_handle.IsAlive(), ()); |
| 150 | ASSERT_NOT_EQUAL(FeatureStatus::Deleted, m_source->GetFeatureStatus(index), |
| 151 | ("Deleted feature was cached. It should not be here. Please review your code.")); |
| 152 | |
| 153 | auto ft = m_source->GetModifiedFeature(index); |
| 154 | if (ft) |
| 155 | return ft; |
| 156 | |
| 157 | return GetOriginalFeatureByIndex(index); |
| 158 | } |
| 159 | |
| 160 | std::unique_ptr<FeatureType> FeaturesLoaderGuard::GetOriginalFeatureByIndex(uint32_t index) const |
| 161 | { |