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

Method IncrementNofSamples

lib/mdflib/mdflib/src/samplequeue.cpp:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void SampleQueue::IncrementNofSamples(uint64_t record_id) const {
158 const auto list = data_group_.ChannelGroups();
159 std::for_each(list.cbegin(), list.cend(), [&](IChannelGroup* group) -> void {
160 if (group != nullptr && group->RecordId() == record_id) {
161 group->IncrementSample(); // Increment internal sample counter
162 group->NofSamples(group->Sample()); // Update block counter
163 }
164 });
165}
166
167void SampleQueue::SaveSample(const IChannelGroup& group, uint64_t time) {
168 SampleRecord sample = group.GetSampleRecord();

Callers

nothing calls this directly

Calls 7

cbeginMethod · 0.80
cendMethod · 0.80
IncrementSampleMethod · 0.80
SampleMethod · 0.80
ChannelGroupsMethod · 0.45
RecordIdMethod · 0.45
NofSamplesMethod · 0.45

Tested by

no test coverage detected