Loading...
Searching...
No Matches
DeviceAddresses.hpp
1#pragma once
2#include <ossia/dataflow/dataflow_fwd.hpp>
3#include <ossia/detail/hash_map.hpp>
4
5#include <score_plugin_engine_export.h>
6
7#include <span>
8
9namespace ossia::net
10{
11class device_base;
12}
13
14namespace Execution
15{
22SCORE_PLUGIN_ENGINE_TEST_EXPORT
23ossia::hash_set<const void*> deviceAddresses(ossia::net::device_base& d);
24
31SCORE_PLUGIN_ENGINE_TEST_EXPORT
33 const ossia::destination_t& dest,
34 const ossia::hash_set<const void*>& owned) noexcept;
35
42SCORE_PLUGIN_ENGINE_TEST_EXPORT
44 std::span<ossia::graph_node* const> nodes,
45 const ossia::hash_set<const void*>& owned) noexcept;
46}
Components used for the execution of a score.
Definition PortTap.cpp:24
ossia::hash_set< const void * > deviceAddresses(ossia::net::device_base &d)
The node and parameter addresses a device owns.
Definition DeviceAddresses.cpp:17
bool addressBelongsTo(const ossia::destination_t &dest, const ossia::hash_set< const void * > &owned) noexcept
Whether the address a port stores is one of owned.
Definition DeviceAddresses.cpp:40
void clearAddresses(std::span< ossia::graph_node *const > nodes, const ossia::hash_set< const void * > &owned) noexcept
Reset every port address in nodes that is one of owned.
Definition DeviceAddresses.cpp:50