X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.hpp;h=1bb9ad34c046a215321d6e276b3ddea6bb453106;hb=e094bcb296efa6066b546c580b398acb37b7efc1;hp=8b91c4f47e066605e307ed0301fbd1871d59436d;hpb=5a914348e8c95f92fd7c1c5988d563c5fb472aa2;p=pulseview.git diff --git a/pv/data/decode/annotation.hpp b/pv/data/decode/annotation.hpp index 8b91c4f4..1bb9ad34 100644 --- a/pv/data/decode/annotation.hpp +++ b/pv/data/decode/annotation.hpp @@ -42,11 +42,14 @@ public: public: Annotation(const srd_proto_data *const pdata, const Row *row); + Annotation(Annotation&& a); + Annotation& operator=(Annotation&& a); + ~Annotation(); uint64_t start_sample() const; uint64_t end_sample() const; - Class ann_class() const; - const vector& annotations() const; + Class ann_class_id() const; + const vector* annotations() const; const Row* row() const; bool operator<(const Annotation &other) const; @@ -54,9 +57,9 @@ public: private: uint64_t start_sample_; uint64_t end_sample_; - Class ann_class_; - vector annotations_; + vector* annotations_; const Row *row_; + Class ann_class_id_; }; } // namespace decode