
Go to the source code of this file.
| Functions | |
| gk_HTable_t * | HTable_Create (int nelements) | 
| void | HTable_Reset (gk_HTable_t *htable) | 
| void | HTable_Resize (gk_HTable_t *htable, int nelements) | 
| void | HTable_Insert (gk_HTable_t *htable, int key, int val) | 
| void | HTable_Delete (gk_HTable_t *htable, int key) | 
| int | HTable_Search (gk_HTable_t *htable, int key) | 
| int | HTable_GetNext (gk_HTable_t *htable, int key, int *r_val, int type) | 
| int | HTable_SearchAndDelete (gk_HTable_t *htable, int key) | 
| void | HTable_Destroy (gk_HTable_t *htable) | 
| int | HTable_HFunction (int nelements, int key) | 
| gk_HTable_t* HTable_Create | ( | int | nelements | ) | 
Definition at line 16 of file htable.c.
References gk_malloc(), gk_HTable_t::harray, HTable_Reset(), and gk_HTable_t::nelements.

| void HTable_Reset | ( | gk_HTable_t * | htable | ) | 
Definition at line 33 of file htable.c.
References gk_HTable_t::harray, gk_HTable_t::htsize, and gk_HTable_t::nelements.
Referenced by HTable_Create().

| void HTable_Resize | ( | gk_HTable_t * | htable, | |
| int | nelements | |||
| ) | 
Definition at line 46 of file htable.c.
References gk_free(), gk_HTable_t::harray, HTable_Insert(), gk_HTable_t::htsize, key, and gk_HTable_t::nelements.
Referenced by HTable_Insert().


| void HTable_Insert | ( | gk_HTable_t * | htable, | |
| int | key, | |||
| int | val | |||
| ) | 
Definition at line 74 of file htable.c.
References gk_HTable_t::harray, HTable_HFunction(), HTable_Resize(), gk_HTable_t::htsize, and gk_HTable_t::nelements.
Referenced by HTable_Resize().


| void HTable_Delete | ( | gk_HTable_t * | htable, | |
| int | key | |||
| ) | 
Definition at line 107 of file htable.c.
References gk_HTable_t::harray, HTable_HFunction(), gk_HTable_t::htsize, and gk_HTable_t::nelements.

| int HTable_Search | ( | gk_HTable_t * | htable, | |
| int | key | |||
| ) | 
Definition at line 135 of file htable.c.
References gk_HTable_t::harray, HTable_HFunction(), and gk_HTable_t::nelements.

| int HTable_GetNext | ( | gk_HTable_t * | htable, | |
| int | key, | |||
| int * | r_val, | |||
| int | type | |||
| ) | 
Definition at line 162 of file htable.c.
References gk_HTable_t::harray, HTable_HFunction(), and gk_HTable_t::nelements.

| int HTable_SearchAndDelete | ( | gk_HTable_t * | htable, | |
| int | key | |||
| ) | 
Definition at line 200 of file htable.c.
References gk_errexit(), gk_HTable_t::harray, HTable_HFunction(), gk_HTable_t::htsize, and gk_HTable_t::nelements.

| void HTable_Destroy | ( | gk_HTable_t * | htable | ) | 
Definition at line 235 of file htable.c.
References gk_free(), and gk_HTable_t::harray.

Definition at line 244 of file htable.c.
Referenced by HTable_Delete(), HTable_GetNext(), HTable_Insert(), HTable_Search(), and HTable_SearchAndDelete().

 1.5.5
 1.5.5