Structures and prototypes for binary heaps. More...
Go to the source code of this file.
Typedefs | |
typedef int(* | fr_heap_cmp_t )(void const *, void const *) |
typedef struct fr_heap_t | fr_heap_t |
Functions | |
fr_heap_t * | fr_heap_create (fr_heap_cmp_t cmp, size_t offset) |
void | fr_heap_delete (fr_heap_t *hp) |
int | fr_heap_extract (fr_heap_t *hp, void *data) |
int | fr_heap_insert (fr_heap_t *hp, void *data) |
size_t | fr_heap_num_elements (fr_heap_t *hp) |
void * | fr_heap_peek (fr_heap_t *hp) |
Structures and prototypes for binary heaps.
Definition in file heap.h.
fr_heap_t* fr_heap_create | ( | fr_heap_cmp_t | cmp, |
size_t | offset | ||
) |
void fr_heap_delete | ( | fr_heap_t * | hp | ) |
int fr_heap_extract | ( | fr_heap_t * | hp, |
void * | data | ||
) |
int fr_heap_insert | ( | fr_heap_t * | hp, |
void * | data | ||
) |
size_t fr_heap_num_elements | ( | fr_heap_t * | hp | ) |