Sparkle 0.0.1
Loading...
Searching...
No Matches
spk::Grid2D< T >::ConstRow Struct Reference

Immutable view over a single column in the grid. More...

#include <spk_grid_2d.hpp>

Collaboration diagram for spk::Grid2D< T >::ConstRow:
Collaboration graph

Public Member Functions

const Unitoperator[] (size_t y) const
 Read-only access to an element within the column.

Public Attributes

const Unitptr
 Pointer to the first element of the column slice.
size_t len
 Number of elements in the column slice.

Detailed Description

template<typename T>
struct spk::Grid2D< T >::ConstRow

Immutable view over a single column in the grid.

Member Function Documentation

◆ operator[]()

template<typename T>
const Unit & spk::Grid2D< T >::ConstRow::operator[] ( size_t y) const
inline

Read-only access to an element within the column.

Parameters
yRow index inside the column.
Returns
Const reference to the requested cell.

The documentation for this struct was generated from the following file: