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.

- Id:
- 232bc19fbe4ac66387059f5c803b64f07bc9a31c

- Copyright
- 2007 Alan DeKok

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 | ) |

Generated on Sun Aug 28 2016 14:19:48 by 1.8.6