struct_coucal Struct Reference

Collaboration diagram for struct_coucal:
Collaboration graph
[legend]

List of all members.

Public Attributes

coucal_itemitems
size_t lg_size
size_t used
struct {
   coucal_item   items [STASH_SIZE]
   size_t   size
stash
struct {
   char *   buffer
   size_t   size
   size_t   capacity
   size_t   used
pool
struct {
   size_t   max_stash_size
   size_t   write_count
   size_t   add_count
   size_t   cuckoo_moved
   size_t   stash_added
   size_t   rehash_count
   size_t   pool_compact_count
   size_t   pool_realloc_count
stats
struct {
   struct {
      t_coucal_value_freehandler   free
      coucal_opaque   arg
   }   value
   struct {
      t_coucal_duphandler   dup
      t_coucal_key_freehandler   free
      t_coucal_hasheshandler   hash
      t_coucal_cmphandler   equals
      coucal_opaque   arg
   }   key
   struct {
      t_coucal_loghandler   log
      t_coucal_asserthandler   fatal
      coucal_opaque   arg
      coucal_key_const   name
   }   error
   struct {
      t_coucal_printkeyhandler   key
      t_coucal_printvaluehandler   value
      coucal_opaque   arg
   }   print
custom

Detailed Description

Hashtable.


Member Data Documentation

Number of writes causing an add.

opaque argument

String buffer.

Buffer capacity.

Number of cuckoo moved during adds.

struct { ... } struct_coucal::custom

Settings.

strdup()

comparison

struct { ... } struct_coucal::error

How to handle fatal assertions (might be NULL).

abort()

hash

Stash items.

Hashtable items.

key print()

struct { ... } struct_coucal::key

How to handle names (might be NULL).

Log-2 of the hashtable size.

logging

Highest stash.size seen.

hashtable name for logging

struct { ... } struct_coucal::pool

String pool.

Number of pool compact operations.

Number of pool realloc operations.

struct { ... } struct_coucal::print

How to handle pretty-print (debug) (might be NULL).

Number of hashtable rehash/expand operations.

Stash size (<= STASH_SIZE).

Buffer used size (high watermark).

struct { ... } struct_coucal::stash

Stash area for collisions.

Number of items added to stash.

struct { ... } struct_coucal::stats

Statistics

Number of used items (<= POW2(lg_size)).

Used chars (== size if compacted).

value print()

struct { ... } struct_coucal::value

How to handle values (might be NULL).

Number of writes.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1