SWILIB API (NSG)    
Loading...
Searching...
No Matches
lhash.h File Reference
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  lhash_node_st
 
struct  lhash_st
 

Macros

#define LH_LOAD_MULT   256
 
#define lh_error(lh)   ((lh)->error)
 

Typedefs

typedef struct lhash_node_st LHASH_NODE
 
typedef struct lhash_st LHASH
 

Functions

LHASH * lh_new (unsigned long(*h)(), int(*c)())
 
void lh_free (LHASH *lh)
 
void * lh_insert (LHASH *lh, void *data)
 
void * lh_delete (LHASH *lh, void *data)
 
void * lh_retrieve (LHASH *lh, void *data)
 
void lh_doall (LHASH *lh, void(*func)())
 
void lh_doall_arg (LHASH *lh, void(*func)(), void *arg)
 
unsigned long lh_strhash (const char *c)
 
unsigned long lh_num_items (LHASH *lh)
 
void lh_stats (LHASH *lh, FILE *out)
 
void lh_node_stats (LHASH *lh, FILE *out)
 
void lh_node_usage_stats (LHASH *lh, FILE *out)
 

Data Structure Documentation

◆ lhash_node_st

struct lhash_node_st

◆ lhash_st

struct lhash_st

Macro Definition Documentation

◆ LH_LOAD_MULT

#define LH_LOAD_MULT   256

Definition at line 113 of file lhash.h.

◆ lh_error

#define lh_error ( lh)    ((lh)->error)

Definition at line 117 of file lhash.h.

Typedef Documentation

◆ LHASH_NODE

typedef struct lhash_node_st LHASH_NODE

◆ LHASH

typedef struct lhash_st LHASH

Function Documentation

◆ lh_new()

LHASH * lh_new ( unsigned long(* h )(),
int(* c )() )

◆ lh_free()

void lh_free ( LHASH * lh)

◆ lh_insert()

void * lh_insert ( LHASH * lh,
void * data )

◆ lh_delete()

void * lh_delete ( LHASH * lh,
void * data )

◆ lh_retrieve()

void * lh_retrieve ( LHASH * lh,
void * data )

◆ lh_doall()

void lh_doall ( LHASH * lh,
void(* func )() )

◆ lh_doall_arg()

void lh_doall_arg ( LHASH * lh,
void(* func )(),
void * arg )

◆ lh_strhash()

unsigned long lh_strhash ( const char * c)

◆ lh_num_items()

unsigned long lh_num_items ( LHASH * lh)

◆ lh_stats()

void lh_stats ( LHASH * lh,
FILE * out )

◆ lh_node_stats()

void lh_node_stats ( LHASH * lh,
FILE * out )

◆ lh_node_usage_stats()

void lh_node_usage_stats ( LHASH * lh,
FILE * out )