Defines an one dimensional domain composed of a set of intervals of consecutive indexes.
More...
|
| domset1D (set_type const &s, bool is_cont_dom=false) |
|
| domset1D (index_type const &lower, index_type const &upper, bool is_cont_dom=false) |
| Construct a domain with the given lower and upper bounds [lower .. upper]. More...
|
|
| domset1D (size_type size, bool is_cont_dom=true) |
| Constructs a domain [0..size-1 ]. More...
|
|
| domset1D (T const &lower, T const &upper, domset1D const &other) |
| Constructs a new domain by restricting the given other domain to be [first..last].
|
|
| domset1D (indexed_domain< gid_type > const &dom) |
| Constructs a new domain by converting it from an existing indexed_domain.
|
|
template<typename Dist > |
| domset1D (domainset1D< Dist > const &dom) |
| Constructs a new domain by extracting it from an existing domainset1D domain.
|
|
index_type | first (void) const |
|
index_type | last (void) const |
|
index_type | open_last (void) const |
| Returns termination value for comparison. More...
|
|
bool | contains (index_type const &idx) const |
|
size_type | size (void) const |
|
size_type | dimensions (void) const |
|
bool | empty (void) const |
|
bool | is_same_container_domain (void) const |
|
void | set_cont_dom (bool is_cont_dom=true) |
|
bool | operator== (domset1D const &other) const |
|
domset1D & | operator+= (domset1D const &other) |
| Adds all the indexes in the given other domain. More...
|
|
domset1D & | operator+= (index_type const &index) |
| Adds the given index to the domain.
|
|
domset1D & | operator-= (domset1D const &other) |
| Removes all the indexes in the given other domain from this domain. More...
|
|
domset1D & | operator-= (index_type const &index) |
| Removes the given index from the domain.
|
|
domset1D | operator+ (domset1D const &other) const |
| Returns the union between this domain and the given other domain.
|
|
domset1D | operator & (domset1D const &other) const |
| Returns the intersection between this domain and the given other domain.
|
|
template<typename ODom > |
domset1D | operator & (ODom const &other) const |
| Returns the intersection between this domain and the given other consecutive index domain (e.g., indexed_domain). More...
|
|
template<typename Distance > |
index_type | advance (index_type index, Distance const &n) const |
|
size_type | distance (index_type const &i0, index_type const &i1) const |
|
bool | is_contiguous (void) const |
|
template<typename T>
class stapl::domset1D< T >
Defines an one dimensional domain composed of a set of intervals of consecutive indexes.
- Template Parameters
-
- Warning
T
must be and integral type.