X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Frowdata.cpp;h=d3d14f9bd56fb7d2b3c275f5185775ca12dceab8;hb=8400211329afbb76fb71dfd969b1149e5a6d2ff4;hp=af1fc449ac35924dac9796c7f14f0ca37f49f137;hpb=8b2eb22ed4f467f5364e8e9824a12137e2433b7e;p=pulseview.git diff --git a/pv/data/decode/rowdata.cpp b/pv/data/decode/rowdata.cpp index af1fc449..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,11 +47,11 @@ 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); } -} // decode -} // data -} // pv +} // namespace decode +} // namespace data +} // namespace pv