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

One dimensional domain. More...

Public Member Functions

 ndom1D (size_t size, bool is_cont_dom=false)
 Domain constructor [0..size-1].
 
 ndom1D (ndom1D const &other)
 
 ndom1D (ndom1D const *other)
 
 ndom1D (index_type lwr, index_type uppr, bool is_cont_dom=false)
 Domain constructor [lower .. upper]. More...
 
 ndom1D (index_type lwr, index_type uppr, bool is_cont_dom, size_t)
 
 ndom1D (ndom1D const &, index_type lwr, index_type uppr, bool is_cont_dom=false)
 
 ndom1D (index_type lwr, index_type uppr, ndom1D const &)
 
size_type size () const
 
gid_type first (void) const
 
gid_type last () const
 
gid_type open_last () const
 
bool contains (index_type idx) const
 Returns true or false if the gid is in the domain.
 
bool empty () const
 
index_type advance (index_type idx, long n) const
 Returns an index that is n positions after the provided idx, based on the domain order.
 
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 less_than (index_type const &i0, index_type const &i1) const
 
bool is_same_container_domain () const
 
template<typename ODom >
ndom1D operator & (ODom const &other) const
 Domain intersection.
 
bool is_contiguous () const
 

Public Types

typedef Index_Type index_type
 
typedef Index_Type gid_type
 
typedef size_t size_type
 

Friends

template<typename IT >
std::ostream & operator<< (std::ostream &os, ndom1D< IT > const &d)
 

Detailed Description

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

One dimensional domain.

Template Parameters
Index_Typedefine the type of the gids in the domain.

Constructor & Destructor Documentation

◆ ndom1D()

template<typename Index_Type >
stapl::ndom1D< Index_Type >::ndom1D ( index_type  lwr,
index_type  uppr,
bool  is_cont_dom = false 
)

Domain constructor [lower .. upper].

Parameters
lwrLower index in the domain.
upprUpper index in the domain.

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