Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Go to the documentation of this file.
17 #ifndef __TBB_parallel_for_each_H
18 #define __TBB_parallel_for_each_H
28 template <
typename Function,
typename Iterator>
40 template <
typename Function,
typename Iterator>
50 for(Iterator it = range.
begin(),
end = range.
end(); it !=
end; ++it) {
56 template<
typename Iterator,
typename Function,
typename Generic>
58 #if __TBB_TASK_GROUP_CONTEXT
69 template<
typename Iterator,
typename Function>
71 #if __TBB_TASK_GROUP_CONTEXT
90 #if __TBB_TASK_GROUP_CONTEXT
91 template<
typename Iterator,
typename Function>
98 template<
typename Range,
typename Function>
105 template<
typename Range,
typename Function>
112 template<
typename Iterator,
typename Function>
118 template<
typename Range,
typename Function>
124 template<
typename Range,
typename Function>
const_iterator begin() const
Beginning of range.
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 end
parallel_for_each_body_for(const Function &_func)
parallel_for_each_body_do(const Function &_func)
Used to form groups of tasks.
Base class for types that should not be assigned.
const_iterator end() const
One past last value in range.
Container::iterator first(Container &c)
void operator()(typename std::iterator_traits< Iterator >::reference value) const
Container::iterator last(Container &c)
static void doit(Iterator first, Iterator last, const Function &f)
void operator()(tbb::blocked_range< Iterator > range) const
void parallel_for(const Range &range, const Body &body)
Parallel iteration over range with default partitioner.
void parallel_do(Iterator first, Iterator last, const Body &body)
Parallel iteration over a range, with optional addition of more work.
A range over which to iterate.
void parallel_for_each(Iterator first, Iterator last, const Function &f, task_group_context &context)
Calls function f for all items from [first, last) interval using user-supplied context.
static void doit(Iterator first, Iterator last, const Function &f, task_group_context &context)
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 value
static void doit(Iterator first, Iterator last, const Function &f)
static void doit(Iterator first, Iterator last, const Function &f, task_group_context &context)
Copyright © 2005-2020 Intel Corporation. All Rights Reserved.
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
registered trademarks or trademarks of Intel Corporation or its
subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.