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

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

Public Member Functions

 zip (op_type const &op, SkeletonTraits const &traits)
 
op_type get_op (void) const
 
filter_type get_filter () const
 

Public Types

using skeleton_tag_type = tags::zip< stapl::use_default, Arity >
 
using op_type = Op
 
using filter_type = typename SkeletonTraits::filter_type
 

Static Public Attributes

static constexpr bool set_result = SkeletonTraits::set_result
 

Detailed Description

template<int Arity, typename Op, typename SkeletonTraits>
struct stapl::skeletons::skeletons_impl::zip< Arity, Op, SkeletonTraits >

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

A filtered zip skeleton is simply a parametric dependency that combines Arity elements in each fine-grain computation and applies the filter on the produced result.

This skeleton is the most used skeleton used in several composed skeletons such as map (which is simply zip<1>), sink, etc.

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

Template Parameters
Aritythe arity of the operation.
Opthe operation to be applied on the input.
SkeletonTraitsthe traits to be used
See also
skeleton_traits

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