GNUnet  0.11.x
Data Fields
GNUNET_CONTAINER_MultiHashMap32 Struct Reference

Internal representation of the hash map. More...

Collaboration diagram for GNUNET_CONTAINER_MultiHashMap32:
[legend]

Data Fields

struct MapEntry ** map
 All of our buckets. More...
 
unsigned int size
 Number of entries in the map. More...
 
unsigned int map_length
 Length of the map array. More...
 
unsigned int modification_counter
 Counts the destructive modifications (grow, remove) to the map, so that iterators can check if they are still valid. More...
 
struct MapEntrynext_cache [16]
 Map entries indicating iteration positions currently in use by GNUNET_CONTAINER_multihashmap_get_multiple(). More...
 
unsigned int next_cache_off
 Offset of next_cache entries in use, must be smaller than NEXT_CACHE_SIZE. More...
 

Detailed Description

Internal representation of the hash map.

Definition at line 67 of file container_multihashmap32.c.

Field Documentation

◆ map

struct MapEntry** GNUNET_CONTAINER_MultiHashMap32::map

◆ size

unsigned int GNUNET_CONTAINER_MultiHashMap32::size

◆ map_length

unsigned int GNUNET_CONTAINER_MultiHashMap32::map_length

◆ modification_counter

unsigned int GNUNET_CONTAINER_MultiHashMap32::modification_counter

Counts the destructive modifications (grow, remove) to the map, so that iterators can check if they are still valid.

Definition at line 88 of file container_multihashmap32.c.

Referenced by GNUNET_CONTAINER_multihashmap32_iterator_create(), GNUNET_CONTAINER_multihashmap32_iterator_next(), GNUNET_CONTAINER_multihashmap32_remove(), GNUNET_CONTAINER_multihashmap32_remove_all(), and grow().

◆ next_cache

struct MapEntry* GNUNET_CONTAINER_MultiHashMap32::next_cache[16]

Map entries indicating iteration positions currently in use by GNUNET_CONTAINER_multihashmap_get_multiple().

Only used up to next_cache_off.

Definition at line 95 of file container_multihashmap32.c.

Referenced by GNUNET_CONTAINER_multihashmap32_get_multiple(), GNUNET_CONTAINER_multihashmap32_iterate(), and update_next_cache().

◆ next_cache_off

unsigned int GNUNET_CONTAINER_MultiHashMap32::next_cache_off

Offset of next_cache entries in use, must be smaller than NEXT_CACHE_SIZE.

Definition at line 101 of file container_multihashmap32.c.

Referenced by GNUNET_CONTAINER_multihashmap32_get_multiple(), GNUNET_CONTAINER_multihashmap32_iterate(), and update_next_cache().


The documentation for this struct was generated from the following file: