Defines an explicit one dimensional domain composed of indexes. The order of the indexes in the domain is given by the user. Each index that is valid in this domain must be explicitly enumerated.
More...
|
| explicit_domain (sequence_type const &sequence, bool is_cont_dom=false) |
| Construct the domain with the elements of a std vector. The order of the elements is maintained. More...
|
|
| explicit_domain (index_type const &lower, index_type const &upper, explicit_domain const &other) |
| Constructs a new domain by restricting the given other domain to be [lower..upper].
|
|
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 |
|
bool | empty (void) const |
|
bool | is_same_container_domain (void) const |
|
template<typename Distance > |
index_type | advance (index_type const &idx, Distance n) const |
|
size_type | distance (index_type const &i0, index_type const &i1) const |
|
explicit_domain | operator & (explicit_domain const &other) const |
| Returns the intersection between this domain and the given other domain.
|
|
sequence_type const & | get_sequence (void) const |
|
template<typename T>
class stapl::explicit_domain< T >
Defines an explicit one dimensional domain composed of indexes. The order of the indexes in the domain is given by the user. Each index that is valid in this domain must be explicitly enumerated.
- Template Parameters
-