Main Page | Modules | Data Structures | File List | Data Fields

u_hmap_opts_s Struct Reference

Optional Map settings.


Data Fields

size_t max_size
size_t max_elems
u_hmap_pcy_t policy
size_t(* f_hash )(const char *key, size_t buckets)
int(* f_comp )(const char *k1, const char *k2)
void(* f_free )(void *val)
u_string_t *(* f_str )(void *val)


Field Documentation

int(* u_hmap_opts_s::f_comp)(const char *k1, const char *k2)
 

function for key comparison

Referenced by u_hmap_opts_new().

void(* u_hmap_opts_s::f_free)(void *val)
 

function for freeing an object

Referenced by u_hmap_opts_new().

size_t(* u_hmap_opts_s::f_hash)(const char *key, size_t buckets)
 

hash function to be used in hashhmap

Referenced by u_hmap_opts_new().

u_string_t*(* u_hmap_opts_s::f_str)(void *val)
 

function to get a string representation of an object

Referenced by u_hmap_opts_new().

size_t u_hmap_opts_s::max_elems
 

maximum number of elements in hmap

Definition at line 28 of file hmap.h.

Referenced by u_hmap_opts_new().

size_t u_hmap_opts_s::max_size
 

maximum size of hashhmap array

Definition at line 27 of file hmap.h.

Referenced by u_hmap_opts_new().

u_hmap_pcy_t u_hmap_opts_s::policy
 

caching policy

Definition at line 29 of file hmap.h.

Referenced by u_hmap_opts_new().


The documentation for this struct was generated from the following file:
←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved