cdcontainers
0.1.1
Library of data containers and collections for C programming language.
|
Functions | |
enum cdc_stat | cdc_treap_ctor (struct cdc_treap **t, struct cdc_data_info *info) |
Constructs an empty treap. More... | |
enum cdc_stat | cdc_treap_ctorl (struct cdc_treap **t, struct cdc_data_info *info,...) |
Constructs a treap, 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_treap_ctorv (struct cdc_treap **t, struct cdc_data_info *info, va_list args) |
Constructs a treap, initialized by args. The last item must be CDC_END. More... | |
enum cdc_stat | cdc_treap_ctor1 (struct cdc_treap **t, struct cdc_data_info *info, cdc_priority_fn_t prior) |
Constructs an empty treap. More... | |
enum cdc_stat | cdc_treap_ctorl1 (struct cdc_treap **t, struct cdc_data_info *info, cdc_priority_fn_t prior,...) |
Constructs a treap, 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_treap_ctorv1 (struct cdc_treap **t, struct cdc_data_info *info, cdc_priority_fn_t prior, va_list args) |
Constructs a treap, initialized by args. The last item must be CDC_END. More... | |
void | cdc_treap_dtor (struct cdc_treap *t) |
Destroys the treap. More... | |
enum cdc_stat cdc_treap_ctor | ( | struct cdc_treap ** | t, |
struct cdc_data_info * | info | ||
) |
Constructs an empty treap.
[out] | t | - cdc_treap |
[in] | info | - cdc_data_info |
enum cdc_stat cdc_treap_ctorl | ( | struct cdc_treap ** | t, |
struct cdc_data_info * | info, | ||
... | |||
) |
Constructs a treap, 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_treap |
[in] | info | - cdc_data_info |
Example:
enum cdc_stat cdc_treap_ctorv | ( | struct cdc_treap ** | t, |
struct cdc_data_info * | info, | ||
va_list | args | ||
) |
Constructs a treap, initialized by args. The last item must be CDC_END.
[out] | t | - cdc_treap |
[in] | info | - cdc_data_info |
enum cdc_stat cdc_treap_ctor1 | ( | struct cdc_treap ** | t, |
struct cdc_data_info * | info, | ||
cdc_priority_fn_t | prior | ||
) |
Constructs an empty treap.
[out] | t | - cdc_treap |
[in] | info | - cdc_data_info |
[in] | prior | - function that generates a priority |
enum cdc_stat cdc_treap_ctorl1 | ( | struct cdc_treap ** | t, |
struct cdc_data_info * | info, | ||
cdc_priority_fn_t | prior, | ||
... | |||
) |
Constructs a treap, 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_treap |
[in] | info | - cdc_data_info |
[in] | prior | - function that generates a priority |
enum cdc_stat cdc_treap_ctorv1 | ( | struct cdc_treap ** | t, |
struct cdc_data_info * | info, | ||
cdc_priority_fn_t | prior, | ||
va_list | args | ||
) |
Constructs a treap, initialized by args. The last item must be CDC_END.
[out] | t | - cdc_treap |
[in] | info | - cdc_data_info |
[in] | prior | - function that generates a priority |