2
3
4
5
6
7
8#ifndef GIMBAL_ARRAY_HEAP_H
9#define GIMBAL_ARRAY_HEAP_H
13#define GBL_SELF_TYPE GblArrayHeap
17typedef int (*GblArrayHeapCmpFn)(
const void* pEntry1,
const void* pEntry2);
21
22
23
24
25
26
27
28
29
30
31
32
35 GblArrayHeapCmpFn pFnCmp;
43 GblArrayHeapCmpFn pFnCmp,
80#define GblArrayHeap_construct(...)
81 GblArrayHeap_constructDefault_
(__VA_ARGS__)
82#define GblArrayHeap_constructDefault_(...)
83 GblArrayHeap_constructDefault__
(__VA_ARGS__, sizeof(GblArrayHeap), GBL_NULL)
84#define GblArrayHeap_constructDefault__(self, elemSize, cmp, structSize, ctx, ...)
85 (GblArrayHeap_construct
)(self, elemSize, cmp, structSize, ctx)
#define GBL_PRIVATE_BEGIN
#define GBL_PRIVATE_END
Private data structure.
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
Array-based binary heap implementing priority queue.