summaryrefslogtreecommitdiffstats
path: root/src/server/InputPort.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-11 03:56:54 +0000
committerDavid Robillard <d@drobilla.net>2012-05-11 03:56:54 +0000
commit3dd4b42f3054f819c865e9415c4b86ba78d43aec (patch)
tree656d152cdffdd9196013fe9f35d46f4cf73c6927 /src/server/InputPort.hpp
parent7be6d5d05756a7dea20c494d56f364b4dc064c88 (diff)
downloadingen-3dd4b42f3054f819c865e9415c4b86ba78d43aec.tar.gz
ingen-3dd4b42f3054f819c865e9415c4b86ba78d43aec.tar.bz2
ingen-3dd4b42f3054f819c865e9415c4b86ba78d43aec.zip
"Connection" => "Edge"
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4345 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/InputPort.hpp')
-rw-r--r--src/server/InputPort.hpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/server/InputPort.hpp b/src/server/InputPort.hpp
index 5d7269da..ea52b15e 100644
--- a/src/server/InputPort.hpp
+++ b/src/server/InputPort.hpp
@@ -26,12 +26,12 @@
#include "raul/SharedPtr.hpp"
#include "PortImpl.hpp"
-#include "ConnectionImpl.hpp"
+#include "EdgeImpl.hpp"
namespace Ingen {
namespace Server {
-class ConnectionImpl;
+class EdgeImpl;
class Context;
class NodeImpl;
class OutputPort;
@@ -40,10 +40,10 @@ class ProcessContext;
/** An input port on a Node or Patch.
*
* All ports have a Buffer, but the actual contents (data) of that buffer may be
- * set directly to the incoming connection's buffer if there's only one inbound
- * connection, to eliminate the need to copy/mix.
+ * set directly to the incoming edge's buffer if there's only one inbound
+ * edge, to eliminate the need to copy/mix.
*
- * If a port has multiple connections, they will be mixed down into the local
+ * If a port has multiple edges, they will be mixed down into the local
* buffer and it will be used.
*
* \ingroup engine
@@ -63,13 +63,13 @@ public:
virtual ~InputPort() {}
- typedef boost::intrusive::slist<ConnectionImpl,
+ typedef boost::intrusive::slist<EdgeImpl,
boost::intrusive::constant_time_size<false>
- > Connections;
+ > Edges;
- void add_connection(ConnectionImpl* c);
- ConnectionImpl* remove_connection(ProcessContext& context,
- const OutputPort* tail);
+ void add_edge(EdgeImpl* c);
+ EdgeImpl* remove_edge(ProcessContext& context,
+ const OutputPort* tail);
bool apply_poly(Raul::Maid& maid, uint32_t poly);
@@ -80,9 +80,9 @@ public:
void pre_process(Context& context);
void post_process(Context& context);
- size_t num_connections() const { return _num_connections; } ///< Pre-process thread
- void increment_num_connections() { ++_num_connections; }
- void decrement_num_connections() { --_num_connections; }
+ size_t num_edges() const { return _num_edges; } ///< Pre-process thread
+ void increment_num_edges() { ++_num_edges; }
+ void decrement_num_edges() { --_num_edges; }
bool is_input() const { return true; }
bool is_output() const { return false; }
@@ -90,8 +90,8 @@ public:
bool direct_connect() const;
protected:
- size_t _num_connections; ///< Pre-process thread
- Connections _connections;
+ size_t _num_edges; ///< Pre-process thread
+ Edges _edges;
};
} // namespace Server