Expand description
The word-table view-model every host table mirror renders: per-table metadata (inheritance,
EventSet word), per-field host specs (kind, Option encoding, wide value word, explicit
bit, resource kind), and the named value sets, all validated once so every host constructor
accepts them.
Modules§
- kind
FieldKindas spelled by each host runtime’s enum.- opt
OptEncodingas spelled by each host runtime’s enum.
Structs§
- Event
Enum Model - 0-based event discriminants and listener bitmasks derived from
TableDesc::events(EventEnum::EVENT_SET), where every(name, bit)hasbit == 1 << id. - Field
Model - One field as every host
FieldSpecspells it. - Table
Model - One word table, validated once so every host constructor accepts its field specs.
Functions§
- merge_
shared_ value_ sets - Merges core table value sets with registered cross-module shared value sets, allowing exact identical definitions during transitions and rejecting conflicting definitions or C constant collisions.
- tables_
model - Validates
tables(unique names, keys that match their names, fields every host reader accepts) and wraps them for rendering, in the given order. - validate_
shared_ value_ sets - Validates and deduplicates standalone shared value sets (such as
nativeview-media-fit’sImageFitandImageSampling), rejecting empty/invalid names, duplicate constant spellings, or conflicting redefinitions. - value_
sets - Distinct named value sets (
WordEnumvariants, flag bits,EventSetlistener bits) thetablescarry, in first-use order. Sets sharing a name must be identical; names must spell identifiers, every emittedNV_<SET>_<VALUE>constant must be unique across all sets and clear of theNV_TABLE_*namespace, and every value must fit its field once encoded. - value_
sets_ with_ core - Like
value_sets, validatingtablesagainst already-emittedshared_sets(coreNvTablesvalue sets plus any registered cross-module shared value sets, e.g.nativeview-media-fit).