![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
An n-dimensional boundary direction. More...
#include <BoundaryIter.hpp>
Public Types | |
| using | T_BoundaryVec = Vec<BoundaryType, T_dim> |
Public Member Functions | |
| constexpr | BoundaryDirection (concepts::Vector auto const &boundaries, T_LowHaloVec const &lower_halo_sizes, T_UpHaloVec const &upper_halo_sizes) |
| constexpr uint32_t | boundaryDimensionality () const |
| The dimensionality of the boundary direction. | |
| constexpr bool | isCell () const |
| Return true if this boundary direction describes a cell, for example the interior of a cube or one of the 8 cells in a tesseract. | |
| constexpr bool | isEdge () const |
| Return true if this boundary direction describes an edge, for example any of the 12 edges of a cube. | |
| constexpr bool | isFace () const |
| Return true if this boundary direction describes a face, for example any of the 6 sides of a cube. | |
| constexpr bool | isInterior () const |
| Return true if this boundary direction describes the interior of a volume, like the 2D interior of a plane or the 3D interior of a cube. | |
| constexpr bool | isVertex () const |
| Return true if this boundary direction describes a vertex, for example the corner of a plane. | |
| constexpr auto | operator<=> (BoundaryDirection const &) const =default |
Static Public Member Functions | |
| static constexpr uint32_t | dim () |
| The dimensionality of the whole volume that this is a boundary direction for. | |
Public Attributes | |
| T_BoundaryVec | data |
| T_LowHaloVec | lowerHaloSize |
| T_UpHaloVec | upperHaloSize |
An n-dimensional boundary direction.
Encodes a single unique boundary of an nD volume, e.g., a specific corner of a 2D plane or a side of a 3D cube.
See also: BoundaryDirectionsContainer
| T_dim | The dimensionality of the volume that this is a boundary direction for. |
| T_LowHaloVec | The vector type used for the lower halo sizes. |
| T_UpHaloVec | The vector type used for the upper halo sizes. |
Definition at line 43 of file BoundaryIter.hpp.
| using alpaka::BoundaryDirection< T_dim, T_LowHaloVec, T_UpHaloVec >::T_BoundaryVec = Vec<BoundaryType, T_dim> |
Definition at line 45 of file BoundaryIter.hpp.
|
inlineconstexpr |
Definition at line 51 of file BoundaryIter.hpp.
|
inlinenodiscardconstexpr |
The dimensionality of the boundary direction.
For example, a vertex (corner) of a 3D-volume (cube) is 0-dimensional. See also the functions isVertex(), isEdge(), etc.
Definition at line 72 of file BoundaryIter.hpp.
|
inlinestaticnodiscardconstexpr |
The dimensionality of the whole volume that this is a boundary direction for.
Not to be confused with boundaryDimensionality().
Definition at line 64 of file BoundaryIter.hpp.
|
inlinenodiscardconstexpr |
Return true if this boundary direction describes a cell, for example the interior of a cube or one of the 8 cells in a tesseract.
Definition at line 107 of file BoundaryIter.hpp.
|
inlinenodiscardconstexpr |
Return true if this boundary direction describes an edge, for example any of the 12 edges of a cube.
Definition at line 92 of file BoundaryIter.hpp.
|
inlinenodiscardconstexpr |
Return true if this boundary direction describes a face, for example any of the 6 sides of a cube.
Definition at line 99 of file BoundaryIter.hpp.
|
inlinenodiscardconstexpr |
Return true if this boundary direction describes the interior of a volume, like the 2D interior of a plane or the 3D interior of a cube.
Definition at line 115 of file BoundaryIter.hpp.
|
inlinenodiscardconstexpr |
Return true if this boundary direction describes a vertex, for example the corner of a plane.
Definition at line 85 of file BoundaryIter.hpp.
|
nodiscardconstexprdefault |
| T_BoundaryVec alpaka::BoundaryDirection< T_dim, T_LowHaloVec, T_UpHaloVec >::data |
Definition at line 47 of file BoundaryIter.hpp.
| T_LowHaloVec alpaka::BoundaryDirection< T_dim, T_LowHaloVec, T_UpHaloVec >::lowerHaloSize |
Definition at line 48 of file BoundaryIter.hpp.
| T_UpHaloVec alpaka::BoundaryDirection< T_dim, T_LowHaloVec, T_UpHaloVec >::upperHaloSize |
Definition at line 49 of file BoundaryIter.hpp.