STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Attributes
stapl::skeletons::spans::balanced< 1 > Class Template Reference

A balanced span which is used the most across the skeletons library. It assigns a balanced spawn load to each location. The load on each location is roughly $\frac{n}{p}$. More...

Public Member Functions

template<bool forced = false, typename Spawner , typename... Views>
void set_size (Spawner const &spawner, Views const &... views)
 
std::vector< domain_typelocal_domain () const
 
template<typename Coord >
bool should_spawn (Coord const &, Coord const &) const
 
size_type dimensions () const
 
size_type total_dimension (void) const
 
size_type task_dimension (void) const
 
std::vector< size_type > level_dimensions (void) const
 
std::size_t size () const
 
std::size_t linearize (index_type const &coord) const
 

Public Types

using dims_num = std::integral_constant< int, 1 >
 
using domain_type = indexed_domain< std::size_t >
 
using index_type = domain_type::index_type
 
using size_type = domain_type::size_type
 
using dimension_type = std::integral_constant< int, 1 >
 

Protected Attributes

balanced_partition< domain_typem_partition
 
std::size_t m_cur_pid
 

Detailed Description

template<>
class stapl::skeletons::spans::balanced< 1 >

A balanced span which is used the most across the skeletons library. It assigns a balanced spawn load to each location. The load on each location is roughly $\frac{n}{p}$.

Member Function Documentation

◆ local_domain()

std::vector<domain_type> stapl::skeletons::spans::balanced< 1 >::local_domain ( ) const

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