Hash_dh.h File Reference

#include "euclid_common.h"
Include dependency graph for Hash_dh.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _hash_node
struct  _hash_dh

Defines

#define HASH_1(k, size, idxOut)   { *idxOut = k % size; }
#define HASH_2(k, size, idxOut)

Typedefs

typedef struct _hash_node HashData
typedef struct _hash_node_private HashRecord

Functions

void Hash_dhCreate (Hash_dh *h, int size)
void Hash_dhDestroy (Hash_dh h)
void Hash_dhInsert (Hash_dh h, int key, HashData *data)
HashDataHash_dhLookup (Hash_dh h, int key)
void Hash_dhReset (Hash_dh h)
void Hash_dhPrint (Hash_dh h, FILE *fp)

Define Documentation

#define HASH_1 ( k,
size,
idxOut   )     { *idxOut = k % size; }

Definition at line 81 of file Hash_dh.h.

#define HASH_2 ( k,
size,
idxOut   ) 
Value:
{  \
            int r = k % (size-13); \
            r = (r % 2) ? r : r+1; \
            *idxOut = r;           \
          }

Definition at line 84 of file Hash_dh.h.


Typedef Documentation

typedef struct _hash_node HashData

Definition at line 59 of file Hash_dh.h.


Function Documentation

void Hash_dhCreate ( Hash_dh h,
int  size 
)

Definition at line 50 of file Hash_dh.c.

void Hash_dhDestroy ( Hash_dh  h  ) 

Definition at line 69 of file Hash_dh.c.

void Hash_dhInsert ( Hash_dh  h,
int  key,
HashData data 
)

Definition at line 161 of file Hash_dh.c.

HashData* Hash_dhLookup ( Hash_dh  h,
int  key 
)

Definition at line 126 of file Hash_dh.c.

void Hash_dhReset ( Hash_dh  h  ) 

Definition at line 83 of file Hash_dh.c.

void Hash_dhPrint ( Hash_dh  h,
FILE *  fp 
)

Definition at line 193 of file Hash_dh.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:05:36 2011 for Ifpack Package Browser (Single Doxygen Collection) by  doxygen 1.6.3