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

Partition a domain representing a regular mesh. More...

Public Member Functions

 spatial_regular_domain_decompose (domain_type const &dom, tuple_type const &num_partitions)
 Default constructor. More...
 
domain_type operator[] (size_t idx) const
 Take a partition index and return the corresponding partitioned domain. More...
 
size_t size () const
 

Public Types

typedef Dom domain_type
 
typedef domain_type::gid_type gid_type
 
typedef domain_type::tuple_type tuple_type
 

Detailed Description

template<typename Dom>
struct stapl::spatial_regular_domain_decompose< Dom >

Partition a domain representing a regular mesh.

Template Parameters
Domregular mesh domain type.

Constructor & Destructor Documentation

◆ spatial_regular_domain_decompose()

template<typename Dom >
stapl::spatial_regular_domain_decompose< Dom >::spatial_regular_domain_decompose ( domain_type const &  dom,
tuple_type const &  num_partitions 
)

Default constructor.

Parameters
domregular mesh domain to partition.
num_partitionsnumber of partitions in each dimension.

Member Function Documentation

◆ operator[]()

template<typename Dom >
domain_type stapl::spatial_regular_domain_decompose< Dom >::operator[] ( size_t  idx) const

Take a partition index and return the corresponding partitioned domain.

Parameters
idxpartition index
Returns
domain representing the partition idx

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