Home | History | Annotate | Download | only in depool

Lines Matching refs:Array

59 DE_DECLARE_POOL_ARRAY(TYPENAME##Array, VALUETYPE);		\
63 TYPENAME##Array* array; \
80 heap->array = TYPENAME##Array_create(pool); \
81 if (!heap->array) \
88 return TYPENAME##Array_getNumElements(heap->array); \
93 return TYPENAME##Array_reserve(heap->array, capacity); \
98 TYPENAME##Array_setSize(heap->array, 0); \
103 TYPENAME##Array* array = heap->array; \
104 int numElements = TYPENAME##Array_getNumElements(array); \
111 int childCmpRes = CMPFUNC(TYPENAME##Array_get(array, childNdx0), TYPENAME##Array_get(array, childNdx1)); \
113 int cmpRes = CMPFUNC(TYPENAME##Array_get(array, ndx), TYPENAME##Array_get(array, minChildNdx)); \
116 TYPENAME##Array_swap(array, ndx, minChildNdx); \
129 TYPENAME##Array* array = heap->array; \
133 int cmpRes = CMPFUNC(TYPENAME##Array_get(array, ndx), TYPENAME##Array_get(array, parentNdx)); \
136 TYPENAME##Array_swap(array, ndx, parentNdx); \
146 TYPENAME##Array* array = heap->array; \
147 int numElements = TYPENAME##Array_getNumElements(array); \
148 if (!TYPENAME##Array_setSize(array, numElements + 1)) \
150 TYPENAME##Array_set(array, numElements, elem); \
157 TYPENAME##Array* array = heap->array; \
158 VALUETYPE tmp = TYPENAME##Array_get(array, 0); \
159 int numElements = TYPENAME##Array_getNumElements(array); \
160 TYPENAME##Array_set(array, 0, TYPENAME##Array_get(array, numElements-1)); \
161 TYPENAME##Array_setSize(array, numElements-1); \