27 #include <Inventor/C/basic.h>
33 typedef int cc_heap_compare_cb(
void * o1,
void * o2);
35 typedef struct cc_heap cc_heap;
37 COIN_DLL_API cc_heap * cc_heap_construct(
unsigned int size,
38 cc_heap_compare_cb * comparecb,
39 SbBool support_remove);
41 COIN_DLL_API
void cc_heap_destruct(cc_heap * h);
42 COIN_DLL_API
void cc_heap_clear(cc_heap * h);
44 COIN_DLL_API
void cc_heap_add(cc_heap * h,
void * o);
45 COIN_DLL_API
void * cc_heap_get_top(cc_heap * h);
46 COIN_DLL_API
void * cc_heap_extract_top(cc_heap * h);
47 COIN_DLL_API
int cc_heap_remove(cc_heap * h,
void * o);
48 COIN_DLL_API
unsigned int cc_heap_elements(cc_heap * h);
49 COIN_DLL_API SbBool cc_heap_empty(cc_heap * h);