|
SofaBuffers C/C++ 0.12.0
API Documentation
|
SofaBuffers C++ - wrapper-array collectors for object and row elements. More...
Go to the source code of this file.
Data Structures | |
| struct | sofab::FixedMessageSeq< Container > |
| Collects a struct/union or nested-array wrapper sequence into inline storage. More... | |
| struct | sofab::MessageSeq< Container > |
| Collects a struct/union or nested-array wrapper sequence into a growable container. More... | |
| struct | sofab::FixedRowSeq< Container, Reader > |
| Collects a wrapper sequence of rows the stream cannot read on its own, into inline storage. More... | |
| struct | sofab::RowSeqBounds< Count > |
The index bounds of a RowSeq whose schema count is not a template argument: the schema count and the §6.2.1 receiver cap, as runtime members, exactly as MessageSeq carries them. More... | |
| struct | sofab::RowSeqBounds<-1 > |
The index bounds of a RowSeq whose schema count is not a template argument: the schema count and the §6.2.1 receiver cap, as runtime members, exactly as MessageSeq carries them. More... | |
| struct | sofab::RowSeq< Container, Reader, Count > |
| Collects a wrapper sequence of rows the stream cannot read on its own, into a growable container. More... | |
Namespaces | |
| namespace | sofab |
Variables | |
| template<typename Elem > | |
| constexpr int | sofab::seq_elem_wire_v |
Wire type an element of type Elem arrives with, or -1 for none. | |
| template<typename Elem > | |
| constexpr int | sofab::seq_elem_fix_v |
Fixlen sub-type an element of type Elem arrives with, or -1. | |
SofaBuffers C++ - wrapper-array collectors for object and row elements.
This is the static-helper layer of the C++ API: code whose shape is the same for every schema, so it is written once here instead of being emitted into every generated header. Nothing here knows a schema. A count, a capacity or an element width arrives as a template argument or a member, i.e. as an ordinary runtime value — exactly the way sofab::StringSeq already takes its cap and elemMax.
What lives here is the collector for the element kinds the four string/blob collectors in sofab.hpp do not cover: a struct/union element, a row of native scalars (a matrix), and a row the stream cannot read on its own — one that is itself a wrapper sequence, or an enum/boolean row that binds through a view — whose read the caller hands in (sofab::FixedRowSeq / sofab::RowSeq). Their placement rule is the shared one — MESSAGE_SPEC §5.1 makes an element's child id its array index — and it is the rule an appending collector gets wrong, so it is spelled out once, on sofab::FixedMessageSeq, and referred to from the others.
Include sofab/sofab.hpp; it pulls this in. Including this header alone works too and means the same thing.
SPDX-License-Identifier: MIT
Definition in file seq.hpp.