Mercurial > hg > piper-cpp
comparison vamp-client/qt/PiperAutoPlugin.h @ 280:4b581a498981
Use override throughout
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 26 Nov 2018 13:39:01 +0000 |
parents | 3db4c7998faf |
children |
comparison
equal
deleted
inserted
replaced
279:b7eec400cd94 | 280:4b581a498981 |
---|---|
115 | 115 |
116 bool isOK() const { | 116 bool isOK() const { |
117 return (m_plugin != nullptr); | 117 return (m_plugin != nullptr); |
118 } | 118 } |
119 | 119 |
120 virtual std::string getIdentifier() const { | 120 std::string getIdentifier() const override { |
121 return getPlugin()->getIdentifier(); | 121 return getPlugin()->getIdentifier(); |
122 } | 122 } |
123 | 123 |
124 virtual std::string getName() const { | 124 std::string getName() const override { |
125 return getPlugin()->getName(); | 125 return getPlugin()->getName(); |
126 } | 126 } |
127 | 127 |
128 virtual std::string getDescription() const { | 128 std::string getDescription() const override { |
129 return getPlugin()->getDescription(); | 129 return getPlugin()->getDescription(); |
130 } | 130 } |
131 | 131 |
132 virtual std::string getMaker() const { | 132 std::string getMaker() const override { |
133 return getPlugin()->getMaker(); | 133 return getPlugin()->getMaker(); |
134 } | 134 } |
135 | 135 |
136 virtual std::string getCopyright() const { | 136 std::string getCopyright() const override { |
137 return getPlugin()->getCopyright(); | 137 return getPlugin()->getCopyright(); |
138 } | 138 } |
139 | 139 |
140 virtual int getPluginVersion() const { | 140 int getPluginVersion() const override { |
141 return getPlugin()->getPluginVersion(); | 141 return getPlugin()->getPluginVersion(); |
142 } | 142 } |
143 | 143 |
144 virtual ParameterList getParameterDescriptors() const { | 144 ParameterList getParameterDescriptors() const override { |
145 return getPlugin()->getParameterDescriptors(); | 145 return getPlugin()->getParameterDescriptors(); |
146 } | 146 } |
147 | 147 |
148 virtual float getParameter(std::string name) const { | 148 float getParameter(std::string name) const override { |
149 return getPlugin()->getParameter(name); | 149 return getPlugin()->getParameter(name); |
150 } | 150 } |
151 | 151 |
152 virtual void setParameter(std::string name, float value) { | 152 void setParameter(std::string name, float value) override { |
153 getPlugin()->setParameter(name, value); | 153 getPlugin()->setParameter(name, value); |
154 } | 154 } |
155 | 155 |
156 virtual ProgramList getPrograms() const { | 156 ProgramList getPrograms() const override { |
157 return getPlugin()->getPrograms(); | 157 return getPlugin()->getPrograms(); |
158 } | 158 } |
159 | 159 |
160 virtual std::string getCurrentProgram() const { | 160 std::string getCurrentProgram() const override { |
161 return getPlugin()->getCurrentProgram(); | 161 return getPlugin()->getCurrentProgram(); |
162 } | 162 } |
163 | 163 |
164 virtual void selectProgram(std::string program) { | 164 void selectProgram(std::string program) override { |
165 getPlugin()->selectProgram(program); | 165 getPlugin()->selectProgram(program); |
166 } | 166 } |
167 | 167 |
168 virtual bool initialise(size_t inputChannels, | 168 bool initialise(size_t inputChannels, |
169 size_t stepSize, | 169 size_t stepSize, |
170 size_t blockSize) { | 170 size_t blockSize) override { |
171 return getPlugin()->initialise(inputChannels, stepSize, blockSize); | 171 return getPlugin()->initialise(inputChannels, stepSize, blockSize); |
172 } | 172 } |
173 | 173 |
174 virtual void reset() { | 174 void reset() override { |
175 getPlugin()->reset(); | 175 getPlugin()->reset(); |
176 } | 176 } |
177 | 177 |
178 virtual InputDomain getInputDomain() const { | 178 InputDomain getInputDomain() const override { |
179 return getPlugin()->getInputDomain(); | 179 return getPlugin()->getInputDomain(); |
180 } | 180 } |
181 | 181 |
182 virtual size_t getPreferredBlockSize() const { | 182 size_t getPreferredBlockSize() const override { |
183 return getPlugin()->getPreferredBlockSize(); | 183 return getPlugin()->getPreferredBlockSize(); |
184 } | 184 } |
185 | 185 |
186 virtual size_t getPreferredStepSize() const { | 186 size_t getPreferredStepSize() const override { |
187 return getPlugin()->getPreferredStepSize(); | 187 return getPlugin()->getPreferredStepSize(); |
188 } | 188 } |
189 | 189 |
190 virtual size_t getMinChannelCount() const { | 190 size_t getMinChannelCount() const override { |
191 return getPlugin()->getMinChannelCount(); | 191 return getPlugin()->getMinChannelCount(); |
192 } | 192 } |
193 | 193 |
194 virtual size_t getMaxChannelCount() const { | 194 size_t getMaxChannelCount() const override { |
195 return getPlugin()->getMaxChannelCount(); | 195 return getPlugin()->getMaxChannelCount(); |
196 } | 196 } |
197 | 197 |
198 virtual OutputList getOutputDescriptors() const { | 198 OutputList getOutputDescriptors() const override { |
199 return getPlugin()->getOutputDescriptors(); | 199 return getPlugin()->getOutputDescriptors(); |
200 } | 200 } |
201 | 201 |
202 virtual FeatureSet process(const float *const *inputBuffers, | 202 FeatureSet process(const float *const *inputBuffers, |
203 Vamp::RealTime timestamp) { | 203 Vamp::RealTime timestamp) override { |
204 return getPlugin()->process(inputBuffers, timestamp); | 204 return getPlugin()->process(inputBuffers, timestamp); |
205 } | 205 } |
206 | 206 |
207 virtual FeatureSet getRemainingFeatures() { | 207 FeatureSet getRemainingFeatures() override { |
208 return getPlugin()->getRemainingFeatures(); | 208 return getPlugin()->getRemainingFeatures(); |
209 } | 209 } |
210 | 210 |
211 private: | 211 private: |
212 LogCallback *m_logger; | 212 LogCallback *m_logger; |