summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/InputPort.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-18 08:06:14 +0000
committerDavid Robillard <d@drobilla.net>2006-06-18 08:06:14 +0000
commit172a0119ee0a0bb6d50836c70936907c3eb71c9e (patch)
treecbcc56285b033bb9857b9be85f5f9be193b6f38f /src/libs/engine/InputPort.h
parente6f42fd640dcbad6b2e39cc85bdf307d197278b0 (diff)
downloadingen-172a0119ee0a0bb6d50836c70936907c3eb71c9e.tar.gz
ingen-172a0119ee0a0bb6d50836c70936907c3eb71c9e.tar.bz2
ingen-172a0119ee0a0bb6d50836c70936907c3eb71c9e.zip
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
Diffstat (limited to 'src/libs/engine/InputPort.h')
-rw-r--r--src/libs/engine/InputPort.h13
1 files changed, 9 insertions, 4 deletions
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 <typename T>
class InputPort : public PortBase<T>
{
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<ConnectionBase<T>*>* const c);
ListNode<ConnectionBase<T>*>* remove_connection(const OutputPort<T>* const src_port);
+ const List<ConnectionBase<T>*>& connections() { return m_connections; }
+
void prepare_buffers(size_t nframes);
void tie(OutputPort<T>* const port);
@@ -60,6 +62,9 @@ public:
bool is_connected() const { return (m_connections.size() > 0); }
bool is_connected_to(const OutputPort<T>* const port) const;
+ bool is_input() const { return true; }
+ bool is_output() const { return false; }
+
private:
// Prevent copies (Undefined)
InputPort<T>(const InputPort<T>& copy);
@@ -73,9 +78,9 @@ private:
using PortBase<T>::m_is_tied;
using PortBase<T>::m_tied_port;
using PortBase<T>::m_buffers;
- using PortBase<T>::m_poly;
- using PortBase<T>::m_index;
- using PortBase<T>::m_buffer_size;
+ using PortBase<T>::_poly;
+ using PortBase<T>::_index;
+ using PortBase<T>::_buffer_size;
using PortBase<T>::m_fixed_buffers;
};