Creating Typedefs

If you selected Typedef as the Kind, continue the creation process as follows:

Procedure

  1. On the Details tab, specify the typedef in the Basic Type field, or use the list to select the type. The Basic Type cannot be an implicit type.
    Note: If you select a type defined within the model, the arrow button next to the Basic Type field is available. Click the arrow button to open the Features window for that class.
  2. Specify the multiplicity in the Multiplicity field. The default value is 1.
    Note: If the multiplicity is a value higher than 1, the Ordered check box is available. Click this check box if the order of the reference type items is significant.
  3. If the typedef is defined as a constant (is read-only, such as the const qualifier in C++), enable the Constant check box; if the typedef is modifiable, leave the check box disabled (empty).
  4. If the typedef is referenced as a reference (such as a pointer (*) or a C++ reference (&), enable the Reference check box.

    The implementation of the reference is set by the <lang>_CG::Type::ReferenceImplementationPattern property. See the definition of this property in the Features window.
  5. Click OK.

Feedback