STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::sliced_partition< Slices, Dom > Class Template Reference

Partitioner that slices off dimensions of a d-dimensional domain to produce subdomains of dimension d-|Slices|. More...

Public Member Functions

 sliced_partition (Dom const &domain)
 
Dom const & global_domain () const
 The original domain that is being partitioned.
 
domain_type const & domain () const
 The domain that contains the indices of the subdomains.
 
domain_type::size_type dimensions () const
 The size in each dimension of the number of subdomains.
 
value_type operator[] (index_type const &idx) const
 Returns the idx-th domain in the partition.
 
size_t size () const
 Return the number of partitions generated.
 

Public Types

typedef detail::SLICED_view_domain< original_dimension_t::value-number_of_slices_t::value, scalar_index_t >::type value_type
 The type of the produces subdomains. They have dimensionality d-|Slices|.
 
typedef detail::SLICED_view_domain< number_of_slices_t::value, scalar_index_t >::type domain_type
 
typedef value_type::index_type gid_type
 The type of the GIDs in the produced subdomains.
 
typedef domain_type::gid_type index_type
 The type used to index subdomains in this partition.
 
typedef Slices slices_type
 

Detailed Description

template<typename Slices, typename Dom>
class stapl::sliced_partition< Slices, Dom >

Partitioner that slices off dimensions of a d-dimensional domain to produce subdomains of dimension d-|Slices|.

This partitioner is only valid on domains that have homogeneous GID types.

Template Parameters
SlicesA tuple of compile time integral constants to specify the dimensions to slice off
DomThe multidimensional domain type that is being sliced

Member Typedef Documentation

◆ domain_type

template<typename Slices , typename Dom >
typedef detail::SLICED_view_domain< number_of_slices_t::value, scalar_index_t >::type stapl::sliced_partition< Slices, Dom >::domain_type

The type of the domain of this partition, which has dimensionality |Slices|

Constructor & Destructor Documentation

◆ sliced_partition()

template<typename Slices , typename Dom >
stapl::sliced_partition< Slices, Dom >::sliced_partition ( Dom const &  domain)
Parameters
domainThe global domain to partition

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