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

Method Reference

lib/mdflib/mdflib/src/cc4block.cpp:548–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548void Cc4Block::Reference(uint16_t index, const std::string& text) {
549 while (index >= ref_list_.size()) {
550 auto temp = std::make_unique<Tx4Block>();
551 ref_list_.emplace_back(std::move(temp));
552 }
553 auto* tx4 = dynamic_cast<Tx4Block*>(ref_list_.back().get());
554 if (tx4 != nullptr) {
555 tx4->Text(text);
556 }
557}
558
559std::string Cc4Block::Reference(uint16_t index) const {
560 const auto* block = index < ref_list_.size() ?

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
getMethod · 0.45
TextMethod · 0.45
BlockTypeMethod · 0.45

Tested by

no test coverage detected