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. More... | |
Cell | operator- (const Cell &rhs) const |
Operator for component-wise subtraction of two cells. More... | |
Cell & | operator+= (const Cell &rhs) |
Additive compound assignment operator. More... | |
Cell & | operator-= (const Cell &rhs) |
Subtractive compound assignment operator. More... | |
Cell | operator+ () const |
Unary plus operator. More... | |
Cell | operator- () const |
Unary negation operator. More... | |
Comparison operators | |
bool | operator< (const Cell &rhs) const |
Less-than comparison operator for Cells. More... | |
bool | operator== (const Cell &rhs) const |
Equal comparison operator for Cells. More... | |
bool | operator!= (const Cell &rhs) const |
Access operators | |
cell_idx_t | cell [3] |
Array of the cells coordinates. cell == {x, y, z}. More... | |
cell_idx_t | operator[] (std::size_t idx) const |
Operator providing read-only element access of a const Cell. More... | |
cell_idx_t & | operator[] (std::size_t idx) |
Operator providing element access of a Cell. More... | |
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 |
|
inline |
|
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}.