polyspace.project.Type Class
R2026bNamespace: polyspace.project
Description
This Python® class represents a C/C++ type from your parsed source code. Use polyspace.project.Type objects when creating a test variable using its type. You typically create test variables using types when creating test parameters, test data or observables in scripted tests.
You obtain polyspace.project.Type objects from the Types property of a polyspace.project.CodeInfo object, or by using the getType method.
Creation
Description
typeList = codeInfo.Types returns a list of polyspace.project.Type objects for all the types in the parsed source code. Here, codeInfo is a polyspace.project.CodeInfo object.
typeObj = codeInfo.getType( returns the typeName)polyspace.project.Type object for the specified type typeName.
Input Arguments
Properties
Examples
Version History
Introduced in R2025a