Information about an element element in the set. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/contrib/service/set/gnunet-service-set.h>
Data Fields | |
struct GNUNET_SET_Element | element |
The actual element. More... | |
struct GNUNET_HashCode | element_hash |
Hash of the element. More... | |
struct MutationEvent * | mutations |
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... | |
struct GNUNET_SETI_Element | element |
The actual element. More... | |
unsigned int | generation_added |
Generation in which the element was added. More... | |
struct GNUNET_SETU_Element | element |
The actual element. More... | |
unsigned int | generation |
First generation that includes this element. More... | |
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.
struct GNUNET_SET_Element ElementEntry::element |
The actual element.
The data for the element should be allocated at the end of this struct.
Definition at line 244 of file gnunet-service-set.h.
Referenced by execute_add(), filter_all(), filtered_map_initialization(), handle_client_set_add(), handle_union_p2p_demand(), handle_union_p2p_elements(), handle_union_p2p_full_element(), initialize_map_unfiltered(), iterator_bf_reduce(), send_client_element(), send_full_element_iterator(), send_missing_full_elements_iter(), and send_remaining_elements().
struct GNUNET_HashCode ElementEntry::element_hash |
Hash of the element.
For set union: Will be used to derive the different IBF keys for different salts.
Definition at line 250 of file gnunet-service-set.h.
Referenced by execute_add(), filter_all(), filtered_map_initialization(), handle_client_set_add(), handle_union_p2p_demand(), handle_union_p2p_elements(), handle_union_p2p_full_element(), initialize_map_unfiltered(), iterator_bf_create(), iterator_bf_reduce(), op_get_element_iterator(), op_register_element(), prepare_ibf_iterator(), send_offers_iterator(), send_remaining_elements(), union_add(), and union_remove().
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().
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().
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_client_set_add(), handle_union_p2p_elements(), handle_union_p2p_full_element(), and init_key_to_element_iterator().
struct GNUNET_SETI_Element ElementEntry::element |
The actual element.
The data for the element should be allocated at the end of this struct.
Definition at line 115 of file gnunet-service-seti.c.
unsigned int ElementEntry::generation_added |
Generation in which the element was added.
Definition at line 126 of file gnunet-service-seti.c.
Referenced by _GSS_is_element_of_operation().
struct GNUNET_SETU_Element ElementEntry::element |
The actual element.
The data for the element should be allocated at the end of this struct.
Definition at line 212 of file gnunet-service-setu.c.
unsigned int ElementEntry::generation |
First generation that includes this element.
Definition at line 223 of file gnunet-service-setu.c.
Referenced by _GSS_is_element_of_operation(), and handle_client_set_add().