Type-erased policy for addressing one field value in SoA storage. The field arrays use the same alignment and capacity rules as data_view_policy_soa.
More...
#include <data_layout_policy.h>
|
| static GAIA_NODISCARD const uint8_t * | get (const void *pData, uint32_t alignment, std::span< const uint8_t > fieldSizes, uint32_t fieldIdx, uint32_t row, uint32_t capacity) noexcept |
| | Returns one read-only field value from type-erased SoA storage.
|
| |
| static GAIA_NODISCARD uint8_t * | set (void *pData, uint32_t alignment, std::span< const uint8_t > fieldSizes, uint32_t fieldIdx, uint32_t row, uint32_t capacity) noexcept |
| | Returns one mutable field value from type-erased SoA storage.
|
| |
Type-erased policy for addressing one field value in SoA storage. The field arrays use the same alignment and capacity rules as data_view_policy_soa.
◆ get()
| static GAIA_NODISCARD const uint8_t * gaia::mem::data_view_policy_soa_erased::get |
( |
const void * |
pData, |
|
|
uint32_t |
alignment, |
|
|
std::span< const uint8_t > |
fieldSizes, |
|
|
uint32_t |
fieldIdx, |
|
|
uint32_t |
row, |
|
|
uint32_t |
capacity |
|
) |
| |
|
inlinestaticnoexcept |
Returns one read-only field value from type-erased SoA storage.
- Parameters
-
| pData | Base address of the SoA storage. |
| alignment | Alignment shared by all field arrays. |
| fieldSizes | Byte size of each field value in storage order. |
| fieldIdx | Field array index. |
| row | Value index inside the selected field array. |
| capacity | Number of values reserved in every field array. |
- Returns
- Pointer to the selected field value.
◆ set()
| static GAIA_NODISCARD uint8_t * gaia::mem::data_view_policy_soa_erased::set |
( |
void * |
pData, |
|
|
uint32_t |
alignment, |
|
|
std::span< const uint8_t > |
fieldSizes, |
|
|
uint32_t |
fieldIdx, |
|
|
uint32_t |
row, |
|
|
uint32_t |
capacity |
|
) |
| |
|
inlinestaticnoexcept |
Returns one mutable field value from type-erased SoA storage.
- Parameters
-
| pData | Base address of the SoA storage. |
| alignment | Alignment shared by all field arrays. |
| fieldSizes | Byte size of each field value in storage order. |
| fieldIdx | Field array index. |
| row | Value index inside the selected field array. |
| capacity | Number of values reserved in every field array. |
- Returns
- Pointer to the selected field value.
The documentation for this struct was generated from the following file: