MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / rows_size

Method rows_size

DSView/pv/view/decodetrace.cpp:574–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574int DecodeTrace::rows_size()
575{
576 using pv::data::decode::Decoder;
577 int size = 0;
578
579 for(auto dec : _decoder_stack->stack()) {
580 if (dec->shown()) {
581 auto rows = _decoder_stack->get_rows_gshow();
582
583 for (auto i = rows.begin(); i != rows.end(); i++) {
584 pv::data::decode::Row _row = (*i).first;
585 if (_row.decoder() == dec->decoder() &&
586 _decoder_stack->has_annotations((*i).first) &&
587 (*i).second)
588 size++;
589 }
590 }
591 else {
592 size++;
593 }
594 }
595 return size == 0 ? 1 : size;
596}
597
598void DecodeTrace::paint_type_options(QPainter &p, int right, const QPoint pt, QColor fore)
599{

Callers

nothing calls this directly

Calls 5

shownMethod · 0.80
get_rows_gshowMethod · 0.80
has_annotationsMethod · 0.80
endMethod · 0.45
decoderMethod · 0.45

Tested by

no test coverage detected