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

Defines a one dimensional distributed domain for indexes that are not necessarily consecutive. More...

Public Member Functions

 domainset1D (Distribution const &dist)
 
 domainset1D (size_type size, bool is_cont_dom=true)
 
 domainset1D (sparse_domain const &sparse_dom)
 
 domainset1D (sparse_domain const &sparse_dom, Distribution *)
 
 domainset1D (index_type const &first, index_type const &last, bool is_cont_dom=false)
 Constructor used in view coarsening to construct subdomains.
 
 domainset1D (index_type const &first, index_type const &last, domainset1D const &dom)
 Constructs a new domain by restricting the given domain (dom) to be between first and last (included).
 
 domainset1D (indexed_domain< gid_type > const &dom)
 Constructs a new domain by converting it from an existing indexed_domain.
 
index_type first (void) const
 
index_type last (void) const
 
index_type open_last (void) const
 
template<typename Distance >
index_type advance (index_type const &g, Distance n) const
 
size_type size (void) const
 
size_type dimensions (void) const
 
size_type local_size (void) const
 
bool contains (index_type const &g) const
 
bool empty (void) const
 
size_type distance (index_type const &a, index_type const &b) const
 
domainset1Doperator+= (index_type const &gid)
 Adds the given gid to the domain.
 
domainset1Doperator-= (index_type const &gid)
 Removes the given gid from the domain.
 
bool is_same_container_domain (void) const
 
bool is_contiguous (void) const
 
domainset1D operator & (domainset1D const &other) const
 
sparse_domain const & get_sparse_domain (void) const
 
Distribution const * get_distribution (void) const
 

Public Types

typedef default_traversal< 1 >::type traversal_type
 
typedef container_traits< Distribution >::gid_type index_type
 
typedef index_type gid_type
 
typedef std::size_t size_type
 
typedef domset1D< gid_type > sparse_domain
 

Friends

template<typename T >
std::ostream & operator<< (std::ostream &, domainset1D< T > const &)
 

Detailed Description

template<typename Distribution>
class stapl::domainset1D< Distribution >

Defines a one dimensional distributed domain for indexes that are not necessarily consecutive.

Template Parameters
DistributionType of distribution used to support the methods.

Constructor & Destructor Documentation

◆ domainset1D() [1/2]

template<typename Distribution >
stapl::domainset1D< Distribution >::domainset1D ( sparse_domain const &  sparse_dom)

◆ domainset1D() [2/2]

template<typename Distribution >
stapl::domainset1D< Distribution >::domainset1D ( sparse_domain const &  sparse_dom,
Distribution *   
)

Member Function Documentation

◆ is_contiguous()

template<typename Distribution >
bool stapl::domainset1D< Distribution >::is_contiguous ( void  ) const

◆ operator &()

template<typename Distribution >
domainset1D stapl::domainset1D< Distribution >::operator& ( domainset1D< Distribution > const &  other) const


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