5#include <vitrio/array/array_descriptor.hpp>
6#include <vitrio/byte.hpp>
7#include <vitrio/export.hpp>
8#include <vitrio/span.hpp>
15class array_implementation;
56 span<const
byte> memory,
57 std::shared_ptr<const
void> owner,
103 std::shared_ptr<const array_implementation> implementation
106 std::shared_ptr<const array_implementation> m_implementation;
How a block of memory is read as a multidimensional array.
Definition array_descriptor.hpp:31
A multidimensional array of numbers in host memory.
Definition array.hpp:37
A multidimensional array of numbers that cannot be written through.
Definition const_array.hpp:29
const array_descriptor & get_descriptor() const noexcept
Get how the memory is read as an array.
const byte * get_data() const noexcept
Get the memory holding the elements.
const_array() noexcept
Construct an array that holds nothing.
const_array share() const noexcept
Make another read-only array over the same memory.
A view of a contiguous sequence of elements.
Definition span.hpp:29