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

Method FindParentChannelGroup

lib/mdflib/mdflib/src/dg4block.cpp:770–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770IChannelGroup* Dg4Block::FindParentChannelGroup(const IChannel&
771 channel) const {
772 const auto channel_index = channel.Index();
773 const auto &cg_list = Cg4();
774 const auto itr = std::find_if(cg_list.cbegin(), cg_list.cend(),
775 [&](const auto &cg_block) {
776 return cg_block && cg_block->Find(channel_index) != nullptr;
777 });
778 return itr != cg_list.cend() ? itr->get() : nullptr;
779}
780
781void Dg4Block::ClearData() {
782 DataListBlock::ClearData();

Callers

nothing calls this directly

Calls 5

cbeginMethod · 0.80
cendMethod · 0.80
IndexMethod · 0.45
FindMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected