summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-03 04:09:37 +0000
committerDavid Robillard <d@drobilla.net>2011-10-03 04:09:37 +0000
commit990007a6c0317aa0cce97f4e095bc98745c60c4d (patch)
treee5e3010b83ff525b900adf8096556984e0feacf7 /src/server/PortImpl.hpp
parent8768c927968c2541bcac763d9a4f237081eaca4b (diff)
downloadingen-990007a6c0317aa0cce97f4e095bc98745c60c4d.tar.gz
ingen-990007a6c0317aa0cce97f4e095bc98745c60c4d.tar.bz2
ingen-990007a6c0317aa0cce97f4e095bc98745c60c4d.zip
Use port type instead of buffer type where appropriate.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3524 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.hpp')
-rw-r--r--src/server/PortImpl.hpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index 7baaf089..2316a1d9 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -20,7 +20,6 @@
#include <cstdlib>
#include <string>
-#include <set>
#include "raul/Array.hpp"
#include "raul/Atom.hpp"
@@ -123,11 +122,7 @@ public:
uint32_t index() const { return _index; }
- typedef std::set<PortType> PortTypes;
-
- const PortTypes& types() const { return _types; }
-
- inline bool is_a(PortType type) const { return _types.find(type) != _types.end(); }
+ inline bool is_a(PortType type) const { return _type == type; }
PortType buffer_type() const;
@@ -143,7 +138,6 @@ public:
}
void set_buffer_size(Context& context, BufferFactory& bufs, size_t size);
- void set_buffer_type(PortType type);
void broadcast(bool b) { _broadcast = b; }
bool broadcast() { return _broadcast; }
@@ -171,8 +165,7 @@ protected:
uint32_t _index;
uint32_t _poly;
uint32_t _buffer_size;
- PortType _buffer_type;
- std::set<PortType> _types;
+ PortType _type;
Raul::Atom _value;
Raul::Atom _min;
Raul::Atom _max;