Lines Matching refs:hashArray

71 deBool			TYPENAME##_insert		(TYPENAME* hashArray, KEYTYPE key, VALUETYPE value);		\
72 deBool TYPENAME##_copyToArray (const TYPENAME* hashArray, KEYARRAYTYPE* keys, VALUEARRAYTYPE* val…
74 DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hashArray) DE_UNUSED_FUNCTION; \
75 DE_INLINE VALUETYPE* TYPENAME##_find (const TYPENAME* hashArray, KEYTYPE key) DE_UNUSED_FUNCTION…
76 DE_INLINE void TYPENAME##_reset (TYPENAME* hashArray) DE_UNUSED_FUNCTION; \
78 DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hashArray) \
80 return TYPENAME##Array_getNumElements(hashArray->array); \
83 DE_INLINE VALUETYPE* TYPENAME##_find (const TYPENAME* hashArray, KEYTYPE key) \
85 int* ndxPtr = TYPENAME##Hash_find(hashArray->hash, key); \
91 DE_ASSERT(ndx >= 0 && ndx < hashArray->array->numElements); \
95 return &((VALUETYPE*)hashArray->array->pageTable[pageNdx])[subNdx]; \
100 DE_INLINE void TYPENAME##_reset (TYPENAME* hashArray) \
102 TYPENAME##Hash_reset(hashArray->hash); \
103 TYPENAME##Array_reset(hashArray->array); \
129 TYPENAME* hashArray = DE_POOL_NEW(pool, TYPENAME); \
130 if (!hashArray) return DE_NULL; \
131 if ((hashArray->hash = TYPENAME##Hash_create(pool)) == DE_NULL) \
133 if ((hashArray->array = TYPENAME##Array_create(pool)) == DE_NULL) \
135 return hashArray; \
138 deBool TYPENAME##_insert (TYPENAME* hashArray, KEYTYPE key, VALUETYPE value) \
140 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \
141 DE_ASSERT(TYPENAME##Hash_getNumElements(hashArray->hash) == numElements); \
142 DE_ASSERT(!TYPENAME##Hash_find(hashArray->hash, key)); \
143 if (!TYPENAME##Array_setSize(hashArray->array, numElements+1) || \
144 !TYPENAME##Hash_insert(hashArray->hash, key, numElements)) \
146 TYPENAME##Array_set(hashArray->array, numElements, value); \
150 deBool TYPENAME##_copyToArray (const TYPENAME* hashArray, KEYARRAYTYPE* keys, VALUEARRAYTYPE* value…
152 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \
153 TYPENAME##Hash* hash = hashArray->hash; \
155 DE_ASSERT(TYPENAME##Hash_getNumElements(hashArray->hash) == numElements); \
164 if (values) VALUEARRAYTYPE##_set(values, ndx, TYPENAME##Array_get(hashArray->array, ndx)); \