Hash_i_dh.c File Reference

#include "Hash_i_dh.h"
#include "Parser_dh.h"
#include "Mem_dh.h"
Include dependency graph for Hash_i_dh.c:

Go to the source code of this file.

Classes

struct  _hash_i_node_private
struct  _hash_i_dh

Defines

#define DEFAULT_TABLE_SIZE   16
#define HASH_1(k, size, idxOut)   { *idxOut = k % size; }
#define HASH_2(k, size, idxOut)
#define __FUNC__   "Hash_i_dhCreate"
#define __FUNC__   "Hash_i_dhDestroy"
#define __FUNC__   "Hash_i_dhReset"
#define __FUNC__   "Hash_i_dhLookup"
#define __FUNC__   "Hash_i_dhInsert"
#define __FUNC__   "rehash_private"

Typedefs

typedef struct _hash_i_node_private Hash_i_Record

Functions

static void rehash_private (Hash_i_dh h)
void Hash_i_dhCreate (Hash_i_dh *h, int sizeIN)
void Hash_i_dhDestroy (Hash_i_dh h)
void Hash_i_dhReset (Hash_i_dh h)
int Hash_i_dhLookup (Hash_i_dh h, int key)
void Hash_i_dhInsert (Hash_i_dh h, int key, int dataIN)

Define Documentation

#define DEFAULT_TABLE_SIZE   16

Definition at line 34 of file Hash_i_dh.c.

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

Definition at line 42 of file Hash_i_dh.c.

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

Definition at line 45 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhCreate"

Definition at line 253 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhDestroy"

Definition at line 253 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhReset"

Definition at line 253 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhLookup"

Definition at line 253 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhInsert"

Definition at line 253 of file Hash_i_dh.c.

#define __FUNC__   "rehash_private"

Definition at line 253 of file Hash_i_dh.c.


Typedef Documentation

Definition at line 56 of file Hash_i_dh.c.


Function Documentation

void rehash_private ( Hash_i_dh  h  )  [static]

Definition at line 255 of file Hash_i_dh.c.

void Hash_i_dhCreate ( Hash_i_dh h,
int  sizeIN 
)

Definition at line 82 of file Hash_i_dh.c.

void Hash_i_dhDestroy ( Hash_i_dh  h  ) 

Definition at line 133 of file Hash_i_dh.c.

void Hash_i_dhReset ( Hash_i_dh  h  ) 

Definition at line 147 of file Hash_i_dh.c.

int Hash_i_dhLookup ( Hash_i_dh  h,
int  key 
)

Definition at line 157 of file Hash_i_dh.c.

void Hash_i_dhInsert ( Hash_i_dh  h,
int  key,
int  dataIN 
)

Definition at line 193 of file Hash_i_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