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

u_hmap_opts_s Struct Reference

Optional Map settings.


Data Fields

size_t size
size_t max
u_hmap_type_t type
u_hmap_pcy_type_t policy
int options
size_t(* f_hash )(void *key, size_t buckets)
int(* f_comp )(void *k1, void *k2)
void(* f_free )(u_hmap_o_t *obj)
u_string_t *(* f_str )(u_hmap_o_t *obj)


Detailed Description

Definition at line 62 of file hmap.h.


Field Documentation

int(* u_hmap_opts_s::f_comp)(void *k1, void *k2)
 

function for key comparison

Referenced by u_hmap_opts_init().

void(* u_hmap_opts_s::f_free)(u_hmap_o_t *obj)
 

function for freeing an object

Referenced by u_hmap_opts_dbg(), and u_hmap_opts_init().

size_t(* u_hmap_opts_s::f_hash)(void *key, size_t buckets)
 

hash function to be used in hashhmap

Referenced by u_hmap_opts_init().

u_string_t*(* u_hmap_opts_s::f_str)(u_hmap_o_t *obj)
 

function to get a string representation of a (key, val) object

Referenced by u_hmap_opts_init().

size_t u_hmap_opts_s::max
 

approximate size of hashhmap array maximum number of elements in hmap - only applies to hmaps with discard policy

Definition at line 64 of file hmap.h.

Referenced by u_hmap_opts_dbg(), and u_hmap_opts_init().

int u_hmap_opts_s::options
 

see definitions for U_HMAP_OPTS_*

Definition at line 72 of file hmap.h.

Referenced by u_hmap_opts_dbg(), and u_hmap_opts_init().

u_hmap_pcy_type_t u_hmap_opts_s::policy
 

discard policy (disabled by default)

Definition at line 70 of file hmap.h.

Referenced by u_hmap_opts_dbg(), and u_hmap_opts_init().

size_t u_hmap_opts_s::size
 

approximate size of hashhmap array

Definition at line 64 of file hmap.h.

Referenced by u_hmap_opts_dbg(), and u_hmap_opts_init().

u_hmap_type_t u_hmap_opts_s::type
 

type of hashmap

Definition at line 68 of file hmap.h.

Referenced by u_hmap_opts_init().


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