17 #ifndef __TBB__flow_graph_body_impl_H 18 #define __TBB__flow_graph_body_impl_H 20 #ifndef __TBB_flow_graph_H 21 #error Do not #include this internal file directly; use public TBB headers instead. 32 #if __TBB_CPP11_VARIADIC_TEMPLATES_PRESENT 34 template<
typename ... Policies>
struct Policy {};
38 template<
typename ExpectedPolicy,
typename FirstPolicy,
typename ...Policies>
39 struct has_policy<ExpectedPolicy, FirstPolicy, Policies...> :
41 has_policy<ExpectedPolicy, Policies...>::value> {};
43 template<
typename ExpectedPolicy,
typename SinglePolicy>
47 template<
typename ExpectedPolicy,
typename ...Policies>
52 template<
typename P1,
typename P2 =
void>
struct Policy {};
54 template<
typename ExpectedPolicy,
typename SinglePolicy>
57 template<
typename ExpectedPolicy,
typename P>
58 struct has_policy<ExpectedPolicy, Policy<P> > : has_policy<ExpectedPolicy, P> {};
60 template<
typename ExpectedPolicy,
typename P1,
typename P2>
61 struct has_policy<ExpectedPolicy, Policy<P1, P2> > :
66 namespace graph_policy_namespace {
95 template<
typename Output >
104 template<
typename Output,
typename Body>
118 template<
typename Input,
typename Output >
122 virtual Output
operator()(
const Input &input) = 0;
127 template <
typename Input,
typename Output,
typename B>
141 template <
typename B>
158 template <
typename Input,
typename B>
164 return continue_msg();
175 template <
typename Output,
typename B>
191 template<
typename Input,
typename OutputSet>
195 virtual void operator()(
const Input &, OutputSet &) = 0;
201 template<
typename Input,
typename OutputSet,
typename B >
219 template<
typename Input,
typename Output>
223 virtual Output
operator()(
const Input &input) = 0;
228 template<
typename Input,
typename Output>
232 virtual const Output & operator()(
const Input &input) = 0;
236 template <
typename Input,
typename Output,
typename B>
249 template <
typename Input,
typename Output,
typename B>
269 template<
typename NodeType >
279 ) : graph_task(node_priority),
294 template<
typename NodeType,
typename Input >
305 ) : graph_task(node_priority),
319 template<
typename NodeType >
338 template<
typename Input,
typename Output >
340 Output
operator()(
const Input & )
const {
return Output(); }
349 return my_node->decrement_counter();
376 #endif // __TBB__flow_graph_body_impl_H function_body_leaf * clone() __TBB_override
function_body_leaf * clone() __TBB_override
function_body_leaf(const B &_body)
task * execute() __TBB_override
A task that calls a node's forward_task function.
continue_msg operator()(const continue_msg &i) __TBB_override
graph & graph_reference() __TBB_override
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task * task
the leaf for function_body specialized for Output of continue_msg
unsigned int node_priority_t
virtual ~multifunction_body()
A functor that takes an Input and generates an Output.
strip< K >::type base_key_type
multifunction_body_leaf(const B &_body)
continue_msg operator()(const Input &i) __TBB_override
void * get_body_ptr() __TBB_override
virtual void * get_body_ptr()=0
interface10::internal::Policy< queueing, lightweight > queueing_lightweight
function_body that takes an Input and a set of output ports
Base class for types that should not be copied or assigned.
the leaf for function_body specialized for Input and output of continue_msg
Output operator()(const Input &) const
The leaf for source_body.
A task that calls a node's apply_body_bypass function with no input.
virtual Output operator()(const Input &input)=0
type_to_key_function_body_leaf * clone() __TBB_override
type_to_key_function_body_leaf * clone() __TBB_override
function_body_leaf * clone() __TBB_override
Strips its template type argument from cv- and ref-qualifiers.
virtual void operator()(const Input &, OutputSet &)=0
Output operator()(const continue_msg &i) __TBB_override
forward_task_bypass(NodeType &n)
the leaf for function_body specialized for Input of continue_msg
Base class for types that should not be assigned.
virtual Output operator()(const Input &input)=0
task * execute() __TBB_override
virtual multifunction_body * clone()=0
static tbb::task *const SUCCESSFULLY_ENQUEUED
A task that calls a node's apply_body_bypass function, passing in an input of type Input.
apply_body_task_bypass(NodeType &n, const Input &i)
key_matching< tag_value > tag_matching
source_task_bypass(NodeType &n)
source_body_leaf(const Body &_body)
task * execute() __TBB_override
virtual ~type_to_key_function_body()
A functor that takes no input and generates a value of type Output.
const Output & operator()(const Input &i) __TBB_override
type_to_key_function_body_leaf(const B &_body)
function_body_leaf(const B &_body)
#define __TBB_PREVIEW_FLOW_GRAPH_PRIORITIES
An empty functor that takes an Input and returns a default constructed Output.
function_body_leaf * clone() __TBB_override
void operator()(const Input &input, OutputSet &oset) __TBB_override
static const node_priority_t no_priority
virtual ~type_to_key_function_body()
field of type K being used for matching.
task * execute() __TBB_override
function_body_leaf(const B &_body)
decrementer(int number_of_predecessors=0)
source_body_leaf * clone() __TBB_override
#define __TBB_FLOW_GRAPH_PRIORITY_ARG1(arg1, priority)
Output operator()(const Input &i) __TBB_override
bool operator()(Output &output) __TBB_override
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type type
the leaf for function_body
virtual function_body * clone()=0
function_body_leaf(const B &_body)
interface10::internal::Policy< rejecting, lightweight > rejecting_lightweight
virtual source_body * clone()=0
virtual type_to_key_function_body * clone()=0
virtual bool operator()(Output &output)=0
leaf for multifunction. OutputSet can be a std::tuple or a vector.
multifunction_body_leaf * clone() __TBB_override
Output operator()(const Input &i) __TBB_override
type_to_key_function_body_leaf(const B &_body)
tbb::internal::uint64_t tag_value