Lines Matching refs:Array
23 * \brief Memory pool hash-array class.
37 * \brief Declare a template pool hash-array (array with hash) class interface.
38 * \param TYPENAME Type name of the declared hash-array.
41 * \param KEYARRAYTYPE Type of the key array.
42 * \param VALUEARRAYTYPE Type of the value array.
61 DE_DECLARE_POOL_ARRAY(TYPENAME##Array, VALUETYPE); \
67 TYPENAME##Array* array; \
80 return TYPENAME##Array_getNumElements(hashArray->array); \
91 DE_ASSERT(ndx >= 0 && ndx < hashArray->array->numElements); \
95 return &((VALUETYPE*)hashArray->array->pageTable[pageNdx])[subNdx]; \
103 TYPENAME##Array_reset(hashArray->array); \
109 * \brief Implement a template pool hash-array class.
113 * \param KEYARRAYTYPE Type of the key array.
114 * \param VALUEARRAYTYPE Type of the value array.
133 if ((hashArray->array = TYPENAME##Array_create(pool)) == DE_NULL) \
140 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \
143 if (!TYPENAME##Array_setSize(hashArray->array, numElements+1) || \
146 TYPENAME##Array_set(hashArray->array, numElements, value); \
152 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \
164 if (values) VALUEARRAYTYPE##_set(values, ndx, TYPENAME##Array_get(hashArray->array, ndx)); \