MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / changedSince

Method changedSince

app/src/DataModel/DataTable.cpp:283–295  ·  view source on GitHub ↗

* @brief Returns true if any of the given storage slots was written after sinceClock. */

Source from the content-addressed store, hash-verified

281 * @brief Returns true if any of the given storage slots was written after sinceClock.
282 */
283bool 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.

Callers 2

applyDatasetValueMethod · 0.80
applyDatasetValueSpanMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected