STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Attributes
stapl::partitions_impl::partitions_generator< I, Domain, Tuple > Struct Template Reference

Function object that initializes an n-dimensional tuple of partitions to n balanced partitions, each partitioned by the number of locations. More...

Public Member Functions

 partitions_generator (Domain const &domain)
 
 partitions_generator (Domain const &domain, location_type nlocs)
 
Tuple operator() (Tuple t)
 Function operator to initialize the tuple. More...
 
template<typename NParts >
Tuple operator() (Tuple t, NParts nparts)
 Function operator to initialize the tuple. More...
 

Public Attributes

Domain m_domain
 
location_type m_nlocs
 

Detailed Description

template<int I, typename Domain, typename Tuple>
struct stapl::partitions_impl::partitions_generator< I, Domain, Tuple >

Function object that initializes an n-dimensional tuple of partitions to n balanced partitions, each partitioned by the number of locations.

Template Parameters
IThe dimension of the partition that is currently being populated.
DomainThe domain that is to be partitioned
TupleThe type of the tuple to populate

Member Function Documentation

◆ operator()() [1/2]

template<int I, typename Domain , typename Tuple >
Tuple stapl::partitions_impl::partitions_generator< I, Domain, Tuple >::operator() ( Tuple  t)

Function operator to initialize the tuple.

Parameters
tThe tuple of partitions that is to be initialized.

◆ operator()() [2/2]

template<int I, typename Domain , typename Tuple >
template<typename NParts >
Tuple stapl::partitions_impl::partitions_generator< I, Domain, Tuple >::operator() ( Tuple  t,
NParts  nparts 
)

Function operator to initialize the tuple.

Parameters
tThe tuple of partitions that is to be initialized.
npartsThe number of partitions to generate in this dimension

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