Update page '2.2. vtype_dict'
parent
71fb31b886
commit
e7b621b86a
@ -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)
|
Loading…
Reference in New Issue
Block a user