MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / firstSequentialUID

Method firstSequentialUID

pj_datastore/src/object_store.cpp:244–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244SequentialUID ObjectStore::firstSequentialUID(ObjectTopicId id) const {
245 std::shared_lock store_lock(store_mutex_);
246 const auto* series = findSeries(id);
247 if (series == nullptr) {
248 return {};
249 }
250
251 std::shared_lock lock(series->mutex);
252 if (series->entries.empty()) {
253 return {};
254 }
255 return series->entries.front().sequential_uid;
256}
257
258SequentialUID ObjectStore::nextUIDAfter(ObjectTopicId id, SequentialUID after) const {
259 std::shared_lock store_lock(store_mutex_);

Callers 3

TESTFunction · 0.80
applyEntriesAfterMethod · 0.80
ensureModelStateAtMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by 1

TESTFunction · 0.64