Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   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)
int inthash_entries (inthash_t *)
void inthash_destroy (inthash_t *)
char * inthash_stats (inthash_t *)


Define Documentation

#define HASH_FAIL   -1
 

Definition at line 36 of file inthash.h.

#define VMDEXTERNSTATIC
 

Definition at line 43 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 int from the hash table, given its key

Definition at line 182 of file inthash.c.

void inthash_destroy (  inthash_t *    ) 
 

destroy the hash table completely, deallocate memory

Definition at line 231 of file inthash.c.

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

int inthash_entries (  inthash_t *    ) 
 

return the number of entries in the hash table

Definition at line 222 of file inthash.c.

void inthash_init (  inthash_t *   ,
int   
) 
 

initialize hash table for first use

Definition at line 62 of file inthash.c.

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

int inthash_insert (  inthash_t *   ,
int   ,
int   
) 
 

insert an int into the hash table, along with an integer key

Definition at line 150 of file inthash.c.

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

int inthash_lookup (  const inthash_t *   ,
int   
) 
 

lookup a key in the hash table returning its integer key

Definition at line 126 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 277 of file inthash.c.


Generated on Fri Jan 23 01:51:48 2026 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002