Intel(R) Threading Building Blocks Doxygen Documentation version 4.2.3
Loading...
Searching...
No Matches
tbb::internal::parallel_for_each_body_for< Function, Iterator > Class Template Reference

#include <parallel_for_each.h>

Inheritance diagram for tbb::internal::parallel_for_each_body_for< Function, Iterator >:
Collaboration diagram for tbb::internal::parallel_for_each_body_for< Function, Iterator >:

Public Member Functions

 parallel_for_each_body_for (const Function &_func)
 
void operator() (tbb::blocked_range< Iterator > range) const
 

Private Attributes

const Function & my_func
 

Additional Inherited Members

- Private Member Functions inherited from tbb::internal::no_assign
void operator= (const no_assign &)=delete
 
 no_assign (const no_assign &)=default
 
 no_assign ()=default
 

Detailed Description

template<typename Function, typename Iterator>
class tbb::internal::parallel_for_each_body_for< Function, Iterator >

Definition at line 41 of file parallel_for_each.h.

Constructor & Destructor Documentation

◆ parallel_for_each_body_for()

template<typename Function , typename Iterator >
tbb::internal::parallel_for_each_body_for< Function, Iterator >::parallel_for_each_body_for ( const Function &  _func)
inline

Definition at line 44 of file parallel_for_each.h.

44: my_func(_func) {}

Member Function Documentation

◆ operator()()

template<typename Function , typename Iterator >
void tbb::internal::parallel_for_each_body_for< Function, Iterator >::operator() ( tbb::blocked_range< Iterator >  range) const
inline

Definition at line 46 of file parallel_for_each.h.

46 {
47#if __INTEL_COMPILER
48#pragma ivdep
49#endif
50 for(Iterator it = range.begin(), end = range.end(); it != end; ++it) {
51 my_func(*it);
52 }
53 }
const_iterator begin() const
Beginning of range.
Definition: blocked_range.h:69
const_iterator end() const
One past last value in range.
Definition: blocked_range.h:72

References tbb::blocked_range< Value >::begin(), tbb::blocked_range< Value >::end(), end, and tbb::internal::parallel_for_each_body_for< Function, Iterator >::my_func.

Here is the call graph for this function:

Member Data Documentation

◆ my_func

template<typename Function , typename Iterator >
const Function& tbb::internal::parallel_for_each_body_for< Function, Iterator >::my_func
private

The documentation for this class was generated from the following file:

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.