20 #ifndef PULSEVIEW_PV_DATA_DECODE_ROWDATA_HPP 21 #define PULSEVIEW_PV_DATA_DECODE_ROWDATA_HPP 23 #include <unordered_map> 30 #include <libsigrokdecode/libsigrokdecode.h> 35 using std::unordered_map;
37 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) 39 template<>
struct hash<QString> {
40 std::size_t operator()(
const QString& s)
const noexcept {
41 return (
size_t) qHash(s);
58 const Row* row()
const;
60 uint64_t get_max_sample()
const;
62 uint64_t get_annotation_count()
const;
69 void get_annotation_subset(deque<const pv::data::decode::Annotation*> &dest,
70 uint64_t start_sample, uint64_t end_sample)
const;
72 const deque<Annotation>& annotations()
const;
74 const Annotation* emplace_annotation(srd_proto_data *pdata);
87 #endif // PULSEVIEW_PV_DATA_DECODE_ROWDATA_HPP
uint64_t prev_ann_start_sample_
deque< Annotation > annotations_
unordered_map< QString, vector< QString > > ann_texts_