From e7b621b86a739ddb6c8b70cf7b65621a9671614b Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Wed, 17 Aug 2022 16:57:56 +0300 Subject: [PATCH] Update page '2.2. vtype_dict' --- 2.2. vtype_dict.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/2.2. vtype_dict.md b/2.2. vtype_dict.md index c51240e..452872b 100644 --- a/2.2. vtype_dict.md +++ b/2.2. vtype_dict.md @@ -3,30 +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)` +- `int callback(const void* key, vtype key_type, void* value, vtype value_type, void* data)` ##### Базовый блок --`void dict_init(vtype_dict* x)` +- `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)` +- `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)` +- `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)` +- `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