Skip to content

Answer an array of MEOS values as the classes they are - #24

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:gen/wrap-value-arrays
Sep 2, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:gen/wrap-value-arrays

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

MEOS returns many values two ways: an array of pointers (Temporal **,
TInstant **) and an array of the values themselves, walked at the struct's
own stride (Span *, TBox *, STBox *). Both reach the wrapper as an array
of pointers, so both wrap element by element into the class each value's own
header names, and the object layer answers Span?[], STBox?[],
Temporal?[] where it answered nothing before. That is 29 more methods:
SpanSet.Spans, STBox.QuadSplit, Temporal.Instants, the bins and
splitNSpans families, 607 of the model's methods against 578.

Three tests read them: the spans of a float span set come back as FloatSpan
printing [8, 10] and [11, 12], the four quadrants of an STBox come back as
boxes, and the instants of a temporal float sequence come back as TFloatInst.

MEOS returns many values two ways: an array of pointers (`Temporal **`,
`TInstant **`) and an array of the values themselves, walked at the struct's
own stride (`Span *`, `TBox *`, `STBox *`). Both reach the wrapper as an array
of pointers, so both wrap element by element into the class each value's own
header names, and the object layer answers `Span?[]`, `STBox?[]`,
`Temporal?[]` where it answered nothing before. That is 29 more methods:
`SpanSet.Spans`, `STBox.QuadSplit`, `Temporal.Instants`, the `bins` and
`splitNSpans` families, 607 of the model's methods against 578.

Three tests read them: the spans of a float span set come back as `FloatSpan`
printing `[8, 10]` and `[11, 12]`, the four quadrants of an STBox come back as
boxes, and the instants of a temporal float sequence come back as `TFloatInst`.
@estebanzimanyi
estebanzimanyi merged commit 0079d89 into MobilityDB:main Sep 2, 2026
1 check passed
@estebanzimanyi
estebanzimanyi deleted the gen/wrap-value-arrays branch September 2, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant