GATE
|
A gate_map_t
structure contains is a sorted tree of key/value pairs.
More...
#include <maps.h>
A gate_map_t
structure contains is a sorted tree of key/value pairs.
Elements are inserted by comparing their key-part. A key is unique in the map, if the same key is inserted again, it overwrites the content of previous key/value pair. Key searches have a complexity of "O(log(n))"
gate_comparer_t key_comparer |
Compare function to sort keys
gate_size_t key_size |
Size of key element type
gate_mem_copyctor_t key_constructor |
Constructor of key element types
gate_mem_dtor_t key_destructor |
Destructor of key element types
gate_size_t value_size |
Size of value element type
gate_mem_copyctor_t value_constructor |
Constructor of value element types
gate_mem_dtor_t value_destructor |
Destructor of value element types
gate_size_t item_count |
Map element counter
gate_treenode_t* root |
Pointer to tree root node