/usr/include/oneapi/tbb/detail
Edit: /usr/include/oneapi/tbb/detail/_flow_graph_nodes_deduction.h (9532B)
/*
Copyright (c) 2005-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef __TBB_flow_graph_nodes_deduction_H
#define __TBB_flow_graph_nodes_deduction_H
#if __TBB_CPP17_DEDUCTION_GUIDES_PRESENT
namespace tbb {
namespace detail {
namespace d1 {
template
struct declare_body_types {
using input_type = Input;
using output_type = Output;
};
struct NoInputBody {};
template
struct declare_body_types {
using output_type = Output;
};
template struct body_types;
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
struct body_types : declare_body_types {};
template
using input_t = typename body_types::input_type;
template
using output_t = typename body_types::output_type;
template
auto decide_on_operator_overload(Output (T::*name)(const Input&) const)->decltype(name);
template
auto decide_on_operator_overload(Output (T::*name)(const Input&))->decltype(name);
template
auto decide_on_operator_overload(Output (T::*name)(Input&) const)->decltype(name);
template
auto decide_on_operator_overload(Output (T::*name)(Input&))->decltype(name);
template
auto decide_on_operator_overload(Output (*name)(const Input&))->decltype(name);
template
auto decide_on_operator_overload(Output (*name)(Input&))->decltype(name);
template
decltype(decide_on_operator_overload(&Body::operator())) decide_on_callable_type(int);
template
decltype(decide_on_operator_overload(std::declval())) decide_on_callable_type(...);
// Deduction guides for Flow Graph nodes
template
input_node(GraphOrSet&&, Body)
->input_node(0))>>;
#if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
struct decide_on_set;
template
struct decide_on_set> {
using type = typename Node::output_type;
};
template
struct decide_on_set> {
using type = typename Node::input_type;
};
template
using decide_on_set_t = typename decide_on_set>::type;
template
broadcast_node(const NodeSet&)
->broadcast_node>;
template
buffer_node(const NodeSet&)
->buffer_node>;
template
queue_node(const NodeSet&)
->queue_node>;
#endif // __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
sequencer_node(GraphOrProxy&&, Sequencer)
->sequencer_node(0))>>;
#if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
priority_queue_node(const NodeSet&, const Compare&)
->priority_queue_node, Compare>;
template
priority_queue_node(const NodeSet&)
->priority_queue_node, std::less>>;
#endif // __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
struct join_key {
using type = Key;
};
template
struct join_key {
using type = T&;
};
template
using join_key_t = typename join_key::type;
#if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
join_node(const node_set&, Policy)
->join_node,
Policy>;
template
join_node(const node_set&, Policy)
->join_node;
template
join_node(const node_set)
->join_node,
queueing>;
template
join_node(const node_set)
->join_node;
#endif
template
join_node(GraphOrProxy&&, Body, Bodies...)
->join_node(0))>,
input_t(0))>...>,
key_matching(0))>>>>;
#if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
indexer_node(const node_set&)
->indexer_node;
#endif
#if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
limiter_node(const NodeSet&, size_t)
->limiter_node>;
template
split_node(const node_set&)
->split_node;
template
split_node(const node_set&)
->split_node>;
#endif
template
function_node(GraphOrSet&&,
size_t, Body,
Policy, node_priority_t = no_priority)
->function_node(0))>,
output_t(0))>,
Policy>;
template
function_node(GraphOrSet&&, size_t,
Body, node_priority_t = no_priority)
->function_node(0))>,
output_t(0))>,
queueing>;
template
struct continue_output {
using type = Output;
};
template <>
struct continue_output {
using type = continue_msg;
};
template
using continue_output_t = typename continue_output::type;
template
continue_node(GraphOrSet&&, Body,
Policy, node_priority_t = no_priority)
->continue_node>,
Policy>;
template
continue_node(GraphOrSet&&,
int, Body,
Policy, node_priority_t = no_priority)
->continue_node>,
Policy>;
template
continue_node(GraphOrSet&&,
Body, node_priority_t = no_priority)
->continue_node>, Policy>;
template
continue_node(GraphOrSet&&, int,
Body, node_priority_t = no_priority)
->continue_node>,
Policy>;
#if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
template
overwrite_node(const NodeSet&)
->overwrite_node>;
template
write_once_node(const NodeSet&)
->write_once_node>;
#endif // __TBB_PREVIEW_FLOW_GRAPH_NODE_SET
} // namespace d1
} // namespace detail
} // namespace tbb
#endif // __TBB_CPP17_DEDUCTION_GUIDES_PRESENT
#endif // __TBB_flow_graph_nodes_deduction_H