Main Content

coder.descriptor.types.Aggregate Class

Namespace: coder.descriptor.types
Superclasses: coder.descriptor.types.Type

Return information about variable of aggregate type

Since R2024a

Description

An object of the coder.descriptor.types.Aggregate class describes a variable in the generated code that is of an aggregate type.

Aggregate types comprise structures and unions. For information about the Code Descriptor classes that represent these types, see coder.descriptor.types.Struct and coder.descriptor.types.Union.

Properties

expand all

Identifier of the data type used in generated code for the corresponding modeling element, specified as a character vector.

Data Types: char

Name of the data type that is represented in Simulink for the corresponding modeling element, specified as a character vector.

Data Types: char

Indication that the type qualifier contains const, specified as a numeric or logical 1 (true) or 0 (false). If you cannot change the value of the variable during execution, the variable is preceded by the const keyword as the type qualifier in the generated code.

  • 1 — The type qualifier contains const.

  • 0 — The type qualifier does not contain const.

Data Types: logical

Indication that the type qualifier contains volatile, specified as a numeric or logical 1 (true) or 0 (false). If the compiler cannot apply optimizations to the variable because its value can change due to external sources, the variable is preceded by the volatile keyword as the type qualifier in the generated code.

  • 1 — The type qualifier contains volatile.

  • 0 — The type qualifier does not contain volatile.

Data Types: logical

List of objects that represent the elements of aggregate type, specified as a vector of coder.descriptor.types.AggregateElement objects. For example, the fields of a struct or members of a union.

Version History

Introduced in R2024a