STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator > Class Template Reference

#include <ppl.h>

Public Member Functions

 _Parallel_fixed_chunk_helper (_Index_type, const _Random_iterator &_First, _Index_type _First_iteration, _Index_type _Last_iteration, const _Index_type &_Step, const _Function &_Func, const _Partitioner &)
 
void operator() () const
 

Private Member Functions

_Parallel_fixed_chunk_helper const & operator= (_Parallel_fixed_chunk_helper const &)
 

Private Attributes

const _Random_iterator & _M_first
 
const _Index_type & _M_step
 
const _Function & _M_function
 
const _Index_type _M_first_iteration
 
const _Index_type _M_last_iteration
 

Constructor & Destructor Documentation

template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::_Parallel_fixed_chunk_helper ( _Index_type  ,
const _Random_iterator &  _First,
_Index_type  _First_iteration,
_Index_type  _Last_iteration,
const _Index_type &  _Step,
const _Function &  _Func,
const _Partitioner &   
)
inline
2281  :
2282  _M_first(_First), _M_first_iteration(_First_iteration), _M_last_iteration(_Last_iteration), _M_step(_Step), _M_function(_Func)
2283  {
2284  // Empty constructor because members are already assigned
2285  }
const _Index_type _M_first_iteration
Definition: ppl.h:2304
const _Random_iterator & _M_first
Definition: ppl.h:2300
const _Index_type & _M_step
Definition: ppl.h:2301
const _Index_type _M_last_iteration
Definition: ppl.h:2305
const _Function & _M_function
Definition: ppl.h:2302

Member Function Documentation

template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
void Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::operator() ( ) const
inline
2288  {
2289  // Keep the secondary, scaled, loop index for quick indexing into the data structure
2290  _Index_type _Scaled_index = _M_first_iteration * _M_step;
2291 
2292  for (_Index_type _I = _M_first_iteration; _I < _M_last_iteration; (_I++, _Scaled_index += _M_step))
2293  {
2294  // Execute one iteration: the element is at scaled index away from the first element.
2296  }
2297  }
static void __cdecl _Invoke(const _Random_iterator &_First, _Index_type &_Index, const _Function &_Func)
Definition: ppl.h:1784
const _Index_type _M_first_iteration
Definition: ppl.h:2304
const _Random_iterator & _M_first
Definition: ppl.h:2300
const _Index_type & _M_step
Definition: ppl.h:2301
const _Index_type _M_last_iteration
Definition: ppl.h:2305
const _Function & _M_function
Definition: ppl.h:2302
template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
_Parallel_fixed_chunk_helper const& Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::operator= ( _Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator > const &  )
private

Member Data Documentation

template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
const _Random_iterator& Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::_M_first
private
template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
const _Index_type Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::_M_first_iteration
private
template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
const _Function& Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::_M_function
private
template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
const _Index_type Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::_M_last_iteration
private
template<typename _Random_iterator, typename _Index_type, typename _Function, typename _Partitioner, bool _Is_iterator>
const _Index_type& Concurrency::_Parallel_fixed_chunk_helper< _Random_iterator, _Index_type, _Function, _Partitioner, _Is_iterator >::_M_step
private

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