From 299f075679fc7ea6a67001c2cc0442511e167cbc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 Oct 2007 18:14:01 +0000 Subject: Shared abstract Node interface. git-svn-id: http://svn.drobilla.net/lad/ingen@835 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/NodeBase.hpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/libs/engine/NodeBase.hpp') diff --git a/src/libs/engine/NodeBase.hpp b/src/libs/engine/NodeBase.hpp index d81b90a1..833e4edd 100644 --- a/src/libs/engine/NodeBase.hpp +++ b/src/libs/engine/NodeBase.hpp @@ -23,7 +23,7 @@ #include #include #include -#include "Node.hpp" +#include "NodeImpl.hpp" using std::string; @@ -44,7 +44,7 @@ namespace Shared { * * \ingroup engine */ -class NodeBase : public Node +class NodeBase : public NodeImpl { public: NodeBase(const Plugin* plugin, @@ -90,11 +90,11 @@ public: * The providers and dependants in CompiledNode are for that */ - virtual Raul::List* providers() { return _providers; } - virtual void providers(Raul::List* l) { _providers = l; } + Raul::List* providers() { return _providers; } + void providers(Raul::List* l) { _providers = l; } - virtual Raul::List* dependants() { return _dependants; } - virtual void dependants(Raul::List* l) { _dependants = l; } + Raul::List* dependants() { return _dependants; } + void dependants(Raul::List* l) { _dependants = l; } virtual const Plugin* plugin() const { return _plugin; } @@ -111,13 +111,13 @@ protected: size_t _buffer_size; bool _activated; - bool _traversed; ///< Flag for process order algorithm - Raul::Semaphore _input_ready; ///< Parallelism: input ready signal - Raul::AtomicInt _process_lock; ///< Parallelism: Waiting on inputs 'lock' - Raul::AtomicInt _n_inputs_ready; ///< Parallelism: # input ready signals this cycle - Raul::Array* _ports; ///< Access in audio thread only - Raul::List* _providers; ///< Nodes connected to this one's input ports - Raul::List* _dependants; ///< Nodes this one's output ports are connected to + bool _traversed; ///< Flag for process order algorithm + Raul::Semaphore _input_ready; ///< Parallelism: input ready signal + Raul::AtomicInt _process_lock; ///< Parallelism: Waiting on inputs 'lock' + Raul::AtomicInt _n_inputs_ready; ///< Parallelism: # input ready signals this cycle + Raul::Array* _ports; ///< Access in audio thread only + Raul::List* _providers; ///< Nodes connected to this one's input ports + Raul::List* _dependants; ///< Nodes this one's output ports are connected to }; -- cgit v1.2.1