Ifpack Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Typedefs | Functions
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
 

Macros

#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)
 

Macro Definition Documentation

#define DEFAULT_TABLE_SIZE   16

Definition at line 47 of file Hash_i_dh.c.

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

Definition at line 55 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 58 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhCreate"

Definition at line 266 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhDestroy"

Definition at line 266 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhReset"

Definition at line 266 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhLookup"

Definition at line 266 of file Hash_i_dh.c.

#define __FUNC__   "Hash_i_dhInsert"

Definition at line 266 of file Hash_i_dh.c.

#define __FUNC__   "rehash_private"

Definition at line 266 of file Hash_i_dh.c.

Typedef Documentation

Definition at line 69 of file Hash_i_dh.c.

Function Documentation

void rehash_private ( Hash_i_dh  h)
static

Definition at line 268 of file Hash_i_dh.c.

void Hash_i_dhCreate ( Hash_i_dh h,
int  sizeIN 
)

Definition at line 95 of file Hash_i_dh.c.

void Hash_i_dhDestroy ( Hash_i_dh  h)

Definition at line 146 of file Hash_i_dh.c.

void Hash_i_dhReset ( Hash_i_dh  h)

Definition at line 160 of file Hash_i_dh.c.

int Hash_i_dhLookup ( Hash_i_dh  h,
int  key 
)

Definition at line 170 of file Hash_i_dh.c.

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

Definition at line 206 of file Hash_i_dh.c.