Provides transactional multisets. More...
#include <picotm/compiler.h>
#include <picotm/config/picotm-txlib-config.h>
#include <stdbool.h>
#include <stddef.h>
#include "picotm-txmultiset-state.h"
Functions | |
PICOTM_NOTHROW struct txmultiset_entry * | txmultiset_begin_tx (struct txmultiset *self) |
Returns the first entry of a transactional multiset. More... | |
PICOTM_NOTHROW void | txmultiset_clear_tx (struct txmultiset *self) |
Removes all entries from a transactional multiset. More... | |
PICOTM_NOTHROW size_t | txmultiset_count_tx (struct txmultiset *self, const void *key) |
Returns the number of entries with a specfic key in a transactional multiset. More... | |
PICOTM_NOTHROW bool | txmultiset_empty_tx (struct txmultiset *self) |
Tests a transactional multiset for emptiness. More... | |
PICOTM_NOTHROW struct txmultiset_entry * | txmultiset_end_tx (struct txmultiset *self) |
Returns the terminator of a transactional multiset. More... | |
PICOTM_NOTHROW void | txmultiset_entry_init_tm (struct txmultiset_entry *self) |
Initializes an entry of a transactional multiset from within a transaction. More... | |
PICOTM_NOTHROW void | txmultiset_entry_uninit_tm (struct txmultiset_entry *self) |
Cleans up an entry of a transactional multiset from within a transaction. More... | |
PICOTM_NOTHROW void | txmultiset_erase_tx (struct txmultiset *self, struct txmultiset_entry *entry) |
Removes an entry from a transactional multiset. More... | |
PICOTM_NOTHROW struct txmultiset_entry * | txmultiset_find_tx (struct txmultiset *self, const void *key) |
Finds an entry with a specific key in a transactional multiset. More... | |
PICOTM_NOTHROW void | txmultiset_insert_tx (struct txmultiset *self, struct txmultiset_entry *entry) |
Inserts an entry into a transactional multiset. More... | |
PICOTM_NOTHROW struct txmultiset_entry * | txmultiset_lower_bound_tx (struct txmultiset *self, const void *key) |
Returns a transactional multiset's the first entry with a specific key. More... | |
PICOTM_NOTHROW struct txmultiset * | txmultiset_of_state_tx (struct txmultiset_state *multiset_state) |
Creates a transactional multiset for a multiset state. More... | |
PICOTM_NOTHROW size_t | txmultiset_size_tx (struct txmultiset *self) |
Returns the number of entries in a transactional multiset. More... | |
PICOTM_NOTHROW struct txmultiset_entry * | txmultiset_upper_bound_tx (struct txmultiset *self, const void *key) |
Returns a transactional multiset's first entry with a key larger than a specific key. More... | |
PICOTM_NOTHROW struct txmultiset_entry* txmultiset_begin_tx | ( | struct txmultiset * | self | ) |
self | The transactional multiset. |
PICOTM_NOTHROW void txmultiset_clear_tx | ( | struct txmultiset * | self | ) |
self | The transactional multiset. |
PICOTM_NOTHROW size_t txmultiset_count_tx | ( | struct txmultiset * | self, |
const void * | key | ||
) |
self | The transactional multiset. |
key | The multiset entry's key. |
PICOTM_NOTHROW bool txmultiset_empty_tx | ( | struct txmultiset * | self | ) |
self | The transactional multiset. |
PICOTM_NOTHROW struct txmultiset_entry* txmultiset_end_tx | ( | struct txmultiset * | self | ) |
self | The transactional multiset. |
PICOTM_NOTHROW void txmultiset_entry_init_tm | ( | struct txmultiset_entry * | self | ) |
self | The multiset entry to initialize. |
PICOTM_NOTHROW void txmultiset_entry_uninit_tm | ( | struct txmultiset_entry * | self | ) |
self | The multiset entry to clean up. |
PICOTM_NOTHROW void txmultiset_erase_tx | ( | struct txmultiset * | self, |
struct txmultiset_entry * | entry | ||
) |
self | The transactional multiset. |
entry | The multiset entry to remove. |
PICOTM_NOTHROW struct txmultiset_entry* txmultiset_find_tx | ( | struct txmultiset * | self, |
const void * | key | ||
) |
self | The transactional multiset. |
key | The multiset entry's key. |
PICOTM_NOTHROW void txmultiset_insert_tx | ( | struct txmultiset * | self, |
struct txmultiset_entry * | entry | ||
) |
self | The transactional multiset. |
entry | The multiset entry to insert. |
PICOTM_NOTHROW struct txmultiset_entry* txmultiset_lower_bound_tx | ( | struct txmultiset * | self, |
const void * | key | ||
) |
self | The transactional multiset. |
key | The multiset entry's key. |
PICOTM_NOTHROW struct txmultiset* txmultiset_of_state_tx | ( | struct txmultiset_state * | multiset_state | ) |
multiset_state | The multiset state. |
PICOTM_NOTHROW size_t txmultiset_size_tx | ( | struct txmultiset * | self | ) |
self | The transactional multiset. |
PICOTM_NOTHROW struct txmultiset_entry* txmultiset_upper_bound_tx | ( | struct txmultiset * | self, |
const void * | key | ||
) |
self | The transactional multiset. |
key | The multiset entry's key. |