From 71fb31b886251d11269df6b20b88a65f10918370 Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Wed, 17 Aug 2022 16:57:33 +0300 Subject: [PATCH] Update page '2.2. vtype_dict' --- 2.2. vtype_dict.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/2.2. vtype_dict.md b/2.2. vtype_dict.md index 39c49e3..c51240e 100644 --- a/2.2. vtype_dict.md +++ b/2.2. vtype_dict.md @@ -3,20 +3,30 @@ ### [include/dict.h](https://gogs.lirent.ru/lirent/libcdsb/src/master/include/dict.h) ##### Интерфейс callback-функции доступа к элементу (далее CallbackT) +-`int callback(const void* key, vtype key_type, void* value, vtype value_type, void* data)` ##### Базовый блок +-`void dict_init(vtype_dict* x)` ##### Макросы +-`int dict_pop(vtype_dict* x, T value, void* data, CallbackT callback)` +-`int dict_get(vtype_dict* x, T value, void* data, CallbackT callback)` +-`int dict_update(vtype_dict* x, T key, T value)` +-`int dict_remove(vtype_dict* x, T key)` ### [include/extra/dict.h](https://gogs.lirent.ru/lirent/libcdsb/src/master/include/extra/dict.h) ##### Макросы - +-`int dict_foreach(vtype_dict* x, void* data, CallbackT callback)` ##### Дополнительный блок +-`bool libcdsb_dict_update(vtype_dict* x, const void* key, vtype key_type, const void* value, vtype value_type)` +-`int libcdsb_dict_get(vtype_dict* x, const void* key, vtype key_type, void* data, CallbackT callback, bool cut)` +-`int libcdsb_dict_foreach(vtype_dict* x, void* data, CallbackT callback, bool flush)` +-`bool libcdsb_dict_shrink_to_fit(vtype_dict* x)` [Далее: 2.3. vtype_list](https://gogs.lirent.ru/lirent/libcdsb/wiki/2.3.+vtype_list) \ No newline at end of file