XPRMgetarrtype
XPRMgetarrtype |
Purpose
Synopsis
int XPRMgetarrtype(XPRMarray array);
Argument
array
|
Reference to an array
|
Return value
Type of the array.
Further information
This function returns the type of a given array. The type of an array designates both the type of all entries of the array (as a type code) and the storage class used for that array. The entry's type code can be extracted using the macro
XPRM_TYP(type). The storage class can be extracted using the macro
XPRM_GRP(type) that indicates the internal representation of the array. Possible values are:
Sparse arrays can be identified using the macro
XPRM_ARR_IS_SPARSE(type).
XPRM_ARR_FIX
|
array is dense and all its indexing sets are constant
|
XPRM_ARR_DYFIX
|
array is dense but at least one of its indexing sets is not constant
|
XPRM_ARR_DYN
|
array is sparse and has been declared as dynamic
|
XPRM_ARR_HMAP
|
array is sparse and has been declared as hashmap
|
Related topics