STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::coarse_map_reduce_wf< Map, Reduce, R > Struct Template Reference

Work function that implements the coarsened map reduce operation and reflects the result_type defined by the fine-grain reduce operation. More...

Public Member Functions

 coarse_map_reduce_wf (Map const &fmap, Reduce const &freduce)
 
template<typename R , typename IterComp , typename ... Iter>
apply (IterComp &iter_compare, Iter... iter)
 
template<typename R , typename Scheduler , typename IterComp , typename ... Iter>
apply (paragraph_impl::paragraph_view< Scheduler > &tgv, IterComp &iter_compare, Iter... iter)
 
template<typename V0 , typename... V>
boost::result_of< Reduce(typename boost::result_of< Map(typename V0::reference, typename V::reference...)>::type, typename boost::result_of< Map(typename V0::reference, typename V::reference...)>::type) >::type operator() (V0 &view0, V &... view)
 Function operator signatures for different number of views. The map operation is applied to sets of elements, one from each view, where the elements of a set all have the same offset from the start of their respective view.
 
template<typename Scheduler , typename V0 , typename... V>
boost::result_of< Reduce(typename boost::result_of< Map(paragraph_impl::paragraph_view< Scheduler >, typename V0::reference, typename V::reference...)>::type, typename boost::result_of< Map(paragraph_impl::paragraph_view< Scheduler >, typename V0::reference, typename V::reference...)>::type) >::type operator() (paragraph_impl::paragraph_view< Scheduler > &tgv, V0 &view0, V &... view)
 Function operator signatures for different number of views. The map operation is applied to sets of elements, one from each view, where the elements of a set all have the same offset from the start of their respective view.
 

Public Types

typedef Reduce::result_type result_type
 

Detailed Description

template<typename Map, typename Reduce, bool R = paragraph_impl::has_result_type<Reduce>::value>
struct stapl::coarse_map_reduce_wf< Map, Reduce, R >

Work function that implements the coarsened map reduce operation and reflects the result_type defined by the fine-grain reduce operation.


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