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

One dimensional block-cyclic domain. More...

Public Member Functions

 dom1Dbc (size_type size)
 Domain constructor [0..size-1] without cyclicity.
 
 dom1Dbc (dom1Dbc const &other)
 
 dom1Dbc (size_t blksz, size_t step, size_type size, size_t p=0)
 Domain constructor using a specific block size and cyclicity. More...
 
size_type size () const
 
gid_type first () const
 
gid_type last () const
 
index_type advance (index_type idx, long n) const
 
size_t distance (index_type const &i0, index_type const &i1) const
 Return the positive distance between two indices based on the domain order.
 
bool empty () const
 
bool contains (index_type idx) const
 

Public Types

typedef Index_Type index_type
 
typedef Index_Type gid_type
 
typedef size_t size_type
 

Protected Member Functions

gid_type logic_to_global (size_t i) const
 Maps indices from the logical (local) position into a global position.
 
size_t global_to_logic (gid_type g) const
 Maps indices from global position into a logic (local) position.
 

Friends

template<typename T1 >
std::ostream & operator<< (std::ostream &os, dom1Dbc< T1 > const &d)
 

Detailed Description

template<typename Index_Type>
struct stapl::dom1Dbc< Index_Type >

One dimensional block-cyclic domain.

Template Parameters
Index_Typedefine the type of the gids in the domain

Constructor & Destructor Documentation

◆ dom1Dbc()

template<typename Index_Type >
stapl::dom1Dbc< Index_Type >::dom1Dbc ( size_t  blksz,
size_t  step,
size_type  size,
size_t  p = 0 
)

Domain constructor using a specific block size and cyclicity.

Parameters
blkszBlock size.
stepCyclicity.
sizeNumber of elements in the domain.
pPartition where this domain belongs to.

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