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

Work function that uses the fine-grain map and reduce operations provided to stapl::map_reduce to implement a coarse-grain operation that aggregates multiple calls with a for loop into a single result. More...

Public Member Functions

 cmr_base (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.
 

Private Member Functions

Reduce & wf ()
 Return reference to wrapped workfunction instance.
 

Detailed Description

template<typename Map, typename Reduce>
struct stapl::cmr_base< Map, Reduce >

Work function that uses the fine-grain map and reduce operations provided to stapl::map_reduce to implement a coarse-grain operation that aggregates multiple calls with a for loop into a single result.

Template Parameters
MapType of the fine-grain map operation.
ReduceType of the reduce operation.

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