Corrade/Containers/StridedArrayView.h file

Class Corrade::Containers::StridedArrayView, Corrade::Containers::StridedIterator.

Contents

Namespaces

namespace Corrade
Root namespace.
namespace Corrade::Containers
Container implementations.

Classes

template<unsigned dimensions, class T>
class Corrade::Containers::StridedDimensions
Helper for specifying sizes and strides for StridedArrayView.
template<unsigned dimensions, class T>
class Corrade::Containers::StridedArrayView
Multi-dimensional array view with size and stride information.
template<unsigned dimensions, class T>
class Corrade::Containers::StridedIterator
Strided array view iterator.

Typedefs

template<class T>
using StridedArrayView1D = StridedArrayView<1, T>
One-dimensional strided array view.
template<class T>
using StridedArrayView2D = StridedArrayView<2, T>
Two-dimensional strided array view.
template<class T>
using StridedArrayView3D = StridedArrayView<3, T>
Three-dimensional strided array view.

Functions

template<std::size_t size, class T>
auto stridedArrayView(T(&data)[size]) -> StridedArrayView1D<T> constexpr
Make a strided view on fixed-size array.
template<class T>
auto stridedArrayView(ArrayView<T> view) -> StridedArrayView1D<T> constexpr
Make a strided view on ArrayView.
template<std::size_t size, class T>
auto stridedArrayView(StaticArrayView<size, T> view) -> StridedArrayView1D<T> constexpr
Make a strided view on StaticArrayView.
template<unsigned dimensions, class T>
auto stridedArrayView(StridedArrayView<dimensions, T> view) -> StridedArrayView<dimensions, T> constexpr
Make a view on a view.
template<class T, class U = decltype(stridedArrayView(Implementation::ErasedArrayViewConverter<typename std::remove_reference<T && >::type>::from(std::declval<T && >())))>
auto stridedArrayView(T&& other) -> U constexpr
Make a strided view on an external type / from an external representation.
template<class U, unsigned dimensions, class T>
auto arrayCast(const StridedArrayView<dimensions, T>& view) -> StridedArrayView<dimensions, U>
Reinterpret-cast a strided array view.
template<unsigned newDimensions, class U, unsigned dimensions, class T>
auto arrayCast(const StridedArrayView<dimensions, T>& view) -> StridedArrayView<newDimensions, U>
Reinterpret-cast and flatten or inflate a strided array view.