Mutable view over a single column in the grid.
More...
#include <spk_grid_2d.hpp>
|
| Unit & | operator[] (size_t y) |
| | Accesses an element within the column.
|
| const Unit & | operator[] (size_t y) const |
| | Read-only access to an element within the column.
|
|
|
Unit * | ptr |
| | Pointer to the first element of the column slice.
|
|
size_t | len |
| | Number of elements in the column slice.
|
template<typename T>
struct spk::Grid2D< T >::Row
Mutable view over a single column in the grid.
◆ operator[]() [1/2]
Accesses an element within the column.
- Parameters
-
| y | Row index inside the column. |
- Returns
- Reference to the requested cell.
◆ operator[]() [2/2]
Read-only access to an element within the column.
- Parameters
-
| y | Row index inside the column. |
- Returns
- Const reference to the requested cell.
The documentation for this struct was generated from the following file: