Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

hash.h File Reference

#include "hash.c"

Go to the source code of this file.

Compounds

struct  hash_t

Defines

#define HASH_FAIL   -1
#define VMDEXTERNSTATIC

Typedefs

typedef hash_t hash_t

Functions

void hash_init (hash_t *, int)
int hash_lookup (const hash_t *, const char *)
int hash_insert (hash_t *, const char *, int)
int hash_delete (hash_t *, const char *)
void hash_destroy (hash_t *)
char * hash_stats (hash_t *)


Define Documentation

#define HASH_FAIL   -1
 

Definition at line 33 of file hash.h.

Referenced by hash_delete, hash_insert, hash_lookup, and read_mdf_bonds.

#define VMDEXTERNSTATIC
 

Definition at line 40 of file hash.h.

Referenced by hash_delete, hash_destroy, hash_init, hash_insert, hash_lookup, and hash_stats.


Typedef Documentation

typedef struct hash_t hash_t
 

hash table top level data structure


Function Documentation

int hash_delete hash_t  ,
const char *   
 

delete an string from the hash table, given its string name

Definition at line 183 of file hash.c.

void hash_destroy hash_t  
 

destroy the hash table completely, deallocate memory

Definition at line 224 of file hash.c.

Referenced by read_mdf_bonds.

void hash_init hash_t  ,
int   
 

initialize hash table for first use

Definition at line 63 of file hash.c.

Referenced by read_mdf_bonds, and rebuild_table.

int hash_insert hash_t  ,
const char *   ,
int   
 

insert a string into the hash table, along with an integer key

Definition at line 151 of file hash.c.

Referenced by read_mdf_bonds.

int hash_lookup const hash_t  ,
const char *   
 

lookup a string key in the hash table returning its integer key

Definition at line 127 of file hash.c.

Referenced by hash_insert, and read_mdf_bonds.

char* hash_stats hash_t  
 

print hash table vital stats

Definition at line 270 of file hash.c.


Generated on Wed Mar 22 13:15:33 2006 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002