#include "lib/hetero-data.hpp"
template<size_t seg, typename... DATA>
struct lib::StorageFrame< seg, DATA >
individual storage frame in a chain, holding a data tuple
Definition at line 103 of file hetero-data.hpp.
|
using | Tuple = std::tuple< DATA... > |
|
|
template<size_t slot> |
auto & | get () noexcept |
|
template<typename X > |
auto & | get () noexcept |
|
template<typename SPEC > |
void | linkInto (HeteroData< SPEC > &) |
| Attach a new storage frame at the end of an existing HeteroData-chain. More...
|
|
◆ linkInto()
Attach a new storage frame at the end of an existing HeteroData-chain.
- Template Parameters
-
seg | the number of the separate data segment, must match target |
- Parameters
-
prefixChain | with seg - 1 existing chained tuple-segments |
- Note
- Always use this strongly typed extension and access path, to prevent out-of-bounds memory access. The actual HeteroData stores no run time type information, and thus a force-cast is necessary internally to access the follow-up data tuple frames. The typing, and especially the
seg
template parameter used to mark each StorageFrame is the only guard-rail provided, and ensures safe data access.
- Examples:
- /Werk/devel/lumi/src/lib/hetero-data.hpp.
Definition at line 365 of file hetero-data.hpp.
The documentation for this struct was generated from the following file: