Grid dimensions (number of grid points per dimension)
More...
#include <strong_types.hpp>
|
|
Int3 | value |
| | Underlying array value.
|
| |
Grid dimensions (number of grid points per dimension)
Represents the size of the computational grid in each dimension. Use this instead of raw Int3 for function parameters to make intent clear and catch argument order mistakes.
- Note
- Zero-cost:
sizeof(GridSize) == sizeof(Int3)
-
Trivially copyable: No heap allocation or deep copy
Grid dimensions (number of grid points per dimension)
Definition strong_types.hpp:176
Represents the global simulation domain (the "world").
Definition world.hpp:91
- Examples
- 04_diffusion_model.cpp, and world_strong_types_example.cpp.
◆ GridSize()
| pfc::GridSize::GridSize |
( |
const Int3 & |
v | ) |
|
|
inline |
Construct from Int3 (implicit for backward compatibility)
- Parameters
-
◆ get()
| const Int3 & pfc::GridSize::get |
( |
| ) |
const |
|
inlinenoexcept |
Get underlying value.
- Returns
- Reference to underlying Int3
◆ operator const Int3 &()
| pfc::GridSize::operator const Int3 & |
( |
| ) |
const |
|
inlinenoexcept |
Implicit conversion to Int3.
- Returns
- Reference to underlying Int3
◆ operator!=()
Inequality comparison.
- Parameters
-
- Returns
- true if values are not equal
◆ operator==()
Equality comparison.
- Parameters
-
- Returns
- true if values are equal
The documentation for this struct was generated from the following file: