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::reverse_binary_tree_pd< Op, Tag, Filter, isPositionAware, SetResult > Class Template Reference

A simple broadcast parametric dependency is usually used in combination with reverse_tree to define broadcast and defines the parametric dependency for each element in a broadcast tree. More...

Public Member Functions

 reverse_binary_tree_pd (Op op, Filter filter)
 
template<typename... Args>
void case_of (Args &&... args) const
 Dispatches the case_of request to the appropriate implementation based on the given tag.
 
template<typename Size , typename Coord , typename FlowIndex >
std::size_t consumer_count (Size const &skeleton_size, Coord const &, FlowIndex) const
 Determines how many of the instances of this parametric dependency will be consuming from a producer with a given coordinate. This is a reverse query as compared to case_of. More...
 
template<typename Coord >
int get_result_id (Coord const &skeleton_size, Coord const &coord) const
 
Op get_op () const
 
Op get_filter () const
 
template<typename Coord , typename Span >
void configure (Coord &&, Span &&)
 

Public Types

using op_type = Op
 

Static Public Attributes

static constexpr std::size_t in_port_size = 1
 
static constexpr std::size_t op_arity = 1
 

Detailed Description

template<typename Op, typename Tag, typename Filter, bool isPositionAware, bool SetResult>
class stapl::skeletons::skeletons_impl::reverse_binary_tree_pd< Op, Tag, Filter, isPositionAware, SetResult >

A simple broadcast parametric dependency is usually used in combination with reverse_tree to define broadcast and defines the parametric dependency for each element in a broadcast tree.

Template Parameters
Opthe workfunction to be used for each element
Tagspecifies the type of the parametric dependency
Filterthe filter to be applied on the inputs of each Op
See also
broadcast

Member Function Documentation

◆ consumer_count()

template<typename Op , typename Tag , typename Filter , bool isPositionAware, bool SetResult>
template<typename Size , typename Coord , typename FlowIndex >
std::size_t stapl::skeletons::skeletons_impl::reverse_binary_tree_pd< Op, Tag, Filter, isPositionAware, SetResult >::consumer_count ( Size const &  skeleton_size,
Coord const &  ,
FlowIndex   
) const

Determines how many of the instances of this parametric dependency will be consuming from a producer with a given coordinate. This is a reverse query as compared to case_of.

Parameters
skeleton_sizethe size of this skeleton
Template Parameters
FlowIndexthe flow index on which this request is sent

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