diff options
author | David Robillard <d@drobilla.net> | 2006-06-19 00:32:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-19 00:32:15 +0000 |
commit | 3bb7c1a7eef744d17e436522a3dc0ed8527a427e (patch) | |
tree | 62f9e596c21d5ad294f3c95e0c29e074db89567f /src/libs/engine/Port.h | |
parent | d2042e04de9ba3ab962890d228ad2adf84a0d728 (diff) | |
download | ingen-3bb7c1a7eef744d17e436522a3dc0ed8527a427e.tar.gz ingen-3bb7c1a7eef744d17e436522a3dc0ed8527a427e.tar.bz2 ingen-3bb7c1a7eef744d17e436522a3dc0ed8527a427e.zip |
Ditched ghetto homebrew RTTI in favour of the real deal;
removed BridgeNode crap
git-svn-id: http://svn.drobilla.net/lad/grauph@58 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Port.h')
-rw-r--r-- | src/libs/engine/Port.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/engine/Port.h b/src/libs/engine/Port.h index e96b8ea9..37603fcb 100644 --- a/src/libs/engine/Port.h +++ b/src/libs/engine/Port.h @@ -43,10 +43,11 @@ class Port : public OmObject public: virtual ~Port() {} - Port* as_port() { return this; } - void add_to_store(); void remove_from_store(); + + /** A port's parent is always a node, so static cast should be safe */ + Node* parent_node() const { return (Node*)_parent; } /** Called once per process cycle */ virtual void prepare_buffers(size_t nframes) = 0; @@ -57,7 +58,6 @@ public: virtual bool is_input() const = 0; virtual bool is_output() const = 0; - Node* parent_node() const { return _parent->as_node(); } bool is_sample() const { return false; } size_t num() const { return _index; } size_t poly() const { return _poly; } |