Ifpack Package Browser (Single Doxygen Collection) Development
Loading...
Searching...
No Matches
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

◆ DEFAULT_TABLE_SIZE

#define DEFAULT_TABLE_SIZE   16

Definition at line 47 of file Hash_i_dh.c.

◆ HASH_1

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

Definition at line 55 of file Hash_i_dh.c.

◆ HASH_2

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

◆ __FUNC__ [1/6]

#define __FUNC__   "Hash_i_dhCreate"

Definition at line 93 of file Hash_i_dh.c.

◆ __FUNC__ [2/6]

#define __FUNC__   "Hash_i_dhDestroy"

Definition at line 93 of file Hash_i_dh.c.

◆ __FUNC__ [3/6]

#define __FUNC__   "Hash_i_dhReset"

Definition at line 93 of file Hash_i_dh.c.

◆ __FUNC__ [4/6]

#define __FUNC__   "Hash_i_dhLookup"

Definition at line 93 of file Hash_i_dh.c.

◆ __FUNC__ [5/6]

#define __FUNC__   "Hash_i_dhInsert"

Definition at line 93 of file Hash_i_dh.c.

◆ __FUNC__ [6/6]

#define __FUNC__   "rehash_private"

Definition at line 93 of file Hash_i_dh.c.

Typedef Documentation

◆ Hash_i_Record

Definition at line 69 of file Hash_i_dh.c.

Function Documentation

◆ rehash_private()

void rehash_private ( Hash_i_dh h)
static

Definition at line 268 of file Hash_i_dh.c.

◆ Hash_i_dhCreate()

void Hash_i_dhCreate ( Hash_i_dh * h,
int sizeIN )

Definition at line 95 of file Hash_i_dh.c.

◆ Hash_i_dhDestroy()

void Hash_i_dhDestroy ( Hash_i_dh h)

Definition at line 146 of file Hash_i_dh.c.

◆ Hash_i_dhReset()

void Hash_i_dhReset ( Hash_i_dh h)

Definition at line 160 of file Hash_i_dh.c.

◆ Hash_i_dhLookup()

int Hash_i_dhLookup ( Hash_i_dh h,
int key )

Definition at line 170 of file Hash_i_dh.c.

◆ Hash_i_dhInsert()

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

Definition at line 206 of file Hash_i_dh.c.