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
3739  :
3740  _M_unary_op(_Unary_op), _M_len(0)
3741  {
3743  _M_output_helper._Populate(_Result, _M_len);
3744  }
const _Unary_operator& _M_unary_op
Definition: ppl.h:3760
_Iterator_helper< _Input_iterator, typename std::iterator_traits< _Input_iterator >::iterator_category > _M_input_helper
Definition: ppl.h:3758
_Iterator_helper< _Output_iterator, typename std::iterator_traits< _Output_iterator >::iterator_category > _M_output_helper
Definition: ppl.h:3759
size_t _Populate(_Forward_iterator &_First, _Forward_iterator _Last)
Definition: ppl.h:3594
_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
3747  {
3748  // Invoke parallel_for on the batched up array of elements
3749  ::Concurrency::_Parallel_for_impl(static_cast<size_t>(0), _M_len, static_cast<size_t>(1),
3750  [this] (size_t _Index)
3751  {
3753  });
3754  }
const _Unary_operator& _M_unary_op
Definition: ppl.h:3760
void _Store(const value_type &_Elem, size_t _Index) const
Definition: ppl.h:3616
std::iterator_traits< _Forward_iterator >::reference _Load(size_t _Index) const
Definition: ppl.h:3621
_Iterator_helper< _Input_iterator, typename std::iterator_traits< _Input_iterator >::iterator_category > _M_input_helper
Definition: ppl.h:3758
_Iterator_helper< _Output_iterator, typename std::iterator_traits< _Output_iterator >::iterator_category > _M_output_helper
Definition: ppl.h:3759
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: