|
Cloud DB
|
#include "uItemPointerData.h"Классы | |
| struct | tHashTableItem |
| struct | tHashTable |
Макросы | |
| #define | HASHTABLE_SIZE 4096 |
| #define | HASHTABLE_POW 37 |
Определения типов | |
| typedef struct tHashTableItem | tHashTableItem |
| typedef struct tHashTable | tHashTable |
Функции | |
| int | hashFunction (const char *) |
| void | hashTableSet (tHashTable *table, const char *key, uItemPointerData *value) |
| uItemPointerData * | hashTableGet (tHashTable *table, const char *key) |
| void | hashTableDelete (tHashTable *table, const char *key) |
| void | hashTableFree (tHashTable *table) |
Имплементация классического hashtable
| int hashFunction | ( | const char * | string | ) |
полиномиальная функция для расчета хэша
| void hashTableDelete | ( | tHashTable * | table, |
| const char * | key ) |
удалить значение по ключу
| [in] | table | указатель на hashtable |
| [in] | key | ключ (строка) |
| void hashTableFree | ( | tHashTable * | table | ) |
Освобождает память переданной таблицы
| [out] | table | таблица для очищения |
| uItemPointerData * hashTableGet | ( | tHashTable * | table, |
| const char * | key ) |
Задать значение по ключу
| [in] | table | указатель на hashtable |
| [in] | key | ключ (строка) |
| void hashTableSet | ( | tHashTable * | table, |
| const char * | key, | ||
| uItemPointerData * | value ) |
Задать значение по ключу
| [out] | table | указатель на hashtable |
| [in] | key | ключ (строка) |
| [in] | value | значение |