|
#define | GATE_MAP_FOREACH(iterator_var, ptr_map) |
| for-each macro to iterate over elements of a map
|
|
#define | GATE_MAP_ITER_KEY(type, iter) |
| Typed key accessor for iterators.
|
|
#define | GATE_MAP_ITER_VALUE(type, iter) |
| Typed value accessor for iterators.
|
|
#define | gate_set_create(s, comparer, key_size, key_ctor, key_dtor) |
| Creates a set of unique keys.
|
|
#define | gate_set_copy(dst, src) |
| Creates a set by copying the contents of another set.
|
|
#define | gate_set_destroy(s) |
| Releases all allocated resources of a set.
|
|
#define | gate_set_count(s) |
| Returns the amount of elements in a set.
|
|
#define | gate_set_add(s, key) |
| Adds an element to the set (or replaces an existing one)
|
|
#define | gate_set_remove(s, key) |
| Removes an element from the set.
|
|
#define | gate_set_is_empty(s) |
| Determines if the set is currently empty.
|
|
#define | gate_set_clear(s) |
| Removes all elements from the set.
|
|
#define | gate_set_get(s, key) |
| Returns an iterator to the set element matching the key.
|
|
#define | gate_set_first(s) |
| Returns an iterator to the first element in the set (smallest in search order)
|
|
#define | gate_set_last(s) |
| Returns an iterator to the last element in the set (greatest in search order)
|
|
#define | gate_set_end(s) |
| Returns an iterator to the virtual end (NULL element) of a set.
|
|
#define | gate_set_iterator_next(s) |
| Returns an iterator to the next following element relative to the given iterator.
|
|
#define | gate_set_iterator_prev(s) |
| Returns an iterator to the previous element relative to the given iterator.
|
|
#define | gate_set_iterator_equals(i1, i2) |
| Determines if two iterators are pointing to the same element.
|
|
#define | gate_set_iterator_valid(s) |
| Determines if an iterator is pointing to a valid element.
|
|
#define | gate_set_remove_keys(s, keys) |
| Removes all elements in set that are also contained in another key set.
|
|
#define | gate_set_merge(s, with) |
| Imports all elements of a set into a target set.
|
|
|
GATE_CORE_API gate_treenode_t * | gate_treenode_find (gate_treenode_t *root, gate_comparer_t comparer, void const *key, gate_treenode_t **ptr_last_parent) |
| Finds a node in a tree of nodes by the given comparer and key.
|
|
GATE_CORE_API void | gate_treenode_insert_repair_tree (gate_treenode_t **root, gate_treenode_t *node) |
| Rebalances the tree after a node was inserted.
|
|
GATE_CORE_API void | gate_treenode_remove_repair_tree (gate_treenode_t **root, gate_treenode_t *node) |
| Removes a node from the tree and rebalances the tree structure param[in] root Pointer to root-node-pointer param[in] node Node to be removed.
|
|
GATE_CORE_API gate_treenode_t * | gate_treenode_minimum (gate_treenode_t *node) |
| Returns the left-most side of a tree-node.
|
|
GATE_CORE_API gate_treenode_t * | gate_treenode_maximum (gate_treenode_t *node) |
| Returns the right-most side of a tree-node.
|
|
GATE_CORE_API gate_treenode_t * | gate_treenode_next (gate_treenode_t *node) |
| Returns the next node in the sorting order of a specific node.
|
|
GATE_CORE_API gate_treenode_t * | gate_treenode_prev (gate_treenode_t *node) |
| Returns the previous node in the sorting order of a specific node.
|
|
GATE_CORE_API gate_map_t * | gate_map_create (gate_map_t *m, gate_comparer_t key_comparer, gate_size_t key_size, gate_mem_copyctor_t key_ctor, gate_mem_dtor_t key_dtor, gate_size_t value_size, gate_mem_copyctor_t value_ctor, gate_mem_dtor_t value_dtor) |
| Creates a new mapping table structure.
|
|
GATE_CORE_API gate_map_t * | gate_map_copy (gate_map_t *dst, gate_map_t const *src) |
| Creates a new mapping table structure by copying content from another map.
|
|
GATE_CORE_API void | gate_map_destroy (gate_map_t *m) |
| Destroys the map and its allocated contents.
|
|
GATE_CORE_API gate_size_t | gate_map_count (gate_map_t const *m) |
| Returns the amount of nodes in a map.
|
|
GATE_CORE_API gate_map_iterator_t | gate_map_add (gate_map_t *m, void const *key, void const *value) |
| Adds a new key/value pair to the map or replaces an existing node if key already exists)
|
|
GATE_CORE_API gate_bool_t | gate_map_remove (gate_map_t *m, void const *key) |
| Removes a key/value pair from the map.
|
|
GATE_CORE_API gate_bool_t | gate_map_is_empty (gate_map_t const *m) |
| Checks if no content is in a map.
|
|
GATE_CORE_API void | gate_map_clear (gate_map_t *m) |
| Removes all contents from the map.
|
|
GATE_CORE_API gate_size_t | gate_map_merge (gate_map_t *m, gate_map_t const *with) |
| Imports all contents from one map into target map.
|
|
GATE_CORE_API gate_size_t | gate_map_remove_keys (gate_map_t *m, gate_map_t const *keys) |
| Removes all nodes in a target map, that are part of another map.
|
|
GATE_CORE_API gate_map_iterator_t | gate_map_get (gate_map_t const *m, void const *key) |
| Searches a key and returns an iterator to its entry.
|
|
GATE_CORE_API gate_map_iterator_t | gate_map_first (gate_map_t const *m) |
| Returns an iterator to the first element in the map (smallest in search order)
|
|
GATE_CORE_API gate_map_iterator_t | gate_map_last (gate_map_t const *m) |
| Returns an iterator to the last element in the map (greatest in search order)
|
|
GATE_CORE_API gate_map_iterator_t | gate_map_end (gate_map_t const *m) |
| Returns an iterator to a not existing element (NULL)
|
|
GATE_CORE_API gate_map_iterator_t | gate_map_iterator_next (gate_map_iterator_t iterator) |
| Retrieves the next following element of an iterator.
|
|
GATE_CORE_API gate_map_iterator_t | gate_map_iterator_prev (gate_map_iterator_t iterator) |
| Retrieves the previous element of an iterator.
|
|
GATE_CORE_API gate_bool_t | gate_map_iterator_equals (gate_map_iterator_t iter1, gate_map_iterator_t iter2) |
| Compares two iterators for equality.
|
|
GATE_CORE_API gate_bool_t | gate_map_iterator_valid (gate_map_iterator_t iterator) |
| Evaluates if an iterator points to a valid element.
|
|
GATE_CORE_API gate_enumerator_t * | gate_map_enumerate (gate_map_t const *m, gate_enumerator_t *enumerator) |
| Initializes an enumerator structure to walk through all map elements.
|
|
GATE_CORE_API void * | gate_map_get_value (gate_map_t const *m, void const *key) |
| Returns a pointer to value addressed by a key.
|
|
GATE_CORE_API void const * | gate_map_iterator_key (gate_map_iterator_t iterator) |
| Returns a pointer to the key of an element an iterator is pointing to.
|
|
GATE_CORE_API void * | gate_map_iterator_value (gate_map_iterator_t iterator) |
| Returns a pointer to the value of an element an iterator is pointing to.
|
|
GATE_CORE_API gate_result_t | gate_map_copy_constructor (void *dest, void const *src) |
| Copy constructor function for map types.
|
|
GATE_CORE_API void | gate_map_destructor (void *dest) |
| Destructor function for map types.
|
|
GATE_CORE_API gate_flatmap_t * | gate_flatmap_create (gate_flatmap_t *m, gate_comparer_t key_comparer, gate_size_t key_size, gate_mem_copyctor_t key_ctor, gate_mem_dtor_t key_dtor, gate_size_t value_size, gate_mem_copyctor_t value_ctor, gate_mem_dtor_t value_dtor) |
|
|
|
GATE_CORE_API gate_flatmap_t * | gate_flatmap_copy (gate_flatmap_t *dst, gate_flatmap_t const *src) |
|
|
|
GATE_CORE_API void | gate_flatmap_destroy (gate_flatmap_t *m) |
|
|
|
GATE_CORE_API gate_flatmap_iterator_t | gate_flatmap_add (gate_flatmap_t *m, void const *key, void const *value) |
|
|
|
GATE_CORE_API gate_bool_t | gate_flatmap_remove (gate_flatmap_t *m, void const *key) |
|
|
|
GATE_CORE_API gate_bool_t | gate_flatmap_is_empty (gate_flatmap_t const *m) |
|
|
|
GATE_CORE_API void | gate_flatmap_clear (gate_flatmap_t *m) |
|
|
|
GATE_CORE_API gate_size_t | gate_flatmap_merge (gate_flatmap_t *m, gate_flatmap_t const *with) |
|
|
|
GATE_CORE_API gate_size_t | gate_flatmap_remove_keys (gate_flatmap_t *m, gate_flatmap_t const *keys) |
|
|
|
GATE_CORE_API gate_flatmap_iterator_t | gate_flatmap_get (gate_flatmap_t const *m, void const *key) |
|
|
|
GATE_CORE_API gate_flatmap_iterator_t | gate_flatmap_first (gate_flatmap_t const *m) |
|
|
|
GATE_CORE_API gate_flatmap_iterator_t | gate_flatmap_last (gate_flatmap_t const *m) |
|
|
|
GATE_CORE_API gate_flatmap_iterator_t | gate_flatmap_end (gate_flatmap_t const *m) |
|
|
|
GATE_CORE_API gate_flatmap_iterator_t | gate_flatmap_iterator_next (gate_flatmap_iterator_t iterator) |
|
|
|
GATE_CORE_API gate_flatmap_iterator_t | gate_flatmap_iterator_prev (gate_flatmap_iterator_t iterator) |
|
|
|
GATE_CORE_API gate_bool_t | gate_flatmap_iterator_equals (gate_flatmap_iterator_t iter1, gate_flatmap_iterator_t iter2) |
|
|
|
GATE_CORE_API gate_bool_t | gate_flatmap_iterator_valid (gate_flatmap_t const *m, gate_flatmap_iterator_t iterator) |
|
|
|
GATE_CORE_API gate_enumerator_t * | gate_flatmap_enumerate (gate_flatmap_t const *m, gate_enumerator_t *enumerator) |
|
|
|
GATE_CORE_API void * | gate_flatmap_get_value (gate_flatmap_t *m, void const *key) |
|
|
|
GATE_CORE_API void const * | gate_flatmap_iterator_key (gate_flatmap_iterator_t iterator) |
|
|
|
GATE_CORE_API void * | gate_flatmap_iterator_value (gate_flatmap_iterator_t iterator) |
|
|
|
GATE_CORE_API gate_result_t | gate_flatmap_copy_constructor (void *dest, void const *src) |
|
|
|
GATE_CORE_API void | gate_flatmap_destructor (void *dest) |
|
|
|
GATE_CORE_API gate_hashmap_t * | gate_hashmap_create (gate_hashmap_t *m, gate_comparer_t key_comparer, gate_type_hash_generator_t hash_function, gate_size_t key_size, gate_mem_copyctor_t key_ctor, gate_mem_dtor_t key_dtor, gate_size_t value_size, gate_mem_copyctor_t value_ctor, gate_mem_dtor_t value_dtor) |
|
|
|
GATE_CORE_API gate_hashmap_t * | gate_hashmap_copy (gate_hashmap_t *dst, gate_hashmap_t const *src) |
|
|
|
GATE_CORE_API void | gate_hashmap_destroy (gate_hashmap_t *m) |
|
|
|
GATE_CORE_API gate_size_t | gate_hashmap_count (gate_hashmap_t const *m) |
|
|
|
GATE_CORE_API gate_hashmap_iterator_t | gate_hashmap_add (gate_hashmap_t *m, void const *key, void const *value) |
|
|
|
GATE_CORE_API gate_bool_t | gate_hashmap_remove (gate_hashmap_t *m, void const *key) |
|
|
|
GATE_CORE_API gate_bool_t | gate_hashmap_is_empty (gate_hashmap_t const *m) |
|
|
|
GATE_CORE_API void | gate_hashmap_clear (gate_hashmap_t *m) |
|
|
|
GATE_CORE_API gate_size_t | gate_hashmap_merge (gate_hashmap_t *m, gate_hashmap_t const *with) |
|
|
|
GATE_CORE_API gate_size_t | gate_hashmap_remove_keys (gate_hashmap_t *m, gate_hashmap_t const *keys) |
|
|
|
GATE_CORE_API gate_hashmap_iterator_t | gate_hashmap_get (gate_hashmap_t const *m, void const *key) |
|
|
|
GATE_CORE_API gate_hashmap_iterator_t | gate_hashmap_first (gate_hashmap_t const *m) |
|
|
|
GATE_CORE_API gate_hashmap_iterator_t | gate_hashmap_last (gate_hashmap_t const *m) |
|
|
|
GATE_CORE_API gate_hashmap_iterator_t | gate_hashmap_end (gate_hashmap_t const *m) |
|
|
|
GATE_CORE_API gate_hashmap_iterator_t | gate_hashmap_iterator_next (gate_hashmap_iterator_t iterator) |
|
|
|
GATE_CORE_API gate_hashmap_iterator_t | gate_hashmap_iterator_prev (gate_hashmap_iterator_t iterator) |
|
|
|
GATE_CORE_API gate_bool_t | gate_hashmap_iterator_equals (gate_hashmap_iterator_t iter1, gate_hashmap_iterator_t iter2) |
|
|
|
GATE_CORE_API gate_bool_t | gate_hashmap_iterator_valid (gate_hashmap_iterator_t iterator) |
|
|
|
GATE_CORE_API gate_enumerator_t * | gate_hashmap_enumerate (gate_hashmap_t const *m, gate_enumerator_t *enumerator) |
|
|
|
GATE_CORE_API void * | gate_hashmap_get_value (gate_hashmap_t const *m, void const *key) |
|
|
|
GATE_CORE_API void const * | gate_hashmap_iterator_key (gate_hashmap_iterator_t iterator) |
|
|
|
GATE_CORE_API void * | gate_hashmap_iterator_value (gate_hashmap_iterator_t iterator) |
|
|
|