diff options
author | David Robillard <d@drobilla.net> | 2006-06-19 00:39:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-19 00:39:45 +0000 |
commit | b1b4335b767f34b41903a85040cd07dabe0f33ec (patch) | |
tree | c96a52a5611d98f5b588370c940bec241860c5c7 /src/libs/engine/PortBase.h | |
parent | 3bb7c1a7eef744d17e436522a3dc0ed8527a427e (diff) | |
download | ingen-b1b4335b767f34b41903a85040cd07dabe0f33ec.tar.gz ingen-b1b4335b767f34b41903a85040cd07dabe0f33ec.tar.bz2 ingen-b1b4335b767f34b41903a85040cd07dabe0f33ec.zip |
Renamed PortBase to TypedPort
git-svn-id: http://svn.drobilla.net/lad/grauph@59 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/PortBase.h')
-rw-r--r-- | src/libs/engine/PortBase.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libs/engine/PortBase.h b/src/libs/engine/PortBase.h index 730ea59d..e2ccaff4 100644 --- a/src/libs/engine/PortBase.h +++ b/src/libs/engine/PortBase.h @@ -39,10 +39,10 @@ class Node; * \ingroup engine */ template <typename T> -class PortBase : public Port +class TypedPort : public Port { public: - virtual ~PortBase(); + virtual ~TypedPort(); void set_value(size_t voice, T val, size_t offset); void set_value(T val, size_t offset); @@ -52,7 +52,7 @@ public: virtual void prepare_buffers(size_t nframes); virtual void clear_buffers(); - PortBase* tied_port() const { return m_tied_port; } + TypedPort* tied_port() const { return m_tied_port; } void untie() { m_is_tied = false; m_tied_port = NULL; } /** Used by drivers to prevent port from changing buffers */ @@ -60,24 +60,24 @@ public: bool fixed_buffers() { return m_fixed_buffers; } protected: - PortBase(Node* parent, const string& name, size_t index, size_t poly, DataType type, size_t buffer_size); + TypedPort(Node* parent, const string& name, size_t index, size_t poly, DataType type, size_t buffer_size); // Prevent copies (undefined) - PortBase(const PortBase<T>& copy); - PortBase& operator=(const Port&); + TypedPort(const TypedPort<T>& copy); + TypedPort& operator=(const Port&); void allocate_buffers(); bool m_fixed_buffers; bool m_is_tied; - PortBase* m_tied_port; + TypedPort* m_tied_port; Array<Buffer<T>*> m_buffers; }; -template class PortBase<sample>; -template class PortBase<MidiMessage>; +template class TypedPort<sample>; +template class TypedPort<MidiMessage>; } // namespace Om |