summaryrefslogtreecommitdiffstats
path: root/src/server/BlockImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-23 19:06:25 +0200
committerDavid Robillard <d@drobilla.net>2018-09-23 19:06:25 +0200
commit04b4d70f38402b1e4e4751157f42eb558bd60f9c (patch)
tree7046ce56d1fb498f5e8720c5fb59ae9895fecb39 /src/server/BlockImpl.hpp
parent394b01da8e26dbe1b6a0520944d954ca0b16b1b5 (diff)
downloadingen-04b4d70f38402b1e4e4751157f42eb558bd60f9c.tar.gz
ingen-04b4d70f38402b1e4e4751157f42eb558bd60f9c.tar.bz2
ingen-04b4d70f38402b1e4e4751157f42eb558bd60f9c.zip
Use override specifiers
Diffstat (limited to 'src/server/BlockImpl.hpp')
-rw-r--r--src/server/BlockImpl.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/server/BlockImpl.hpp b/src/server/BlockImpl.hpp
index fe20c1ec..34045b6d 100644
--- a/src/server/BlockImpl.hpp
+++ b/src/server/BlockImpl.hpp
@@ -70,7 +70,7 @@ public:
virtual ~BlockImpl();
- virtual GraphType graph_type() const { return GraphType::BLOCK; }
+ GraphType graph_type() const override { return GraphType::BLOCK; }
/** Activate this Block.
*
@@ -136,7 +136,7 @@ public:
BufferRef buf,
SampleCount offset);
- virtual Node* port(uint32_t index) const;
+ Node* port(uint32_t index) const override;
virtual PortImpl* port_impl(uint32_t index) const { return (*_ports)[index]; }
/** Get a port by symbol. */
@@ -156,13 +156,13 @@ public:
*/
virtual void set_polyphonic(bool p) { _polyphonic = p; }
- virtual bool prepare_poly(BufferFactory& bufs, uint32_t poly);
- virtual bool apply_poly(RunContext& context, uint32_t poly);
+ bool prepare_poly(BufferFactory& bufs, uint32_t poly) override;
+ bool apply_poly(RunContext& context, uint32_t poly) override;
/** Information about the Plugin this Block is an instance of.
* Not the best name - not all blocks come from plugins (ie Graph)
*/
- virtual const Resource* plugin() const;
+ const Resource* plugin() const override;
/** Information about the Plugin this Block is an instance of.
* Not the best name - not all blocks come from plugins (ie Graph)
@@ -177,9 +177,10 @@ public:
uint32_t size);
/** The Graph this Block belongs to. */
- inline GraphImpl* parent_graph() const { return (GraphImpl*)_parent; }
+ GraphImpl* parent_graph() const override { return (GraphImpl*)_parent; }
+
+ uint32_t num_ports() const override { return _ports ? _ports->size() : 0; }
- uint32_t num_ports() const { return _ports ? _ports->size() : 0; }
virtual uint32_t polyphony() const { return _polyphony; }
/** Mark used during graph compilation */