summaryrefslogtreecommitdiffstats
path: root/src/server/InputPort.cpp
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/InputPort.cpp
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/InputPort.cpp')
-rw-r--r--src/server/InputPort.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 4e1ced3e..61ce0c05 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -1,6 +1,6 @@
/*
This file is part of Ingen.
- Copyright 2007-2015 David Robillard <http://drobilla.net/>
+ Copyright 2007-2016 David Robillard <http://drobilla.net/>
Ingen is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
@@ -27,7 +27,6 @@
#include "Engine.hpp"
#include "GraphImpl.hpp"
#include "InputPort.hpp"
-#include "OutputPort.hpp"
#include "RunContext.hpp"
#include "mix.hpp"
@@ -45,7 +44,7 @@ InputPort::InputPort(BufferFactory& bufs,
LV2_URID buffer_type,
const Atom& value,
size_t buffer_size)
- : PortImpl(bufs, parent, symbol, index, poly, type, buffer_type, value, buffer_size)
+ : PortImpl(bufs, parent, symbol, index, poly, type, buffer_type, value, buffer_size, false)
, _num_arcs(0)
{
const Ingen::URIs& uris = bufs.uris();
@@ -118,7 +117,7 @@ InputPort::add_arc(RunContext& context, ArcImpl* c)
}
ArcImpl*
-InputPort::remove_arc(RunContext& context, const OutputPort* tail)
+InputPort::remove_arc(RunContext& context, const PortImpl* tail)
{
ArcImpl* arc = NULL;
for (Arcs::iterator i = _arcs.begin(); i != _arcs.end(); ++i) {