#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | zmaxheap_iterator |
Typedefs | |
typedef struct zmaxheap_iterator | zmaxheap_iterator_t |
typedef struct zmaxheap | zmaxheap_t |
Functions | |
void | zmaxheap_add (zmaxheap_t *heap, void *p, float v) |
zmaxheap_t * | zmaxheap_create (size_t el_sz) |
void | zmaxheap_destroy (zmaxheap_t *heap) |
void | zmaxheap_iterator_finish (zmaxheap_iterator_t *it) |
void | zmaxheap_iterator_init (zmaxheap_t *heap, zmaxheap_iterator_t *it) |
int | zmaxheap_iterator_next (zmaxheap_iterator_t *it, void *p, float *v) |
int | zmaxheap_iterator_next_volatile (zmaxheap_iterator_t *it, void *p, float *v) |
void | zmaxheap_iterator_remove (zmaxheap_iterator_t *it) |
int | zmaxheap_remove_max (zmaxheap_t *heap, void *p, float *v) |
int | zmaxheap_size (zmaxheap_t *heap) |
void | zmaxheap_vmap (zmaxheap_t *heap, void(*f)()) |
typedef struct zmaxheap_iterator zmaxheap_iterator_t |
Definition at line 40 of file zmaxheap.h.
typedef struct zmaxheap zmaxheap_t |
Definition at line 38 of file zmaxheap.h.
void zmaxheap_add | ( | zmaxheap_t * | heap, |
void * | p, | ||
float | v | ||
) |
Definition at line 139 of file zmaxheap.c.
zmaxheap_t* zmaxheap_create | ( | size_t | el_sz | ) |
Definition at line 92 of file zmaxheap.c.
void zmaxheap_destroy | ( | zmaxheap_t * | heap | ) |
Definition at line 105 of file zmaxheap.c.
void zmaxheap_iterator_finish | ( | zmaxheap_iterator_t * | it | ) |
Definition at line 342 of file zmaxheap.c.
void zmaxheap_iterator_init | ( | zmaxheap_t * | heap, |
zmaxheap_iterator_t * | it | ||
) |
Definition at line 253 of file zmaxheap.c.
int zmaxheap_iterator_next | ( | zmaxheap_iterator_t * | it, |
void * | p, | ||
float * | v | ||
) |
Definition at line 261 of file zmaxheap.c.
int zmaxheap_iterator_next_volatile | ( | zmaxheap_iterator_t * | it, |
void * | p, | ||
float * | v | ||
) |
Definition at line 281 of file zmaxheap.c.
void zmaxheap_iterator_remove | ( | zmaxheap_iterator_t * | it | ) |
Definition at line 301 of file zmaxheap.c.
int zmaxheap_remove_max | ( | zmaxheap_t * | heap, |
void * | p, | ||
float * | v | ||
) |
Definition at line 248 of file zmaxheap.c.
int zmaxheap_size | ( | zmaxheap_t * | heap | ) |
Definition at line 113 of file zmaxheap.c.
void zmaxheap_vmap | ( | zmaxheap_t * | heap, |
void(*)() | f | ||
) |
Definition at line 166 of file zmaxheap.c.