2#include <ossia/dataflow/graph_node.hpp>
3#include <ossia/dataflow/port.hpp>
7void for_each_inlet(
const ossia::graph_node& node, Fin&& fin)
noexcept
9 for(
auto port : node.root_inputs())
12 for(
auto sub : port->child_inlets)
17 for(
auto port : node.root_outputs())
19 for(
auto sub : port->child_inlets)
26template <
typename Fin>
27bool any_of_inlet(
const ossia::graph_node& node, Fin&& fin)
noexcept
29 for(
auto port : node.root_inputs())
34 for(
auto sub : port->child_inlets)
40 for(
auto port : node.root_outputs())
42 for(
auto sub : port->child_inlets)
51template <
typename Fin>
52bool all_of_inlet(
const ossia::graph_node& node, Fin&& fin)
noexcept
54 for(
auto port : node.root_inputs())
59 for(
auto sub : port->child_inlets)
65 for(
auto port : node.root_outputs())
67 for(
auto sub : port->child_inlets)
76template <
typename Fout>
77void for_each_outlet(
const ossia::graph_node& node, Fout&& fout)
noexcept
79 for(
auto port : node.root_outputs())
85template <
typename Fout>
86bool any_of_outlet(
const ossia::graph_node& node, Fout&& fout)
noexcept
88 for(
auto port : node.root_outputs())
96template <
typename Fout>
97bool all_of_outlet(
const ossia::graph_node& node, Fout&& fout)
noexcept
99 for(
auto port : node.root_outputs())