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

One dimensional domain. More...

Public Member Functions

 dom1D (domain_t dom)
 
 dom1D (dom1D const &dom)
 
template<typename KDom >
 dom1D (dom1D< T, KDom > const &dom)
 
 dom1D (index_type lower, index_type upper, bool is_full_dom=false)
 
 dom1D (size_t n)
 
 dom1D (index_type lower, index_type upper, bool is_full_dom, size_t sz)
 
 dom1D (index_type lower, index_type upper, dom1D const &other)
 
size_t size () const
 Returns the number of elements in the domain.
 
gid_type first () const
 Returns the first index in the domain.
 
gid_type last () const
 Returns the last index in the domain.
 
gid_type open_last () const
 
gid_type end () const
 
bool contains (index_type idx) const
 Returns whether the specified index is in the domain.
 
bool empty () const
 
index_type advance (index_type idx, long long n) const
 
bool less_than (index_type const &i0, index_type const &i1) const
 
size_t distance (index_type const &i0, index_type const &i1) const
 
bool is_same_container_domain () const
 
dom1D operator & (dom1D const &other) const
 
template<typename ODom >
dom1D operator & (ODom const &other)
 
dom1D operator & (dom1D const &other)
 
bool is_contiguous () const
 
template<int N>
tuple_element< N, domain_type >::type get_domain () const
 

Public Types

typedef Dom domain_t
 
typedef tuple< domain_t > domain_type
 
typedef domain_t::index_type index_type
 
typedef domain_t::gid_type gid_type
 
typedef domain_t::size_type size_type
 

Public Attributes

domain_type m_domain
 

Static Public Attributes

static const gid_type null_gid
 

Friends

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

Detailed Description

template<typename T, typename Dom = ndom1D<T>>
struct stapl::dom1D< T, Dom >

One dimensional domain.

Template Parameters
TIndex type of the domain.
DomStorage type of the domain.

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