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

Function liveTopicTimeRange

pj_scene_common/src/scene_layer.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace PJ {
7
8PJ::Range<PJ::Timepoint> liveTopicTimeRange(const ObjectStore* store, ObjectTopicId topic_id) {
9 if (store == nullptr || store->entryCount(topic_id) == 0) {
10 return {PJ::Timepoint::max(), PJ::Timepoint::min()}; // inverted: empty
11 }
12 const auto [lo, hi] = store->timeRange(topic_id);
13 return {PJ::fromRaw(lo), PJ::fromRaw(hi)};
14}
15
16ISceneLayer::ISceneLayer(QObject* parent) : QObject(parent) {}
17

Callers 8

timeRangeMethod · 0.85
timeRangeMethod · 0.85
timeRangeMethod · 0.85
timeRangeMethod · 0.85
timeRangeMethod · 0.85
timeRangeMethod · 0.85
timeRangeMethod · 0.85
timeRangeMethod · 0.85

Calls 2

entryCountMethod · 0.80
timeRangeMethod · 0.45

Tested by 1

timeRangeMethod · 0.68