Main Content

coder.descriptor.types.Type Class

Namespace: coder.descriptor.types

Return information about data type of modeling element or corresponding variable in generated code

Since R2024a

Description

An object of coder.descriptor.types.Type class describes information about the type of a variable represented in the Simulink® model or in the generated code. The coder.desciptor.types.Type class has these subclasses for specific data types:

Some of these subclasses have further subclasses. For more information, see each subclass reference page.

Properties

expand all

Identifier 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, specified as a character vector.

Data Types: char

Whether the type qualifier contains const, specified as 1 or 0. 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. This property returns 1 if the type qualifier contains const. This property returns 0 if the type qualifier does not contain const.

Data Types: logical

Whether the type qualifier contains volatile, specified as 1 or 0. If you cannot change the value of the variable during execution, the variable is preceded by the volatile keyword as the type qualifier in the generated code. This property returns 1 if the type qualifier contains volatile. This property returns 0 if the type qualifier does not contain volatile.

Data Types: logical

Version History

Introduced in R2024a