Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

hash.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hash.h"

Include dependency graph for hash.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  hash_node_t

Defines

#define HASH_LIMIT   0.5

Typedefs

typedef hash_node_t hash_node_t

Functions

int hash (const hash_t *tptr, const char *key)
void rebuild_table (hash_t *tptr)
void hash_init (hash_t *tptr, int buckets)
void * hash_lookup (const hash_t *tptr, const char *key)
void * hash_insert (hash_t *tptr, const char *key, void *data)
void * hash_delete (hash_t *tptr, const char *key)
void hash_destroy (hash_t *tptr, void(*free_data)(void *))
float alos (hash_t *tptr)
char * hash_stats (hash_t *tptr)


Define Documentation

#define HASH_LIMIT   0.5
 

Definition at line 12 of file hash.c.


Typedef Documentation

typedef struct hash_node_t hash_node_t
 


Function Documentation

float alos hash_t   tptr [static]
 

Definition at line 274 of file hash.c.

int hash const hash_t   tptr,
const char *    key
[static]
 

Definition at line 31 of file hash.c.

void* hash_delete hash_t   tptr,
const char *    key
 

Definition at line 194 of file hash.c.

void hash_destroy hash_t   tptr,
void(*    free_data)(void *)
 

Definition at line 242 of file hash.c.

void hash_init hash_t   tptr,
int    buckets
 

Definition at line 97 of file hash.c.

void* hash_insert hash_t   tptr,
const char *    key,
void *    data
 

Definition at line 159 of file hash.c.

void* hash_lookup const hash_t   tptr,
const char *    key
 

Definition at line 132 of file hash.c.

char* hash_stats hash_t   tptr
 

Definition at line 295 of file hash.c.

void rebuild_table hash_t   tptr [static]
 

Definition at line 53 of file hash.c.


Generated on Sun Jun 13 20:51:32 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18