![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Read-only byte view over AoS values. More...
#include <data_layout_policy.h>
Inheritance diagram for gaia::mem::data_view_policy_aos_get< ValueType >:Public Types | |
| using | view_policy = data_view_policy_aos< ValueType > |
| Underlying storage policy. | |
Public Member Functions | |
| data_view_policy_aos_get (std::span< uint8_t > data) | |
| Creates a read-only view over mutable bytes. | |
| data_view_policy_aos_get (std::span< const uint8_t > data) | |
| Creates a read-only view over bytes. | |
| template<typename C > | |
| data_view_policy_aos_get (const C &c) | |
| Creates a read-only view over a contiguous container. | |
| GAIA_NODISCARD const ValueType & | operator[] (size_t idx) const noexcept |
| Returns a value by index. | |
| GAIA_NODISCARD decltype(auto) | data () const noexcept |
| Returns the backing byte address. | |
| GAIA_NODISCARD auto | size () const noexcept |
| Returns the backing span size. | |
Public Attributes | |
| std::span< const uint8_t > | m_data |
| Raw data pointed to by the view policy. | |
Read-only byte view over AoS values.
| ValueType | Stored value type. |
|
inline |
Creates a read-only view over mutable bytes.
| data | Backing byte span. |
|
inline |
Creates a read-only view over bytes.
| data | Backing byte span. |
|
inline |
Creates a read-only view over a contiguous container.
| C | Contiguous container type. |
| c | Backing container. |
|
inlinenoexcept |
Returns the backing byte address.
|
inlinenoexcept |
Returns a value by index.
| idx | Value index. |
|
inlinenoexcept |
Returns the backing span size.