* @brief Returns true if any of the given storage slots was written after sinceClock. */
| 281 | * @brief Returns true if any of the given storage slots was written after sinceClock. |
| 282 | */ |
| 283 | bool DataModel::DataTableStore::changedSince(const std::vector<int>& slotList, |
| 284 | quint64 sinceClock) const |
| 285 | { |
| 286 | for (const int slot : slotList) { |
| 287 | if (slot < 0 || slot >= static_cast<int>(m_version.size())) [[unlikely]] |
| 288 | continue; |
| 289 | |
| 290 | if (m_version[static_cast<size_t>(slot)] > sinceClock) |
| 291 | return true; |
| 292 | } |
| 293 | |
| 294 | return false; |
| 295 | } |
| 296 | |
| 297 | /** |
| 298 | * @brief Records a read of @p slot into the active capture target, deduped; inert when off. |
no test coverage detected