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_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator> Class Template Reference

#include <ppl.h>

Public Member Functions

 _Parallel_transform_unary_helper (_Input_iterator &_First, _Input_iterator _Last, _Output_iterator &_Result, const _Unary_operator&_Unary_op)
 
void operator() () const
 

Private Member Functions

_Parallel_transform_unary_helper const & operator= (_Parallel_transform_unary_helper const &)
 

Private Attributes

_Iterator_helper< _Input_iterator, typename std::iterator_traits< _Input_iterator >::iterator_category > _M_input_helper
 
_Iterator_helper< _Output_iterator, typename std::iterator_traits< _Output_iterator >::iterator_category > _M_output_helper
 
const _Unary_operator& _M_unary_op
 
size_t _M_len
 

Constructor & Destructor Documentation

template<typename _Input_iterator, typename _Output_iterator, typename _Unary_operator>
Concurrency::_Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator>::_Parallel_transform_unary_helper ( _Input_iterator &  _First,
_Input_iterator  _Last,
_Output_iterator &  _Result,
const _Unary_operator&  _Unary_op 
)
inline
3741  :
3742  _M_unary_op(_Unary_op), _M_len(0)
3743  {
3746  }
const _Unary_operator& _M_unary_op
Definition: ppl.h:3762
_Iterator_helper< _Input_iterator, typename std::iterator_traits< _Input_iterator >::iterator_category > _M_input_helper
Definition: ppl.h:3760
_Iterator_helper< _Output_iterator, typename std::iterator_traits< _Output_iterator >::iterator_category > _M_output_helper
Definition: ppl.h:3761
size_t _Populate(_Forward_iterator &_First, _Forward_iterator _Last)
Definition: ppl.h:3596
_Result
Definition: corecrt_wconio.h:362
_FwdIt _Last
Definition: algorithm:1936

Member Function Documentation

template<typename _Input_iterator, typename _Output_iterator, typename _Unary_operator>
void Concurrency::_Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator>::operator() ( ) const
inline
3749  {
3750  // Invoke parallel_for on the batched up array of elements
3751  ::Concurrency::_Parallel_for_impl(static_cast<size_t>(0), _M_len, static_cast<size_t>(1),
3752  [this] (size_t _Index)
3753  {
3755  });
3756  }
const _Unary_operator& _M_unary_op
Definition: ppl.h:3762
_In_ size_t _In_ int _Index
Definition: time.h:102
void _Store(const value_type &_Elem, size_t _Index) const
Definition: ppl.h:3618
std::iterator_traits< _Forward_iterator >::reference _Load(size_t _Index) const
Definition: ppl.h:3623
_Iterator_helper< _Input_iterator, typename std::iterator_traits< _Input_iterator >::iterator_category > _M_input_helper
Definition: ppl.h:3760
_Iterator_helper< _Output_iterator, typename std::iterator_traits< _Output_iterator >::iterator_category > _M_output_helper
Definition: ppl.h:3761
void _Parallel_for_impl(_Index_type _First, _Index_type _Last, _Index_type _Step, const _Function &_Func)
Definition: ppl.h:2509
template<typename _Input_iterator, typename _Output_iterator, typename _Unary_operator>
_Parallel_transform_unary_helper const& Concurrency::_Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator>::operator= ( _Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator> const &  )
private

Member Data Documentation

template<typename _Input_iterator, typename _Output_iterator, typename _Unary_operator>
_Iterator_helper<_Input_iterator, typename std::iterator_traits<_Input_iterator>::iterator_category> Concurrency::_Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator>::_M_input_helper
private
template<typename _Input_iterator, typename _Output_iterator, typename _Unary_operator>
size_t Concurrency::_Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator>::_M_len
private
template<typename _Input_iterator, typename _Output_iterator, typename _Unary_operator>
_Iterator_helper<_Output_iterator, typename std::iterator_traits<_Output_iterator>::iterator_category> Concurrency::_Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator>::_M_output_helper
private
template<typename _Input_iterator, typename _Output_iterator, typename _Unary_operator>
const _Unary_operator& Concurrency::_Parallel_transform_unary_helper< _Input_iterator, _Output_iterator, _Unary_operator>::_M_unary_op
private

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