Parallel Plane Sweep  0.1
Shared memory multithreaded version of the plane sweep algorithm
Functions | Variables
avl.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "avl.h"

Go to the source code of this file.

Functions

struct avl_tableavl_create (avl_comparison_func *compare, void *param, struct libavl_allocator *allocator)
 
void * avl_find (const struct avl_table *tree, const void *item)
 
void ** avl_probe (struct avl_table *tree, void *item)
 
void * avl_insert (struct avl_table *table, void *item)
 
void * avl_replace (struct avl_table *table, void *item)
 
void * avl_delete (struct avl_table *tree, const void *item)
 
void avl_t_init (struct avl_traverser *trav, struct avl_table *tree)
 
void * avl_t_first (struct avl_traverser *trav, struct avl_table *tree)
 
void * avl_t_last (struct avl_traverser *trav, struct avl_table *tree)
 
void * avl_t_find (struct avl_traverser *trav, struct avl_table *tree, void *item)
 
void * avl_t_insert (struct avl_traverser *trav, struct avl_table *tree, void *item)
 
void * avl_t_copy (struct avl_traverser *trav, const struct avl_traverser *src)
 
void * avl_t_next (struct avl_traverser *trav)
 
void * avl_t_prev (struct avl_traverser *trav)
 
void * avl_t_cur (struct avl_traverser *trav)
 
void * avl_t_replace (struct avl_traverser *trav, void *new)
 
struct avl_tableavl_copy (const struct avl_table *org, avl_copy_func *copy, avl_item_func *destroy, struct libavl_allocator *allocator)
 
void avl_destroy (struct avl_table *tree, avl_item_func *destroy)
 
void * avl_malloc (struct libavl_allocator *allocator, size_t size)
 
void avl_free (struct libavl_allocator *allocator, void *block)
 
void() avl_assert_insert (struct avl_table *table, void *item)
 
void *() avl_assert_delete (struct avl_table *table, void *item)
 

Variables

struct libavl_allocator avl_allocator_default
 

Detailed Description

This is the gnu avl library source fle.

Definition in file avl.c.

Function Documentation

void*() avl_assert_delete ( struct avl_table table,
void *  item 
)

Definition at line 896 of file avl.c.

void() avl_assert_insert ( struct avl_table table,
void *  item 
)

Definition at line 887 of file avl.c.

struct avl_table* avl_copy ( const struct avl_table org,
avl_copy_func copy,
avl_item_func destroy,
struct libavl_allocator allocator 
)

Definition at line 739 of file avl.c.

struct avl_table* avl_create ( avl_comparison_func compare,
void *  param,
struct libavl_allocator allocator 
)

Definition at line 46 of file avl.c.

void* avl_delete ( struct avl_table tree,
const void *  item 
)

Definition at line 237 of file avl.c.

void avl_destroy ( struct avl_table tree,
avl_item_func destroy 
)

Definition at line 834 of file avl.c.

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

Definition at line 73 of file avl.c.

void avl_free ( struct libavl_allocator allocator,
void *  block 
)

Definition at line 869 of file avl.c.

void* avl_insert ( struct avl_table table,
void *  item 
)

Definition at line 210 of file avl.c.

void* avl_malloc ( struct libavl_allocator allocator,
size_t  size 
)

Definition at line 861 of file avl.c.

void** avl_probe ( struct avl_table tree,
void *  item 
)

Definition at line 98 of file avl.c.

void* avl_replace ( struct avl_table table,
void *  item 
)

Definition at line 221 of file avl.c.

void* avl_t_copy ( struct avl_traverser trav,
const struct avl_traverser src 
)

Definition at line 566 of file avl.c.

void* avl_t_cur ( struct avl_traverser trav)

Definition at line 694 of file avl.c.

void* avl_t_find ( struct avl_traverser trav,
struct avl_table tree,
void *  item 
)

Definition at line 502 of file avl.c.

void* avl_t_first ( struct avl_traverser trav,
struct avl_table tree 
)

Definition at line 446 of file avl.c.

void avl_t_init ( struct avl_traverser trav,
struct avl_table tree 
)

Definition at line 434 of file avl.c.

void* avl_t_insert ( struct avl_traverser trav,
struct avl_table tree,
void *  item 
)

Definition at line 541 of file avl.c.

void* avl_t_last ( struct avl_traverser trav,
struct avl_table tree 
)

Definition at line 473 of file avl.c.

void* avl_t_next ( struct avl_traverser trav)

Definition at line 590 of file avl.c.

void* avl_t_prev ( struct avl_traverser trav)

Definition at line 643 of file avl.c.

void* avl_t_replace ( struct avl_traverser trav,
void *  new 
)

Definition at line 705 of file avl.c.

Variable Documentation

struct libavl_allocator avl_allocator_default
Initial value:
=
{
}
void avl_free(struct libavl_allocator *allocator, void *block)
Definition: avl.c:869
void * avl_malloc(struct libavl_allocator *allocator, size_t size)
Definition: avl.c:861

Definition at line 876 of file avl.c.