Parallel Plane Sweep  0.1
Shared memory multithreaded version of the plane sweep algorithm
Classes | Macros | Typedefs | Functions | Variables
avl.h File Reference
#include <stddef.h>

Go to the source code of this file.

Classes

struct  libavl_allocator
 
struct  avl_table
 
struct  avl_node
 
struct  avl_traverser
 

Macros

#define LIBAVL_ALLOCATOR
 
#define AVL_MAX_HEIGHT   32
 
#define avl_count(table)   ((size_t) (table)->avl_count)
 

Typedefs

typedef int avl_comparison_func(const void *avl_a, const void *avl_b, void *avl_param)
 
typedef void avl_item_func(void *avl_item, void *avl_param)
 
typedef void * avl_copy_func(void *avl_item, void *avl_param)
 

Functions

void * avl_malloc (struct libavl_allocator *, size_t)
 
void avl_free (struct libavl_allocator *, void *)
 
struct avl_tableavl_create (avl_comparison_func *, void *, struct libavl_allocator *)
 
struct avl_tableavl_copy (const struct avl_table *, avl_copy_func *, avl_item_func *, struct libavl_allocator *)
 
void avl_destroy (struct avl_table *, avl_item_func *)
 
void ** avl_probe (struct avl_table *, void *)
 
void * avl_insert (struct avl_table *, void *)
 
void * avl_replace (struct avl_table *, void *)
 
void * avl_delete (struct avl_table *, const void *)
 
void * avl_find (const struct avl_table *, const void *)
 
void avl_assert_insert (struct avl_table *, void *)
 
void * avl_assert_delete (struct avl_table *, void *)
 
void avl_t_init (struct avl_traverser *, struct avl_table *)
 
void * avl_t_first (struct avl_traverser *, struct avl_table *)
 
void * avl_t_last (struct avl_traverser *, struct avl_table *)
 
void * avl_t_find (struct avl_traverser *, struct avl_table *, void *)
 
void * avl_t_insert (struct avl_traverser *, struct avl_table *, void *)
 
void * avl_t_copy (struct avl_traverser *, const struct avl_traverser *)
 
void * avl_t_next (struct avl_traverser *)
 
void * avl_t_prev (struct avl_traverser *)
 
void * avl_t_cur (struct avl_traverser *)
 
void * avl_t_replace (struct avl_traverser *, void *)
 

Variables

struct libavl_allocator avl_allocator_default
 

Detailed Description

This is the gnu avl library header fle.

Definition in file avl.h.

Macro Definition Documentation

#define avl_count (   table)    ((size_t) (table)->avl_count)

Definition at line 109 of file avl.h.

#define AVL_MAX_HEIGHT   32

Definition at line 62 of file avl.h.

#define LIBAVL_ALLOCATOR

Definition at line 46 of file avl.h.

Typedef Documentation

typedef int avl_comparison_func(const void *avl_a, const void *avl_b, void *avl_param)

Definition at line 40 of file avl.h.

typedef void* avl_copy_func(void *avl_item, void *avl_param)

Definition at line 43 of file avl.h.

typedef void avl_item_func(void *avl_item, void *avl_param)

Definition at line 42 of file avl.h.

Function Documentation

void* avl_assert_delete ( struct avl_table ,
void *   
)

Definition at line 896 of file avl.c.

void avl_assert_insert ( struct avl_table ,
void *   
)

Definition at line 887 of file avl.c.

struct avl_table* avl_copy ( const struct avl_table ,
avl_copy_func ,
avl_item_func ,
struct libavl_allocator  
)

Definition at line 739 of file avl.c.

struct avl_table* avl_create ( avl_comparison_func ,
void *  ,
struct libavl_allocator  
)

Definition at line 46 of file avl.c.

void* avl_delete ( struct avl_table ,
const void *   
)

Definition at line 237 of file avl.c.

void avl_destroy ( struct avl_table ,
avl_item_func  
)

Definition at line 834 of file avl.c.

void* avl_find ( const struct avl_table ,
const void *   
)

Definition at line 73 of file avl.c.

void avl_free ( struct libavl_allocator ,
void *   
)

Definition at line 869 of file avl.c.

void* avl_insert ( struct avl_table ,
void *   
)

Definition at line 210 of file avl.c.

void* avl_malloc ( struct libavl_allocator ,
size_t   
)

Definition at line 861 of file avl.c.

void** avl_probe ( struct avl_table ,
void *   
)

Definition at line 98 of file avl.c.

void* avl_replace ( struct avl_table ,
void *   
)

Definition at line 221 of file avl.c.

void* avl_t_copy ( struct avl_traverser ,
const struct avl_traverser  
)

Definition at line 566 of file avl.c.

void* avl_t_cur ( struct avl_traverser )

Definition at line 694 of file avl.c.

void* avl_t_find ( struct avl_traverser ,
struct avl_table ,
void *   
)

Definition at line 502 of file avl.c.

void* avl_t_first ( struct avl_traverser ,
struct avl_table  
)

Definition at line 446 of file avl.c.

void avl_t_init ( struct avl_traverser ,
struct avl_table  
)

Definition at line 434 of file avl.c.

void* avl_t_insert ( struct avl_traverser ,
struct avl_table ,
void *   
)

Definition at line 541 of file avl.c.

void* avl_t_last ( struct avl_traverser ,
struct avl_table  
)

Definition at line 473 of file avl.c.

void* avl_t_next ( struct avl_traverser )

Definition at line 590 of file avl.c.

void* avl_t_prev ( struct avl_traverser )

Definition at line 643 of file avl.c.

void* avl_t_replace ( struct avl_traverser ,
void *   
)

Definition at line 705 of file avl.c.

Variable Documentation

struct libavl_allocator avl_allocator_default

Definition at line 876 of file avl.c.