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

Method appendTail

pj_datastore/src/data_processor.cpp:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace PJ::proc {
9
10void DataProcessor::appendTail(const std::vector<Sample>& tail, std::vector<Sample>& out) {
11 out.reserve(out.size() + tail.size());
12 for (const Sample& in : tail) {
13 if (std::optional<Sample> result = calculateNextPoint(in)) {
14 out.push_back(std::move(*result));
15 }
16 }
17}
18
19std::vector<Sample> DataProcessor::applyBatch(const std::vector<Sample>& in) {
20 reset();

Callers 1

TESTFunction · 0.80

Calls 2

reserveMethod · 0.80
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64