Mercurial > hg > svcore
comparison data/model/AggregateWaveModel.h @ 1580:c01cbe41aeb5 fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:48:45 +0000 |
parents | 1a572937ed8c |
children | ad5f892c0c4d |
comparison
equal
deleted
inserted
replaced
1579:232d6ddf257d | 1580:c01cbe41aeb5 |
---|---|
37 typedef std::vector<ModelChannelSpec> ChannelSpecList; | 37 typedef std::vector<ModelChannelSpec> ChannelSpecList; |
38 | 38 |
39 AggregateWaveModel(ChannelSpecList channelSpecs); | 39 AggregateWaveModel(ChannelSpecList channelSpecs); |
40 ~AggregateWaveModel(); | 40 ~AggregateWaveModel(); |
41 | 41 |
42 bool isOK() const; | 42 bool isOK() const override; |
43 bool isReady(int *) const; | 43 bool isReady(int *) const override; |
44 | 44 |
45 QString getTypeName() const { return tr("Aggregate Wave"); } | 45 QString getTypeName() const override { return tr("Aggregate Wave"); } |
46 | 46 |
47 int getComponentCount() const; | 47 int getComponentCount() const; |
48 ModelChannelSpec getComponent(int c) const; | 48 ModelChannelSpec getComponent(int c) const; |
49 | 49 |
50 const ZoomConstraint *getZoomConstraint() const { return &m_zoomConstraint; } | 50 const ZoomConstraint *getZoomConstraint() const override { return &m_zoomConstraint; } |
51 | 51 |
52 sv_frame_t getFrameCount() const; | 52 sv_frame_t getFrameCount() const; |
53 int getChannelCount() const; | 53 int getChannelCount() const override; |
54 sv_samplerate_t getSampleRate() const; | 54 sv_samplerate_t getSampleRate() const override; |
55 | 55 |
56 float getValueMinimum() const { return -1.0f; } | 56 float getValueMinimum() const override { return -1.0f; } |
57 float getValueMaximum() const { return 1.0f; } | 57 float getValueMaximum() const override { return 1.0f; } |
58 | 58 |
59 virtual sv_frame_t getStartFrame() const { return 0; } | 59 sv_frame_t getStartFrame() const override { return 0; } |
60 virtual sv_frame_t getEndFrame() const { return getFrameCount(); } | 60 sv_frame_t getEndFrame() const override { return getFrameCount(); } |
61 | 61 |
62 virtual floatvec_t getData(int channel, sv_frame_t start, sv_frame_t count) const; | 62 floatvec_t getData(int channel, sv_frame_t start, sv_frame_t count) const override; |
63 | 63 |
64 virtual std::vector<floatvec_t> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const; | 64 std::vector<floatvec_t> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const override; |
65 | 65 |
66 virtual int getSummaryBlockSize(int desired) const; | 66 int getSummaryBlockSize(int desired) const override; |
67 | 67 |
68 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count, | 68 void getSummaries(int channel, sv_frame_t start, sv_frame_t count, |
69 RangeBlock &ranges, | 69 RangeBlock &ranges, |
70 int &blockSize) const; | 70 int &blockSize) const override; |
71 | 71 |
72 virtual Range getSummary(int channel, sv_frame_t start, sv_frame_t count) const; | 72 Range getSummary(int channel, sv_frame_t start, sv_frame_t count) const override; |
73 | 73 |
74 virtual void toXml(QTextStream &out, | 74 void toXml(QTextStream &out, |
75 QString indent = "", | 75 QString indent = "", |
76 QString extraAttributes = "") const; | 76 QString extraAttributes = "") const override; |
77 | 77 |
78 signals: | 78 signals: |
79 void modelChanged(); | 79 void modelChanged(); |
80 void modelChangedWithin(sv_frame_t, sv_frame_t); | 80 void modelChangedWithin(sv_frame_t, sv_frame_t); |
81 void completionChanged(); | 81 void completionChanged(); |