Skip to main content

Module data

Module data 

Source
Expand description

DynamicData (XTypes 1.3 §7.5.6).

DynamicData is a data instance of a DynamicType. The API is spec-frozen (method names + signatures). Relative to the spec, two simplifications are made:

  1. All 12 typed getters/setters go through a DynamicValue discriminator enum, by which the set_<T>_value/get_<T>_value methods do their type check. Type mismatch → BadParameter.
  2. Loans are modeled via a reference-counted DataLoan (Spec §7.5.6.1 — the full loan API follows with C4.7).

Structs§

DataLoan
Returns a loaned DynamicData view onto a member. Lifecycle: loan_valuereturn_loaned_value (Spec §7.5.6.1).
DynamicData
XTypes 1.3 §7.5.6 DynamicData.

Enums§

DynamicValue
Sum type for all values storable in DynamicData. Spec §7.5.6 speaks of 12 primitive types + composite + sequence — this enum encapsulates the storage.