diff options
author | David Robillard <d@drobilla.net> | 2015-10-26 17:05:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-26 17:05:10 +0000 |
commit | 8fb8427715413091ef7e31aca0a180548cd1e182 (patch) | |
tree | 145786b5efc4bec2aadb26130480c542b62fbbb4 /src/server/BlockImpl.hpp | |
parent | 1477371aaf889cf8ab398e4f1ad1ddc23fd01485 (diff) | |
download | ingen-8fb8427715413091ef7e31aca0a180548cd1e182.tar.gz ingen-8fb8427715413091ef7e31aca0a180548cd1e182.tar.bz2 ingen-8fb8427715413091ef7e31aca0a180548cd1e182.zip |
Use a set for providers and dependants
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5790 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/BlockImpl.hpp')
-rw-r--r-- | src/server/BlockImpl.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/BlockImpl.hpp b/src/server/BlockImpl.hpp index 06111a88..773cb115 100644 --- a/src/server/BlockImpl.hpp +++ b/src/server/BlockImpl.hpp @@ -17,7 +17,7 @@ #ifndef INGEN_ENGINE_BLOCKIMPL_HPP #define INGEN_ENGINE_BLOCKIMPL_HPP -#include <list> +#include <set> #include <boost/intrusive/slist.hpp> #include <boost/optional.hpp> @@ -138,10 +138,10 @@ public: virtual PortImpl* port_by_symbol(const char* symbol); /** Blocks that are connected to this Block's inputs. */ - std::list<BlockImpl*>& providers() { return _providers; } + std::set<BlockImpl*>& providers() { return _providers; } /** Blocks that are connected to this Block's outputs. */ - std::list<BlockImpl*>& dependants() { return _dependants; } + std::set<BlockImpl*>& dependants() { return _dependants; } /** Flag block as polyphonic. * @@ -190,8 +190,8 @@ protected: Raul::Array<PortImpl*>* _ports; ///< Access in audio thread only Context::ID _context; ///< Context this block runs in uint32_t _polyphony; - std::list<BlockImpl*> _providers; ///< Blocks connected to this one's input ports - std::list<BlockImpl*> _dependants; ///< Blocks this one's output ports are connected to + std::set<BlockImpl*> _providers; ///< Blocks connected to this one's input ports + std::set<BlockImpl*> _dependants; ///< Blocks this one's output ports are connected to bool _polyphonic; bool _activated; bool _enabled; |