| Embedded IDE Link™ CC | ![]() |
| On this page… |
|---|
When you create an object that accesses a typedef declared in your source code, the object constructor createobj returns a type object. createobj uses the information in your source code to set the properties of the object appropriately to match the code. Within the properties and their values, you find all the information about the declaration, so that MATLAB understands how to handle the typedef in your MATLAB workspace and how to read and write the typedef on your processor.
Like memoryobj and registerobj class objects, type class objects do not inherit properties from a parent class. Unlike the other objects in Embedded IDE Link CC, type objects only exist as members of ticcs objects. You cannot directly create a type object using createobj. When you delete the ticcs object, you delete the type object as well. This relationship is called composition in the standard object modeling language (UML). Instead, when you call createobj, the resulting object includes by composition a type object, with the object properties set to their default values.
Object properties can include both properties that the object inherits from its superclass, if any, and some properties that are unique to the class itself. For this reason, many objects in Embedded IDE Link CC share common properties; as you use the objects you will become familiar with the common and special properties for each.
| Property Name | Property Type | Default Value | Description |
|---|---|---|---|
typelist | cell array | None | List of the typedef equivalents in the object. This list relates the typedef name to its equivalent data type, either a native data type or a custom type definition. Equivalent types follow the order of the names in typename |
typename | string | None | Names of the typedef entries in the object |
timeout | integer | 30 s | Local timeout value applied to type class operations |
Like properties, methods for objects may come from the superclass or derive only from the class itself. For example, the cast and convert methods do not appear in all objects; listing them here indicates that the object does not inherit these methods but provides them itself.
| Name | Overloaded? | Description |
|---|---|---|
| add | No | Add a new type definition to the type object in MATLAB |
| clear | Yes | Remove an existing type declaration from your type object |
| display | Yes | Display the properties of a type object |
| gettypeinfo | No | Return information about a type declaration in your type object |
![]() | Structure Objects — Their Methods and Properties | Constructing Objects That Access Bitfields | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |