X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Frowdata.cpp;h=d3d14f9bd56fb7d2b3c275f5185775ca12dceab8;hb=c6b4e925a8c5d855a70ab2815e8bc1c371d5801a;hp=02859b2790a5b10f7979653ccc1ff41f8000e84c;hpb=870ea3dbf35b182e120c5d84ab89bf9cb7691232;p=pulseview.git diff --git a/pv/data/decode/rowdata.cpp b/pv/data/decode/rowdata.cpp index 02859b27..d3d14f9b 100644 --- a/pv/data/decode/rowdata.cpp +++ b/pv/data/decode/rowdata.cpp @@ -32,6 +32,11 @@ uint64_t RowData::get_max_sample() const return annotations_.back().end_sample(); } +uint64_t RowData::get_annotation_count() const +{ + return annotations_.size(); +} + void RowData::get_annotation_subset( vector &dest, uint64_t start_sample, uint64_t end_sample) const @@ -42,9 +47,9 @@ void RowData::get_annotation_subset( dest.push_back(annotation); } -void RowData::push_annotation(const Annotation &a) +void RowData::emplace_annotation(srd_proto_data *pdata, const Row *row) { - annotations_.push_back(a); + annotations_.emplace_back(pdata, row); } } // namespace decode