X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Frowdata.hpp;h=0012acd4523ecfc7339a5a30809ab78de2ddef57;hp=07cc41bf3eb1f8febf04c06595d8da2f142eb7da;hb=81dc02212c05c99554194a15f9b584e6b500cda9;hpb=1becee23bdd2b44145b753edd05bf01f7fb0707e diff --git a/pv/data/decode/rowdata.hpp b/pv/data/decode/rowdata.hpp index 07cc41bf..0012acd4 100644 --- a/pv/data/decode/rowdata.hpp +++ b/pv/data/decode/rowdata.hpp @@ -24,7 +24,7 @@ #include -#include "annotation.hpp" +#include using std::vector; @@ -32,16 +32,22 @@ namespace pv { namespace data { namespace decode { +class Row; + class RowData { public: - RowData() = default; + RowData(Row* row); public: uint64_t get_max_sample() const; + uint64_t get_annotation_count() const; + /** - * Extracts sorted annotations between two period into a vector. + * Extracts annotations between the given sample range into a vector. + * Note: The annotations are unsorted and only annotations that fully + * fit into the sample range are considered. */ void get_annotation_subset( vector &dest, @@ -51,6 +57,7 @@ public: private: vector annotations_; + const Row* row_; }; } // namespace decode