summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Patch.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-09 22:39:56 +0000
committerDavid Robillard <d@drobilla.net>2007-02-09 22:39:56 +0000
commite343345cf54172720f3494ccef87d62b2c688d0a (patch)
tree67c6b3f95e9393110f78b6fa0cf44cbd12f935a4 /src/libs/engine/Patch.h
parentc50fe49fea7e32b3194b163b77ee5a52480ffa33 (diff)
downloadingen-e343345cf54172720f3494ccef87d62b2c688d0a.tar.gz
ingen-e343345cf54172720f3494ccef87d62b2c688d0a.tar.bz2
ingen-e343345cf54172720f3494ccef87d62b2c688d0a.zip
Moved Deletable (formerly MaidObject), List, and Array from Ingen to Raul.
git-svn-id: http://svn.drobilla.net/lad/ingen@294 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Patch.h')
-rw-r--r--src/libs/engine/Patch.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/libs/engine/Patch.h b/src/libs/engine/Patch.h
index 7fc3a1bb..55a2be83 100644
--- a/src/libs/engine/Patch.h
+++ b/src/libs/engine/Patch.h
@@ -20,9 +20,9 @@
#include <cstdlib>
#include <string>
+#include <raul/List.h>
#include "NodeBase.h"
#include "Plugin.h"
-#include "List.h"
#include "DataType.h"
using std::string;
@@ -68,33 +68,33 @@ public:
// Patch specific stuff not inherited from Node
- void add_node(ListNode<Node*>* tn);
- ListNode<Node*>* remove_node(const string& name);
+ void add_node(Raul::ListNode<Node*>* tn);
+ Raul::ListNode<Node*>* remove_node(const string& name);
- List<Node*>& nodes() { return _nodes; }
- List<Connection*>& connections() { return _connections; }
+ Raul::List<Node*>& nodes() { return _nodes; }
+ Raul::List<Connection*>& connections() { return _connections; }
- const List<Node*>& nodes() const { return _nodes; }
- const List<Connection*>& connections() const { return _connections; }
+ const Raul::List<Node*>& nodes() const { return _nodes; }
+ const Raul::List<Connection*>& connections() const { return _connections; }
size_t num_ports() const;
Port* create_port(const string& name, DataType type, size_t buffer_size, bool is_output);
- void add_input(ListNode<Port*>* port) { _input_ports.push_back(port); } ///< Preprocesser thread
- void add_output(ListNode<Port*>* port) { _output_ports.push_back(port); } ///< Preprocessor thread
- ListNode<Port*>* remove_port(const string& name);
+ void add_input(Raul::ListNode<Port*>* port) { _input_ports.push_back(port); } ///< Preprocesser thread
+ void add_output(Raul::ListNode<Port*>* port) { _output_ports.push_back(port); } ///< Preprocessor thread
+ Raul::ListNode<Port*>* remove_port(const string& name);
- void add_connection(ListNode<Connection*>* c) { _connections.push_back(c); }
- ListNode<Connection*>* remove_connection(const Port* src_port, const Port* dst_port);
+ void add_connection(Raul::ListNode<Connection*>* c) { _connections.push_back(c); }
+ Raul::ListNode<Connection*>* remove_connection(const Port* src_port, const Port* dst_port);
- Array<Node*>* process_order() { return _process_order; }
- void process_order(Array<Node*>* po) { _process_order = po; }
+ Raul::Array<Node*>* process_order() { return _process_order; }
+ void process_order(Raul::Array<Node*>* po) { _process_order = po; }
- Array<Port*>* external_ports() { return _ports; }
- void external_ports(Array<Port*>* pa) { _ports = pa; }
+ Raul::Array<Port*>* external_ports() { return _ports; }
+ void external_ports(Raul::Array<Port*>* pa) { _ports = pa; }
- Array<Node*>* build_process_order() const;
- Array<Port*>* build_ports_array() const;
+ Raul::Array<Node*>* build_process_order() const;
+ Raul::Array<Port*>* build_ports_array() const;
/** Whether to run this patch's DSP bits in the audio thread */
bool enabled() const { return _process; }
@@ -104,14 +104,14 @@ public:
size_t internal_poly() const { return _internal_poly; }
private:
- inline void build_process_order_recursive(Node* n, Array<Node*>* order) const;
+ inline void build_process_order_recursive(Node* n, Raul::Array<Node*>* order) const;
size_t _internal_poly;
- Array<Node*>* _process_order; ///< Accessed in audio thread only
- List<Connection*> _connections; ///< Accessed in audio thread only
- List<Port*> _input_ports; ///< Accessed in preprocessing thread only
- List<Port*> _output_ports; ///< Accessed in preprocessing thread only
- List<Node*> _nodes; ///< Accessed in preprocessing thread only
+ Raul::Array<Node*>* _process_order; ///< Accessed in audio thread only
+ Raul::List<Connection*> _connections; ///< Accessed in audio thread only
+ Raul::List<Port*> _input_ports; ///< Accessed in preprocessing thread only
+ Raul::List<Port*> _output_ports; ///< Accessed in preprocessing thread only
+ Raul::List<Node*> _nodes; ///< Accessed in preprocessing thread only
bool _process;
};
@@ -119,13 +119,13 @@ private:
/** Private helper for build_process_order */
inline void
-Patch::build_process_order_recursive(Node* n, Array<Node*>* order) const
+Patch::build_process_order_recursive(Node* n, Raul::Array<Node*>* order) const
{
if (n == NULL || n->traversed()) return;
n->traversed(true);
assert(order != NULL);
- for (List<Node*>::iterator i = n->providers()->begin(); i != n->providers()->end(); ++i)
+ for (Raul::List<Node*>::iterator i = n->providers()->begin(); i != n->providers()->end(); ++i)
if ( ! (*i)->traversed() )
build_process_order_recursive((*i), order);