psHash.h File Reference


Detailed Description

Contains support for basic hashing functions.

This file will hold the prototypes for defining a hash table with arbitrary data types, allocating/deallocating that has table, adding and removing data from that hash table, and listing all keys defined in the hash table.

Author:
Robert Lupton, Princeton University

Robert DeSonia, MHPCC

GLG, MHPCC

Version:
Revision
1.20
Name
Date:
Date
2007/01/23 22:47:23
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

Definition in file psHash.h.

#include "psList.h"

Include dependency graph for psHash.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  psHashBucket
 A bucket that holds an item of data. More...
struct  psHash
 The hash-table itself. More...

Functions

bool psMemCheckHash (psPtr ptr)
 Checks the type of a particular pointer.
psHashpsHashAlloc (long nalloc)
 Allocate hash buckets in table.
bool psHashAdd (psHash *hash, const char *key, psPtr data)
 Insert entry into table.
psPtr psHashLookup (const psHash *hash, const char *key)
 Lookup key in table.
bool psHashRemove (psHash *hash, const char *key)
 Remove key from table.
psListpsHashKeyList (const psHash *hash)
 List all keys in table.
psArraypsHashToArray (const psHash *hash)
 Create a psArray from a psHash contents.


Generated on Fri Feb 2 22:24:53 2007 for pslib by  doxygen 1.5.1