BRL-CAD

An implementation of hash tables. More...

#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "bu/magic.h"
#include "bu/hash.h"
Include dependency graph for hash.c:

Go to the source code of this file.

Functions

unsigned long bu_hash (const unsigned char *str, int len)
 
struct bu_hash_tblbu_hash_tbl_create (unsigned long tbl_size)
 
struct bu_hash_entrybu_hash_tbl_find (const struct bu_hash_tbl *hsh_tbl, const unsigned char *key, int key_len, struct bu_hash_entry **prev, unsigned long *idx)
 
void bu_set_hash_value (struct bu_hash_entry *hsh_entry, unsigned char *value)
 
unsigned char * bu_get_hash_value (const struct bu_hash_entry *hsh_entry)
 
unsigned char * bu_get_hash_key (const struct bu_hash_entry *hsh_entry)
 
struct bu_hash_entrybu_hash_tbl_add (struct bu_hash_tbl *hsh_tbl, const unsigned char *key, int key_len, int *new_entry)
 
void bu_hash_tbl_print (const struct bu_hash_tbl *hsh_tbl, const char *str)
 
void bu_hash_tbl_free (struct bu_hash_tbl *hsh_tbl)
 
struct bu_hash_entrybu_hash_tbl_first (const struct bu_hash_tbl *hsh_tbl, struct bu_hash_record *rec)
 
struct bu_hash_entrybu_hash_tbl_next (struct bu_hash_record *rec)
 
struct bu_hash_entrybu_hash_tbl_traverse (struct bu_hash_tbl *hsh_tbl, int(*func)(struct bu_hash_entry *, void *), void *func_arg)
 

Detailed Description

An implementation of hash tables.

Definition in file hash.c.