| 
    Prakticke aspekty vývoje softwaru: Projekt 1 – Testování
    1.0
    
   Projekt zaměřený na osvojení praktik testování včetně technik test driven development, black box testing a white box testing. 
   | 
 
 
 
 
Zobrazit dokumentaci tohoto souboru.
   31 #define HASH_MAP_INIT_SIZE 8                     
   33 #define HASH_MAP_PERTURB_SHIFT 5                 
   35 #define HASH_MAP_REALLOCATION_THRESHOLD 3/5. 
   37 #define HASH_FUNCTION_PARAM_A 1794967309         
   39 #define HASH_FUNCTION_PARAM_B 7                  
  327 #endif  // HASH_MAP_H_ 
  
void hash_map_dtor(hash_map_t *self)
Destruktor hašovací tabulky.
Definition: white_box_code.cpp:169
 
size_t used
Počet vložených položek (velikost seznamu)
Definition: white_box_code.h:100
 
hash_map_state_code_t hash_map_put(hash_map_t *self, const char *key, int value)
Vloží klíč a hodnotu do tabulky.
Definition: white_box_code.cpp:242
 
hash_map_state_code_t
Výčet návratových hodnot.
Definition: white_box_code.h:55
 
@ KEY_ALREADY_EXISTS
Klíč již v hašovací tabulce existuje.
Definition: white_box_code.h:62
 
hash_map_state_code_t hash_map_reserve(hash_map_t *self, size_t size)
Realokace rezervovaného místa pro index.
Definition: white_box_code.cpp:179
 
hash_map_t * hash_map_ctor()
Konstruktor hašovací tabulky.
Definition: white_box_code.cpp:134
 
void hash_map_clear(hash_map_t *self)
Dealokace vytvořených položek a vymazání indexu.
Definition: white_box_code.cpp:145
 
struct hash_map_item * next
Následující položka.
Definition: white_box_code.h:81
 
char * key
Klíč
Definition: white_box_code.h:78
 
hash_map_item_t ** index
Index hašovací tabulky.
Definition: white_box_code.h:94
 
size_t hash_map_capacity(hash_map_t *self)
Vrací alokované místa pro tabulku.
Definition: white_box_code.cpp:230
 
@ OK
Vše v pořádku.
Definition: white_box_code.h:58
 
Datový typ hašovací tabulky.
Definition: white_box_code.h:92
 
struct hash_map_item hash_map_item_t
Záznam v hašovací tabulce.
 
hash_map_state_code_t hash_map_pop(hash_map_t *self, const char *key, int *value)
Uloží hodnotu z hašovací tabulky a odstraní záznam.
Definition: white_box_code.cpp:320
 
size_t hash
Hash.
Definition: white_box_code.h:79
 
struct hash_map_item * prev
Předcházející položka.
Definition: white_box_code.h:82
 
@ VALUE_ERROR
Neplatná hodnota argumentu.
Definition: white_box_code.h:60
 
hash_map_state_code_t hash_map_remove(hash_map_t *self, const char *key)
Odstranění položky z hašovací tabulky.
Definition: white_box_code.cpp:314
 
hash_map_item_t * first
První položka v seznamu.
Definition: white_box_code.h:95
 
int value
Uložená hodnota.
Definition: white_box_code.h:80
 
bool hash_map_contains(hash_map_t *self, const char *key)
Obsahuje tabulka záznam s daným klíčem?
Definition: white_box_code.cpp:235
 
@ MEMORY_ERROR
Problém při alokaci paměti.
Definition: white_box_code.h:59
 
size_t hash_map_size(hash_map_t *self)
Vrací počet vložených záznamů do tabulky.
Definition: white_box_code.cpp:225
 
hash_map_item_t * last
Poslední položka v seznamu.
Definition: white_box_code.h:96
 
size_t allocated
Alokované místo (velikost indexu)
Definition: white_box_code.h:99
 
@ KEY_ERROR
Přístup ke klíči který není vložen v tabulce.
Definition: white_box_code.h:61
 
hash_map_state_code_t hash_map_get(hash_map_t *self, const char *key, int *value)
Uloží hodnotu asociovanou se zadaným klíčem na určené místo v paměti.
Definition: white_box_code.cpp:298
 
struct hash_map hash_map_t
Datový typ hašovací tabulky.
 
Záznam v hašovací tabulce.
Definition: white_box_code.h:76
 
hash_map_item_t * dummy
Při odstranění je položka v indexu nahrazena tímto ukazatelem.
Definition: white_box_code.h:98