|
waLBerla 7.2
|
A representation of a Cell's coordinates (in 3D)
#include <Cell.h>
Public Member Functions | |
Constructors | |
| Cell ()=default | |
| Cell (const cell_idx_t _x, const cell_idx_t _y, const cell_idx_t _z) | |
| Cell (const Vector3< cell_idx_t > _vec) | |
| Cell (const uint_t _x, const uint_t _y, const uint_t _z) | |
| Cell (const Vector3< uint_t > _vec) | |
Arithmetic operators | |
| Cell | operator+ (const Cell &rhs) const |
| Operator for component-wise addition of two cells. | |
| Cell | operator- (const Cell &rhs) const |
| Operator for component-wise subtraction of two cells. | |
| Cell & | operator+= (const Cell &rhs) |
| Additive compound assignment operator. | |
| Cell & | operator-= (const Cell &rhs) |
| Subtractive compound assignment operator. | |
| Cell | operator+ () const |
| Unary plus operator. | |
| Cell | operator- () const |
| Unary negation operator. | |
Comparison operators | |
| bool | operator< (const Cell &rhs) const |
| Less-than comparison operator for Cells. | |
| bool | operator== (const Cell &rhs) const |
| Equal comparison operator for Cells. | |
| bool | operator!= (const Cell &rhs) const |
Access operators | |
| std::array< cell_idx_t, 3 > | cell |
| Array of the cells coordinates. cell == {x, y, z}. | |
| cell_idx_t | operator[] (std::size_t idx) const |
| Operator providing read-only element access of a const Cell. | |
| cell_idx_t & | operator[] (std::size_t idx) |
| Operator providing element access of a Cell. | |
| cell_idx_t | x () const |
| cell_idx_t & | x () |
| cell_idx_t | y () const |
| cell_idx_t & | y () |
| cell_idx_t | z () const |
| cell_idx_t & | z () |
| bool | positiveIndicesOnly () const |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
Unary plus operator.
Operator for component-wise addition of two cells.
| [in] | rhs | The cell added to this. |
Additive compound assignment operator.
| [in] | rhs | The cell added to this. |
|
inline |
Unary negation operator.
Operator for component-wise subtraction of two cells.
| [in] | rhs | The cell subtracted from this. |
Subtractive compound assignment operator.
| [in] | rhs | The cell subtracted from this. |
|
inline |
Less-than comparison operator for Cells.
Compares a cell's coordinates lexicographically (first x, then eventually y and (if necessary) finally z).
| [in] | rhs | the cell compared to *this. |
|
inline |
Equal comparison operator for Cells.
Compares a cell's coordinates for equality (first x, then eventually y and (if necessary) finally z).
| [in] | rhs | The cell compared to *this. |
|
inline |
Operator providing element access of a Cell.
| [in] | idx | Zero-based index of the cell's coordinate component. |
|
inline |
Operator providing read-only element access of a const Cell.
| [in] | idx | Zero-based index of the cell's coordinate component. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Array of the cells coordinates. cell == {x, y, z}.