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