MATLAB Link for Code Composer Studio Development Tools Previous page   Next Page

Type Objects--Their Methods and Properties

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 target.

Like memoryobj and registerobj class objects, type class objects do not inherit properties from a parent class. Unlike the other objects in MATLAB Link for Code Composer Studio, type objects only exist as members of ccsdsp objects. You cannot directly create a type object using createobj. When you delete the ccsdsp 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.


Previous page  Properties of Structure Objects Properties of Type Objects Next page

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS