STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::skeletons::skeletons_impl::sink_value< Skeleton, ValueType, SkeletonTraits > Struct Template Reference

This class abstracts the semantics of a sink_value skeleton by exposing only the necessary information in its representation. More...

Public Member Functions

 sink_value (Skeleton const &skeleton, SkeletonTraits const &traits)
 

Public Types

using skeleton_tag_type = tags::sink_value< Skeleton >
 
using span_type = typename SkeletonTraits::span_type
 
using base_type = decltype(skeletons::compose(std::declval< Skeleton >(), skeletons::set_result(stapl::identity< ValueType >(), std::declval< SkeletonTraits >())))
 
using value_type = ValueType
 
using inner_sk_tag = typename Skeleton::skeleton_tag_type
 
using op_type = stapl::identity< value_type >
 

Detailed Description

template<typename Skeleton, typename ValueType, typename SkeletonTraits>
struct stapl::skeletons::skeletons_impl::sink_value< Skeleton, ValueType, SkeletonTraits >

This class abstracts the semantics of a sink_value skeleton by exposing only the necessary information in its representation.

A sink_value skeleton pipes the data produced from a skeleton to a set of identity tasks which are labeled as results tasks. Result tasks in a PARAGRAPH environment (taskgraph_env) allow values to be returned from a PARAGRAPH.

Note
This skeleton is not designed to be used with other environments unless the same functionality (defining result tasks) is defined in the given environment.

This abstraction not only makes the reconstruction of a a sink_value skeleton easier, but also reduces the symbol size for a sink_value skeleton, hence, reducing the total compilation time.

Template Parameters
Skeletonthe skeleton to be piped into result tasks.
ValueTypethe value type for the result tasks.
Spanthe iteration space for the elements in the skeleton.

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