summaryrefslogtreecommitdiffstats
path: root/src/server/events/Disconnect.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-12-13 17:51:55 -0500
committerDavid Robillard <d@drobilla.net>2016-12-13 19:15:29 -0500
commitad43d2e08cea225635b56c5473a768bc853ecda3 (patch)
tree472a8c6dc605ba63903206a14549e8340efcf137 /src/server/events/Disconnect.hpp
parent0752556bde5659a933744658cdf63509000a5080 (diff)
downloadingen-ad43d2e08cea225635b56c5473a768bc853ecda3.tar.gz
ingen-ad43d2e08cea225635b56c5473a768bc853ecda3.tar.bz2
ingen-ad43d2e08cea225635b56c5473a768bc853ecda3.zip
Remove virtual inheritance from Port hierarchy
This was confusing stoat, and is questionable design anyway. The OutputPort functionality has been moved to PortImpl, which is a basic port with buffers suitable for use as an output, and is overridden by InputPort and DuplexPort where necessary.
Diffstat (limited to 'src/server/events/Disconnect.hpp')
-rw-r--r--src/server/events/Disconnect.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/server/events/Disconnect.hpp b/src/server/events/Disconnect.hpp
index 19ffcf3b..fa16f01f 100644
--- a/src/server/events/Disconnect.hpp
+++ b/src/server/events/Disconnect.hpp
@@ -33,7 +33,6 @@ namespace Server {
class CompiledGraph;
class InputPort;
-class OutputPort;
class PortImpl;
namespace Events {
@@ -61,19 +60,19 @@ public:
class Impl {
public:
- Impl(Engine& e,
- GraphImpl* graph,
- OutputPort* t,
- InputPort* h);
+ Impl(Engine& e,
+ GraphImpl* graph,
+ PortImpl* t,
+ InputPort* h);
bool execute(RunContext& context, bool set_head_buffers);
- inline OutputPort* tail() { return _tail; }
- inline InputPort* head() { return _head; }
+ inline PortImpl* tail() { return _tail; }
+ inline InputPort* head() { return _head; }
private:
Engine& _engine;
- OutputPort* _tail;
+ PortImpl* _tail;
InputPort* _head;
SPtr<ArcImpl> _arc;
Raul::Array<PortImpl::Voice>* _voices;