GNUnet  0.11.x
Data Fields
ElementEntry Struct Reference

Information about an element element in the set. More...

#include </home/handbook/gnunet/src/set/gnunet-service-set.h>

Collaboration diagram for ElementEntry:
[legend]

Data Fields

struct GNUNET_SET_Element element
 The actual element. More...
 
struct GNUNET_HashCode element_hash
 Hash of the element. More...
 
struct MutationEventmutations
 If mutations is not NULL, it contains a list of mutations, ordered by increasing generation. More...
 
unsigned int mutations_size
 Number of elements in the array mutations. More...
 
int remote
 GNUNET_YES if the element is a remote element, and does not belong to the operation's set. More...
 

Detailed Description

Information about an element element in the set.

All elements are stored in a hash-table from their hash-code to their struct Element, so that the remove and add operations are reasonably fast.

Definition at line 238 of file gnunet-service-set.h.

Field Documentation

◆ element

struct GNUNET_SET_Element ElementEntry::element

◆ element_hash

struct GNUNET_HashCode ElementEntry::element_hash

◆ mutations

struct MutationEvent* ElementEntry::mutations

If mutations is not NULL, it contains a list of mutations, ordered by increasing generation.

The list is terminated by a sentinel event with generation set to 0.

If mutations is NULL, then this element exists in all generations of the respective set content this element belongs to.

Definition at line 261 of file gnunet-service-set.h.

Referenced by destroy_elements_iterator(), execute_add(), execute_remove(), and is_element_of_generation().

◆ mutations_size

unsigned int ElementEntry::mutations_size

Number of elements in the array mutations.

Definition at line 266 of file gnunet-service-set.h.

Referenced by execute_add(), execute_remove(), and is_element_of_generation().

◆ remote

int ElementEntry::remote

GNUNET_YES if the element is a remote element, and does not belong to the operation's set.

Definition at line 272 of file gnunet-service-set.h.

Referenced by destroy_key_to_element_iter(), execute_add(), handle_union_p2p_elements(), handle_union_p2p_full_element(), and init_key_to_element_iterator().


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