summaryrefslogtreecommitdiffstats
path: root/src/server/CompiledGraph.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-25 05:10:37 +0000
committerDavid Robillard <d@drobilla.net>2015-10-25 05:10:37 +0000
commit94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf (patch)
tree0d2c95c194d95e6e5925c66bbd4c709173421bfd /src/server/CompiledGraph.hpp
parentcbd64a410c165972f13d18e4260bb63b770b3c1f (diff)
downloadingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.tar.gz
ingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.tar.bz2
ingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.zip
Create all graphs the same way
This ensures that subgraphs always have the standard control ports, so they are valid Ingen graphs on their own.. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5783 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/CompiledGraph.hpp')
-rw-r--r--src/server/CompiledGraph.hpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/server/CompiledGraph.hpp b/src/server/CompiledGraph.hpp
index 8ef9bac3..9f4071a5 100644
--- a/src/server/CompiledGraph.hpp
+++ b/src/server/CompiledGraph.hpp
@@ -26,30 +26,18 @@
namespace Ingen {
namespace Server {
-class EdgeImpl;
class BlockImpl;
/** All information required about a block to execute it in an audio thread.
*/
class CompiledBlock {
public:
- CompiledBlock(BlockImpl* b, size_t np, const std::list<BlockImpl*>& deps)
- : _block(b)
- {
- // Copy to a vector for maximum iteration speed and cache optimization
- // (Need to take a copy anyway)
+ CompiledBlock(BlockImpl* b) : _block(b) {}
- _dependants.reserve(deps.size());
- for (const auto& d : deps)
- _dependants.push_back(d);
- }
-
- BlockImpl* block() const { return _block; }
- const std::vector<BlockImpl*>& dependants() const { return _dependants; }
+ BlockImpl* block() const { return _block; }
private:
- BlockImpl* _block;
- std::vector<BlockImpl*> _dependants; ///< Blocks this one's output ports are connected to
+ BlockImpl* _block;
};
/** A graph ``compiled'' into a flat structure with the correct order so