]> sigrok.org Git - pulseview.git/blobdiff - pv/data/logic.hpp
Fix random clazy warnings
[pulseview.git] / pv / data / logic.hpp
index e7f7a055da3db150f12f8365edf16af3b7aec59c..e0fb7dd14dd05dab2dc93451d999350f0d6dd60f 100644 (file)
 
 #include <QObject>
 
+using std::deque;
+using std::shared_ptr;
+using std::vector;
+
 namespace pv {
 namespace data {
 
 class LogicSegment;
 
-class Logic : public QObject, public SignalData
+class Logic : public SignalData
 {
        Q_OBJECT
 
@@ -40,16 +44,18 @@ public:
 
        unsigned int num_channels() const;
 
-       void push_segment(
-               std::shared_ptr<LogicSegment> &segment);
+       void push_segment(shared_ptr<LogicSegment> &segment);
+
+       const deque< shared_ptr<LogicSegment> >& logic_segments() const;
 
-       const std::deque< std::shared_ptr<LogicSegment> >&
-               logic_segments() const;
+       vector< shared_ptr<Segment> > segments() const;
 
-       std::vector< std::shared_ptr<Segment> > segments() const;
+       uint32_t get_segment_count() const;
 
        void clear();
 
+       double get_samplerate() const;
+
        uint64_t max_sample_count() const;
 
        void notify_samples_added(QObject* segment, uint64_t start_sample,
@@ -63,7 +69,7 @@ Q_SIGNALS:
 
 private:
        const unsigned int num_channels_;
-       std::deque< std::shared_ptr<LogicSegment> > segments_;
+       deque< shared_ptr<LogicSegment> > segments_;
 };
 
 } // namespace data