Encapsulation of the Orientation of the Faces of a Box.
More...
#include <AMReX_Orientation.H>
|
| constexpr | Orientation () noexcept=default |
| | The default constructor.
|
| |
| __host__ __device__ | Orientation (int dir, Side side) noexcept |
| | Set the orientation of a side.
|
| |
| __host__ __device__ constexpr | Orientation (Direction dir, Side side) noexcept |
| |
| __host__ __device__ bool | operator== (const Orientation &o) const noexcept |
| | Logical equality.
|
| |
| __host__ __device__ bool | operator!= (const Orientation &o) const noexcept |
| | Logical inequality.
|
| |
| __host__ __device__ bool | operator< (const Orientation &o) const noexcept |
| | Less-than.
|
| |
| __host__ __device__ bool | operator<= (const Orientation &o) const noexcept |
| | Less-than or equal.
|
| |
| __host__ __device__ bool | operator> (const Orientation &o) const noexcept |
| | Greater-than.
|
| |
| __host__ __device__ bool | operator>= (const Orientation &o) const noexcept |
| | Greater-than or equal.
|
| |
| __host__ __device__ constexpr | operator int () const noexcept |
| | This conversion operator maps an orientation into a unique integer in the range [0 .. 2*AMREX_SPACEDIM-1] according to the above ordering.
|
| |
| __host__ __device__ Orientation | flip () const noexcept |
| | Return opposite orientation.
|
| |
| __host__ __device__ int | coordDir () const noexcept |
| | Returns the coordinate direction.
|
| |
| __host__ __device__ Side | faceDir () const noexcept |
| | Returns the orientation of the face – low or high.
|
| |
| __host__ __device__ bool | isLow () const noexcept |
| | Returns true if Orientation is low.
|
| |
| __host__ __device__ bool | isHigh () const noexcept |
| | Returns true if Orientation is high.
|
| |
|
| __host__ static __device__ constexpr int | xlo () noexcept |
| | Int value of the x-lo-face.
|
| |
| __host__ static __device__ constexpr int | xhi () noexcept |
| | Int value of the x-hi-face.
|
| |
| __host__ static __device__ constexpr int | ylo () noexcept |
| | Int value of the y-lo-face.
|
| |
| __host__ static __device__ constexpr int | yhi () noexcept |
| | Int value of the y-hi-face.
|
| |
| __host__ static __device__ constexpr int | zlo () noexcept |
| | Int value of the z-lo-face.
|
| |
| __host__ static __device__ constexpr int | zhi () noexcept |
| | Int value of the z-hi-face.
|
| |
|
| __host__ __device__ | Orientation (int v) noexcept |
| | Used internally.
|
| |
Encapsulation of the Orientation of the Faces of a Box.
This class encapsulates the orientation of the faces of a Box by providing an ordering of each of the faces of a Box in AMREX_SPACEDIM dimensions. This allows iterating over all the faces of a Box. The ordering first traverses the AMREX_SPACEDIM low sides from direction 0 .. AMREX_SPACEDIM-1 and then the AMREX_SPACEDIM high sides from direction 0 .. AMREX_SPACEDIM-1.
◆ Side
In each dimension a face is either low or high.
◆ Orientation() [1/4]
| constexpr amrex::Orientation::Orientation |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ Orientation() [2/4]
| __host__ __device__ amrex::Orientation::Orientation |
( |
int |
dir, |
|
|
Side |
side |
|
) |
| |
|
inlinenoexcept |
Set the orientation of a side.
◆ Orientation() [3/4]
| __host__ __device__ constexpr amrex::Orientation::Orientation |
( |
Direction |
dir, |
|
|
Side |
side |
|
) |
| |
|
inlineconstexprnoexcept |
◆ Orientation() [4/4]
| __host__ __device__ amrex::Orientation::Orientation |
( |
int |
v | ) |
|
|
inlineprivatenoexcept |
◆ coordDir()
| __host__ __device__ int amrex::Orientation::coordDir |
( |
| ) |
const |
|
inlinenoexcept |
Returns the coordinate direction.
◆ faceDir()
| __host__ __device__ Side amrex::Orientation::faceDir |
( |
| ) |
const |
|
inlinenoexcept |
Returns the orientation of the face – low or high.
◆ flip()
| __host__ __device__ Orientation amrex::Orientation::flip |
( |
| ) |
const |
|
inlinenoexcept |
Return opposite orientation.
◆ isHigh()
| __host__ __device__ bool amrex::Orientation::isHigh |
( |
| ) |
const |
|
inlinenoexcept |
◆ isLow()
| __host__ __device__ bool amrex::Orientation::isLow |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator int()
| __host__ __device__ constexpr amrex::Orientation::operator int |
( |
| ) |
const |
|
inlineconstexprnoexcept |
This conversion operator maps an orientation into a unique integer in the range [0 .. 2*AMREX_SPACEDIM-1] according to the above ordering.
◆ operator!=()
| __host__ __device__ bool amrex::Orientation::operator!= |
( |
const Orientation & |
o | ) |
const |
|
inlinenoexcept |
◆ operator<()
| __host__ __device__ bool amrex::Orientation::operator< |
( |
const Orientation & |
o | ) |
const |
|
inlinenoexcept |
◆ operator<=()
| __host__ __device__ bool amrex::Orientation::operator<= |
( |
const Orientation & |
o | ) |
const |
|
inlinenoexcept |
◆ operator==()
| __host__ __device__ bool amrex::Orientation::operator== |
( |
const Orientation & |
o | ) |
const |
|
inlinenoexcept |
◆ operator>()
| __host__ __device__ bool amrex::Orientation::operator> |
( |
const Orientation & |
o | ) |
const |
|
inlinenoexcept |
◆ operator>=()
| __host__ __device__ bool amrex::Orientation::operator>= |
( |
const Orientation & |
o | ) |
const |
|
inlinenoexcept |
◆ xhi()
| __host__ static __device__ constexpr int amrex::Orientation::xhi |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
Int value of the x-hi-face.
◆ xlo()
| __host__ static __device__ constexpr int amrex::Orientation::xlo |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
Int value of the x-lo-face.
◆ yhi()
| __host__ static __device__ constexpr int amrex::Orientation::yhi |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
Int value of the y-hi-face.
◆ ylo()
| __host__ static __device__ constexpr int amrex::Orientation::ylo |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
Int value of the y-lo-face.
◆ zhi()
| __host__ static __device__ constexpr int amrex::Orientation::zhi |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
Int value of the z-hi-face.
◆ zlo()
| __host__ static __device__ constexpr int amrex::Orientation::zlo |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
Int value of the z-lo-face.
◆ operator>>
| std::istream & operator>> |
( |
std::istream & |
is, |
|
|
Orientation & |
o |
|
) |
| |
|
friend |
◆ OrientationIter
◆ val
| int amrex::Orientation::val = -1 |
|
private |
The documentation for this class was generated from the following file: