STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Public Attributes
stapl::paragraph_impl::promote_wf< WF, GlobalVS > Struct Template Reference

Workfunction wrapper that facilitates promotion of a localized return value to the global scope (i.e., that of the PARAGRAPH instead of the task. More...

Public Member Functions

 promote_wf (tg_callback cb, WF const &wf, GlobalVS const &gvs)
 
template<typename... Views>
result_type operator() (Views const &... views)
 Forward parameters to WF invocation, take return value and pass on to promotion_resolver::operator()/promote() call chain with tuple of input params as an additional parameter. Generalize the base workfunction's localized result. More...
 

Public Types

typedef wf_invoke< WF, GlobalVS >::result_type result_type
 

Public Attributes

tg_callback m_cb
 task graph callback used to release any edge_container backed lazy_edge_reference objects stored in viewset member.
 
GlobalVS m_gvs
 A copy of the viewset passed to task creation before any localization transformation.
 

Detailed Description

template<typename WF, typename GlobalVS>
struct stapl::paragraph_impl::promote_wf< WF, GlobalVS >

Workfunction wrapper that facilitates promotion of a localized return value to the global scope (i.e., that of the PARAGRAPH instead of the task.

Template Parameters
WFThe workfunction type passed to task creation.
GlobalVSThe pre-localization view set type.

Member Function Documentation

◆ operator()()

template<typename WF , typename GlobalVS >
template<typename... Views>
result_type stapl::paragraph_impl::promote_wf< WF, GlobalVS >::operator() ( Views const &...  views)

Forward parameters to WF invocation, take return value and pass on to promotion_resolver::operator()/promote() call chain with tuple of input params as an additional parameter. Generalize the base workfunction's localized result.

Parameters
views...Variadic list of views that are passed to the base workfunction.
Returns
The promoted return value of the workfunction.

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