![]() ![]() The list of indicies is a comma separate list of constants, 32-bit memory locations, or 32-bit registers. The array can be a static or dynamic array. This macro computes a row-major order index into a multidimensional array. The STATIC variable declaration uses this type identifier in the array.dArray invocation to create a dynamic array of dynamic arrays. The TYPE declaration creates a type identifier that is a dynamic array. However, you can achieve exactly the same thing by using the following code: I.e., the following is not legal:ĭAofDAs: array.dArray( array.dArray( uns32, 2), 2 ) Note: since array.dArray is not a data type identifier (it's a macro), you cannot directly create a dynamic array of dynamic arrays. Because of the way array indicies are computed by HLA, it is not possible to specify the number of dimensions dynamically 2. The second parameter is the number of dimensions for this array data type Generally this value is two or greater (since creating dynamic single dimensional arrays using only malloc is trivial). The first macro parameter is the desired datatype this would typically be an HLA primitive data type like int32 or char, although any data type identifier is legal. You use this macro invocation in place of a standard data type identifier in an HLA variable declaration. This macro/data type is array.dArray (dArray stands for dynamic array). HLA provides a macro/data type that lets you tell HLA that you want to specify the array size under program control. The first feature in the array package to consider is the support for dynamic arrays. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |