diff options
author | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-18 12:47:15 +0000 |
commit | 8ba6bb943889bfdd58cf4a971a152041c1199cfe (patch) | |
tree | 91fbe8577e6d01070aa81f532ddd8102db1476f5 /src/engine/NodeImpl.hpp | |
parent | 3cd3bfe5079f84fafb7dc217f5393d6ba947109c (diff) | |
download | ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.gz ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.tar.bz2 ingen-8ba6bb943889bfdd58cf4a971a152041c1199cfe.zip |
Put engine code in new Ingen::Engine namespace.
Put core interfaces in Ingen namespace (not Ingen::Shared).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3159 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/NodeImpl.hpp')
-rw-r--r-- | src/engine/NodeImpl.hpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/engine/NodeImpl.hpp b/src/engine/NodeImpl.hpp index 8ba76d41..d2c49e4f 100644 --- a/src/engine/NodeImpl.hpp +++ b/src/engine/NodeImpl.hpp @@ -31,7 +31,10 @@ namespace Raul { template <typename T> class List; class Maid; } namespace Ingen { -namespace Shared { class Plugin; class Port; } +class Plugin; +class Port; + +namespace Engine { class Buffer; class BufferFactory; @@ -49,7 +52,7 @@ class ProcessContext; * * \ingroup engine */ -class NodeImpl : public GraphObjectImpl, virtual public Ingen::Shared::Node +class NodeImpl : public GraphObjectImpl, virtual public Node { public: NodeImpl(PluginImpl* plugin, @@ -142,8 +145,8 @@ public: IntrusivePtr<Buffer> buf, SampleCount offset); - virtual Shared::Port* port(uint32_t index) const; - virtual PortImpl* port_impl(uint32_t index) const { return (*_ports)[index]; } + virtual Port* port(uint32_t index) const; + virtual PortImpl* port_impl(uint32_t index) const { return (*_ports)[index]; } /** Nodes that are connected to this Node's inputs. * (This Node depends on them) @@ -176,12 +179,12 @@ public: /** Information about the Plugin this Node is an instance of. * Not the best name - not all nodes come from plugins (ie Patch) */ - virtual const Shared::Plugin* plugin() const; + virtual const Plugin* plugin() const; virtual void plugin(PluginImpl* pi) { _plugin = pi; } virtual void set_buffer_size(Context& context, BufferFactory& bufs, - Shared::PortType type, size_t size); + PortType type, size_t size); /** The Patch this Node belongs to. */ inline PatchImpl* parent_patch() const { return (PatchImpl*)_parent; } @@ -214,6 +217,7 @@ protected: bool _traversed; ///< Flag for process order algorithm }; +} // namespace Engine } // namespace Ingen #endif // INGEN_ENGINE_NODEIMPL_HPP |