From 172a0119ee0a0bb6d50836c70936907c3eb71c9e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Jun 2006 08:06:14 +0000 Subject: More work on new ports implementation; lots of mass renaming and code removal. git-svn-id: http://svn.drobilla.net/lad/grauph@52 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/InputPort.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/libs/engine/InputPort.h') diff --git a/src/libs/engine/InputPort.h b/src/libs/engine/InputPort.h index 0e5d9d68..79f03329 100644 --- a/src/libs/engine/InputPort.h +++ b/src/libs/engine/InputPort.h @@ -47,12 +47,14 @@ template class InputPort : public PortBase { public: - InputPort(Node* node, const string& name, size_t index, size_t poly, PortInfo* port_info, size_t buffer_size); + InputPort(Node* parent, const string& name, size_t index, size_t poly, DataType type, size_t buffer_size); virtual ~InputPort() {} void add_connection(ListNode*>* const c); ListNode*>* remove_connection(const OutputPort* const src_port); + const List*>& connections() { return m_connections; } + void prepare_buffers(size_t nframes); void tie(OutputPort* const port); @@ -60,6 +62,9 @@ public: bool is_connected() const { return (m_connections.size() > 0); } bool is_connected_to(const OutputPort* const port) const; + bool is_input() const { return true; } + bool is_output() const { return false; } + private: // Prevent copies (Undefined) InputPort(const InputPort& copy); @@ -73,9 +78,9 @@ private: using PortBase::m_is_tied; using PortBase::m_tied_port; using PortBase::m_buffers; - using PortBase::m_poly; - using PortBase::m_index; - using PortBase::m_buffer_size; + using PortBase::_poly; + using PortBase::_index; + using PortBase::_buffer_size; using PortBase::m_fixed_buffers; }; -- cgit v1.2.1