Answer a MEOS base value as the class the model gives it - #27
Merged
estebanzimanyi merged 1 commit intoSep 3, 2026
Merged
estebanzimanyi merged 1 commit into
estebanzimanyi merged 1 commit into
Conversation
The object layer types a method by the class the catalog assigns each C type, and the value types had none: a method taking a geometry, a text, a circular buffer or a network point was deferred to the flat surface however ordinary it was. The catalog carries a class for each of them now, so those methods reach the object layer — `Cbuffer.Point()` answers a `Geo`, `TGeo.AtGeom(Geo)` restricts a trip to a polygon, `Text.Upper()` answers a `Text` — and the layer holds 108 classes and 1122 methods against 94 and 646, with 171 deferrals against 246. What a class's instances are a pointer to comes from the catalog as well. The generator held a map of nine C structs, which is what made a class the model gains one the binding cannot reach: it reads `classes.<Class>.cType` instead, and wraps a pointer in the shallowest class carrying that struct, so a `GSERIALIZED *` is a `Geo` with `Geometry` and `Geography` distinct classes under it. The companion hierarchies are read from the model too, rather than named, so a hierarchy it gains needs no edit here. Four tests read the values back: a text upper-cased and title-cased, a geometry's SRID and text, a circular buffer answering its centre as a geometry, and a temporal geometry restricted by one, which ends where the trip leaves the polygon rather than where the trip ends. The deferrals left name no MEOS class: an `Interval *`, the `uint8_t *` WKB buffers with their `size_t *` length, the double-pointer out-parameters, and the vendored `JsonPath *`, `PCSCHEMA *` and `Match *` structs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The object layer types a method by the class the catalog assigns each C type,
and the value types had none: a method taking a geometry, a text, a circular
buffer or a network point was deferred to the flat surface however ordinary it
was. The catalog carries a class for each of them now, so those methods reach
the object layer —
Cbuffer.Point()answers aGeo,TGeo.AtGeom(Geo)restricts a trip to a polygon,
Text.Upper()answers aText— and the layerholds 108 classes and 1122 methods against 94 and 646, with 171 deferrals
against 246.
What a class's instances are a pointer to comes from the catalog as well. The
generator held a map of nine C structs, which is what made a class the model
gains one the binding cannot reach: it reads
classes.<Class>.cTypeinstead,and wraps a pointer in the shallowest class carrying that struct, so a
GSERIALIZED *is aGeowithGeometryandGeographydistinct classesunder it. The companion hierarchies are read from the model too, rather than
named, so a hierarchy it gains needs no edit here.
Four tests read the values back: a text upper-cased and title-cased, a
geometry's SRID and text, a circular buffer answering its centre as a geometry,
and a temporal geometry restricted by one, which ends where the trip leaves the
polygon rather than where the trip ends.
The deferrals left name no MEOS class: an
Interval *, theuint8_t *WKBbuffers with their
size_t *length, the double-pointer out-parameters, andthe vendored
JsonPath *,PCSCHEMA *andMatch *structs.