Generate the TNumber OO surface#79
Merged
estebanzimanyi merged 1 commit intoJul 23, 2026
Merged
Conversation
Extend the OO layer generator to emit one interface per object-model class with an inheritance chain, and add GeneratedTNumber extends GeneratedTemporal for the number-temporal surface. The generator projects a list of ClassSpecs; each emits its interface and inherits its superclass surface, so a subclass adds only its own methods. The imports an interface needs are read back from its body, so a surface carries no unused import. TNumber contributes TBox marshalling — a TBox return wrapped through the hand type, a TBox argument forwarded as its inner pointer — while the value-span returns wait for the concrete numeric subclasses, whose span type is base-dependent. GeneratedTemporal regenerates unchanged (97 methods). GeneratedTNumber emits 13 methods (integral, twavg, abs, trend, angularDifference, deltaValue, toTbox, atTbox, minusTbox, atSpan, minusSpan, atSpanset, minusSpanset); the value-span returns and the TBox array folds are reported for a later slice. A parity test checks the surface against direct GeneratedFunctions calls.
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.
This extends the OO layer generator to emit one interface per object-model class along an inheritance chain, and adds
GeneratedTNumber extends GeneratedTemporalfor the number-temporal surface.The generator projects a list of
ClassSpecs; each emits its interface and inherits its superclass surface, so a subclass adds only its own methods. The imports an interface needs are read back from its body, so a surface carries no unused import.TNumbercontributesTBoxmarshalling — aTBoxreturn wrapped through the hand type, aTBoxargument forwarded as its inner pointer — while the value-span returns wait for the concrete numeric subclasses, whose span type is base-dependent.GeneratedTemporalregenerates unchanged (97 methods).GeneratedTNumberemits 13 methods (integral,twavg,abs,trend,angularDifference,deltaValue,toTbox,atTbox,minusTbox,atSpan,minusSpan,atSpanset,minusSpanset); the value-span returns and theTBoxarray folds are reported for a later slice. A parity test checks the surface against directGeneratedFunctionscalls.