cdcontainers
0.1.1
Library of data containers and collections for C programming language.
|
Functions | |
enum cdc_stat | cdc_splay_tree_ctor (struct cdc_splay_tree **t, struct cdc_data_info *info) |
Constructs an empty splay tree. More... | |
enum cdc_stat | cdc_splay_tree_ctorl (struct cdc_splay_tree **t, struct cdc_data_info *info,...) |
Constructs a splay tree, initialized by an variable number of pointers on cdc_pair's(first - key, and the second - value). The last item must be CDC_END. More... | |
enum cdc_stat | cdc_splay_tree_ctorv (struct cdc_splay_tree **t, struct cdc_data_info *info, va_list args) |
Constructs a splay tree, initialized by args. The last item must be CDC_END. More... | |
void | cdc_splay_tree_dtor (struct cdc_splay_tree *t) |
Destroys the splay tree. More... | |
enum cdc_stat cdc_splay_tree_ctor | ( | struct cdc_splay_tree ** | t, |
struct cdc_data_info * | info | ||
) |
Constructs an empty splay tree.
[out] | t | - cdc_splay_tree |
[in] | info | - cdc_data_info |
enum cdc_stat cdc_splay_tree_ctorl | ( | struct cdc_splay_tree ** | t, |
struct cdc_data_info * | info, | ||
... | |||
) |
Constructs a splay tree, initialized by an variable number of pointers on cdc_pair's(first - key, and the second - value). The last item must be CDC_END.
[out] | t | - cdc_splay_tree |
[in] | info | - cdc_data_info |
Example:
enum cdc_stat cdc_splay_tree_ctorv | ( | struct cdc_splay_tree ** | t, |
struct cdc_data_info * | info, | ||
va_list | args | ||
) |
Constructs a splay tree, initialized by args. The last item must be CDC_END.
[out] | t | - cdc_splay_tree |
[in] | info | - cdc_data_info |
void cdc_splay_tree_dtor | ( | struct cdc_splay_tree * | t | ) |
Destroys the splay tree.
[in] | t | - cdc_splay_tree |