Two dimensional domain implemented as a tuple of one-dimensional domains.
More...
|
| dom2D (size_t m, size_t n) |
| Construct the domain given the number of elements in each dimension. More...
|
|
| dom2D (OneD1 fdom, OneD2 sdom) |
| Construct the domain given the one-dimensional domains for each dimension. More...
|
|
| dom2D (domain_type &dom) |
|
| dom2D (index_type const &fst, index_type const &snd) |
|
size_t | size () const |
| Returns the number of elements in the domain.
|
|
size_type | size_twod () const |
| Returns the number of elements in each dimension.
|
|
gid_type | first () const |
|
gid_type | last () const |
|
bool | contains (index_type idx) const |
| Returns whether the specified index is in the domain.
|
|
bool | empty () const |
|
template<int N> |
tuple_element< N, domain_type >::type | get_domain () const |
| Return the domain associated with a specific dimension. More...
|
|
|
typedef tuple< typename OneD1::index_type, typename OneD2::index_type > | index_type |
|
typedef tuple< OneD1, OneD2 > | domain_type |
|
typedef tuple< typename OneD1::gid_type, typename OneD2::gid_type > | gid_type |
|
typedef tuple< typename OneD1::size_type, typename OneD2::size_type > | size_type |
|
|
static const gid_type | null_gid |
|
|
template<typename T1 , typename T2 > |
std::ostream & | operator<< (std::ostream &os, dom2D< T1, T2 > const &d) |
|
template<typename OneD1, typename OneD2 = OneD1>
struct stapl::dom2D< OneD1, OneD2 >
Two dimensional domain implemented as a tuple of one-dimensional domains.
- Template Parameters
-
OneD1 | type of the domain of the first dimension. |
OneD2 | type of the domain of the second dimension. |
◆ dom2D() [1/2]
template<typename OneD1 , typename OneD2 = OneD1>
Construct the domain given the number of elements in each dimension.
- Parameters
-
m | number of rows |
n | number of columns |
◆ dom2D() [2/2]
template<typename OneD1 , typename OneD2 = OneD1>
Construct the domain given the one-dimensional domains for each dimension.
- Parameters
-
fdom | domain of the first dimension. |
sdom | domain of the second dimension. |
◆ get_domain()
template<typename OneD1 , typename OneD2 = OneD1>
template<int N>
Return the domain associated with a specific dimension.
- Template Parameters
-
N | dimension to get the domain |
The documentation for this struct was generated from the following file: