-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap.h
More file actions
35 lines (27 loc) · 799 Bytes
/
Copy pathMap.h
File metadata and controls
35 lines (27 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#ifndef _MAP_H_
#define _MAP_H_
#include "HashTable.h"
/// @brief Ñëîâàðü íà áàçå õåø òàáëèöû
struct Map
{
HashTable* HashTableObject = new HashTable;
};
/// @brief Äîáàâëåíèå ýëåìåíòà â ñëîâàðü
/// @param map Óêàçàòåëü íà ñëîâàðü
/// @param key Êëþ÷
/// @param value Çíà÷åíèå
void InsertItem(Map* map, std::string& key, std::string& value);
/// @brief Óäàëåíèå ýëåìåíòà ïî êëþ÷ó èç ñëîâàðÿ
/// @param map Óêàçàòåëü íà ñëîâàðü
/// @param key Êëþ÷
void RemoveItem(Map* map, std::string& key);
/// @brief Ïîèñê ýëåìåíòà ïî êëþ÷ó â ñëîâàðå
/// @param map Óêàçàòåëü íà ñëîâàðü
/// @param key Êëþ÷
/// @return Çíà÷åíèå Value
std::string FindItem(Map* map, std::string& key);
/// @brief Óäàëåíèå ñëîâàðÿ
/// @param map Óêàçàòåëü íà ñëîâàðü
void DeleteMap(Map* map);
#endif //_MAP_H_