|
|
constexpr | MatrixView ()=default |
| | Default constructor.
|
|
constexpr | MatrixView (const shape_type &shape_xy, const stride_type &strides_xy, T *data) noexcept |
| | Create a new multi-dimensional view.
|
|
constexpr reference | operator[] (const index_type &index) noexcept |
| | Get the item at index.
|
|
constexpr const_reference | operator[] (const index_type &index) const noexcept |
| | Get the const item at index.
|
|
constexpr reference | at (const index_type &index) |
| | Get the item at index, checking bounds.
|
|
constexpr const_reference | at (const index_type &index) const |
| | Get the const item at index, checking bounds.
|
|
constexpr bool | in_bounds (const index_type &index) const noexcept |
| | Return true if index is within the bounds of this matrix.
|
template<typename T, size_t Dimensions>
class tcod::MatrixView< T, Dimensions >
A view into a strided multi-dimensional array.
- Template Parameters
-
| T | The type viewed by this object. |
| Dimensions | The number of dimensions of the view. |
This class is a work-in-progress.