![]() |
Telelogic TAU (steve huntington) | ![]() |
Topic Title: Predefined Type usage Topic Summary: Using Predefined Datatype In Tau G2 Created On: 3-Mar-2006 02:46 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi. syntype ta_sector_data = Array<i_sector, UINT8> Edited: 3-Mar-2006 at 02:48 by Hye-Jung Hwang |
|
![]() |
|
![]() |
|
A syntype is a restricted copy of the original type; your i_sector is a good example of this. Hence you can't use it to define a brand new type based on Array.
To create an attribute which is an array indexed by index type i_sector, do this: syntype i_sector = Integer constants (0..5) ; Array< i_sector,Integer > i_sector_array; If you are using the C++ code generator you could also use the STL containers in cppstdlibrary: HTH Ian =============== Ian Barnard Principal Consultant Telelogic UK ------------------------- ============= Ian Barnard Principal Consultant Telelogic UK, an IBM company Edited: 24-Mar-2006 at 15:19 by Ian Barnard |
|
![]() |
Telelogic TAU
» TAU/Developer
»
Predefined Type usage
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.