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

inthash.h File Reference

Go to the source code of this file.

Compounds

struct  inthash_t

Defines

#define HASH_FAIL   -1
#define VMDEXTERNSTATIC

Typedefs

typedef inthash_t inthash_t

Functions

void inthash_init (inthash_t *, int)
int inthash_lookup (const inthash_t *, int)
int inthash_insert (inthash_t *, int, int)
int inthash_delete (inthash_t *, int)
void inthash_destroy (inthash_t *)
char * inthash_stats (inthash_t *)


Define Documentation

#define HASH_FAIL   -1
 

Definition at line 33 of file inthash.h.

#define VMDEXTERNSTATIC
 

Definition at line 40 of file inthash.h.


Typedef Documentation

typedef struct inthash_t inthash_t
 

hash table top level data structure


Function Documentation

int inthash_delete inthash_t  ,
int   
 

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

Definition at line 179 of file inthash.c.

void inthash_destroy inthash_t  
 

destroy the hash table completely, deallocate memory

Definition at line 220 of file inthash.c.

Referenced by SmallRingLinkages::clear, MoleculeList::del_all_molecules, MoleculeList::del_molecule, MoleculeList::~MoleculeList, and SmallRingLinkages::~SmallRingLinkages.

void inthash_init inthash_t  ,
int   
 

initialize hash table for first use

Definition at line 59 of file inthash.c.

Referenced by SmallRingLinkages::clear, MoleculeList::del_all_molecules, MoleculeList::del_molecule, MoleculeList::MoleculeList, rebuild_table, and SmallRingLinkages::SmallRingLinkages.

int inthash_insert inthash_t  ,
int   ,
int   
 

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

Definition at line 147 of file inthash.c.

Referenced by MoleculeList::add_molecule, MoleculeList::del_molecule, and SmallRingLinkages::getLinkageEdge.

int inthash_lookup const inthash_t  ,
int   
 

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

Definition at line 123 of file inthash.c.

Referenced by SmallRingLinkages::getLinkageEdge, inthash_insert, and MoleculeList::mol_index_from_id.

char* inthash_stats inthash_t  
 

print hash table vital stats

Definition at line 266 of file inthash.c.


Generated on Sat Aug 30 01:27:16 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002