Mercurial > hg > piper-cpp
comparison vamp-support/AssignedPluginHandleMapper.h @ 280:4b581a498981
Use override throughout
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 26 Nov 2018 13:39:01 +0000 |
parents | 427c4c725085 |
children |
comparison
equal
deleted
inserted
replaced
279:b7eec400cd94 | 280:4b581a498981 |
---|---|
80 | 80 |
81 bool havePlugin(Vamp::Plugin *p) { | 81 bool havePlugin(Vamp::Plugin *p) { |
82 return (m_rplugins.find(p) != m_rplugins.end()); | 82 return (m_rplugins.find(p) != m_rplugins.end()); |
83 } | 83 } |
84 | 84 |
85 Handle pluginToHandle(Vamp::Plugin *p) const noexcept { | 85 Handle pluginToHandle(Vamp::Plugin *p) const noexcept override { |
86 if (m_rplugins.find(p) == m_rplugins.end()) { | 86 if (m_rplugins.find(p) == m_rplugins.end()) { |
87 return INVALID_HANDLE; | 87 return INVALID_HANDLE; |
88 } | 88 } |
89 return m_rplugins.at(p); | 89 return m_rplugins.at(p); |
90 } | 90 } |
91 | 91 |
92 Vamp::Plugin *handleToPlugin(Handle h) const noexcept { | 92 Vamp::Plugin *handleToPlugin(Handle h) const noexcept override { |
93 if (m_plugins.find(h) == m_plugins.end()) { | 93 if (m_plugins.find(h) == m_plugins.end()) { |
94 return nullptr; | 94 return nullptr; |
95 } | 95 } |
96 return m_plugins.at(h); | 96 return m_plugins.at(h); |
97 } | 97 } |
98 | 98 |
99 const std::shared_ptr<PluginOutputIdMapper> pluginToOutputIdMapper | 99 const std::shared_ptr<PluginOutputIdMapper> pluginToOutputIdMapper |
100 (Vamp::Plugin *p) const noexcept { | 100 (Vamp::Plugin *p) const noexcept override { |
101 return handleToOutputIdMapper(pluginToHandle(p)); | 101 return handleToOutputIdMapper(pluginToHandle(p)); |
102 } | 102 } |
103 | 103 |
104 const std::shared_ptr<PluginOutputIdMapper> handleToOutputIdMapper | 104 const std::shared_ptr<PluginOutputIdMapper> handleToOutputIdMapper |
105 (Handle h) const noexcept { | 105 (Handle h) const noexcept override { |
106 if (h != INVALID_HANDLE && | 106 if (h != INVALID_HANDLE && |
107 m_outputMappers.find(h) != m_outputMappers.end()) { | 107 m_outputMappers.find(h) != m_outputMappers.end()) { |
108 return m_outputMappers.at(h); | 108 return m_outputMappers.at(h); |
109 } else { | 109 } else { |
110 return {}; | 110 return {}; |