Classes | Typedefs | Functions
zmaxheap.h File Reference
#include <stdio.h>
Include dependency graph for zmaxheap.h:
This graph shows which files directly or indirectly include this file:

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_tzmaxheap_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 Documentation

◆ zmaxheap_iterator_t

Definition at line 34 of file zmaxheap.h.

◆ zmaxheap_t

typedef struct zmaxheap zmaxheap_t

Definition at line 32 of file zmaxheap.h.

Function Documentation

◆ zmaxheap_add()

void zmaxheap_add ( zmaxheap_t heap,
void *  p,
float  v 
)

Definition at line 143 of file zmaxheap.c.

◆ zmaxheap_create()

zmaxheap_t* zmaxheap_create ( size_t  el_sz)

Definition at line 96 of file zmaxheap.c.

◆ zmaxheap_destroy()

void zmaxheap_destroy ( zmaxheap_t heap)

Definition at line 109 of file zmaxheap.c.

◆ zmaxheap_iterator_finish()

void zmaxheap_iterator_finish ( zmaxheap_iterator_t it)

Definition at line 345 of file zmaxheap.c.

◆ zmaxheap_iterator_init()

void zmaxheap_iterator_init ( zmaxheap_t heap,
zmaxheap_iterator_t it 
)

Definition at line 256 of file zmaxheap.c.

◆ zmaxheap_iterator_next()

int zmaxheap_iterator_next ( zmaxheap_iterator_t it,
void *  p,
float *  v 
)

Definition at line 264 of file zmaxheap.c.

◆ zmaxheap_iterator_next_volatile()

int zmaxheap_iterator_next_volatile ( zmaxheap_iterator_t it,
void *  p,
float *  v 
)

Definition at line 284 of file zmaxheap.c.

◆ zmaxheap_iterator_remove()

void zmaxheap_iterator_remove ( zmaxheap_iterator_t it)

Definition at line 304 of file zmaxheap.c.

◆ zmaxheap_remove_max()

int zmaxheap_remove_max ( zmaxheap_t heap,
void *  p,
float *  v 
)

Definition at line 251 of file zmaxheap.c.

◆ zmaxheap_size()

int zmaxheap_size ( zmaxheap_t heap)

Definition at line 117 of file zmaxheap.c.

◆ zmaxheap_vmap()

void zmaxheap_vmap ( zmaxheap_t heap,
void(*)()  f 
)

Definition at line 170 of file zmaxheap.c.



apriltag
Author(s): Edwin Olson , Max Krogius
autogenerated on Mon Jun 26 2023 02:26:35