SmartFolder  1.0
SmartFolder is a way to search files on your system and group the results. The program will interpret search queries and create a folder with symbolic links to all the found matches.
HashSet.h
Go to the documentation of this file.
1 
10 #ifndef _HASH_SET_
11 #define _HASH_SET_
12 
13 #include <stdlib.h>
14 #include <string.h>
15 #include "Logger.h"
16 #include "List.h"
17 
18 typedef struct HashSet {
19  char** table;
20  int size;
21  int filled;
22 } HashSet;
23 
29 HashSet* initSet(int size);
30 
36 void putAll(HashSet* table, List* list);
37 
42 void expand(HashSet* table);
43 
49 void put(HashSet* table, char* filePath);
50 
56 void removeFromSet(HashSet* table, char* filePath);
57 
64 int contains(HashSet* table, char* filePath);
65 
72 int searchInSet(HashSet* table, char* filePath);
73 
79 int hash(char* text);
80 
85 void deleteSet(HashSet** table);
86 
91 void dumpSet(HashSet* table);
92 
93 #endif /* end of include guard: _HASH_SET_ */
void put(HashSet *table, char *filePath)
Definition: HashSet.c:43
void expand(HashSet *table)
Definition: HashSet.c:21
void dumpSet(HashSet *table)
Definition: HashSet.c:108
int searchInSet(HashSet *table, char *filePath)
Definition: HashSet.c:75
void deleteSet(HashSet **table)
Definition: HashSet.c:97
int contains(HashSet *table, char *filePath)
Definition: HashSet.c:71
Definition: List.h:22
Header file that contains the definitions for logging to the console.
int hash(char *text)
Definition: HashSet.c:87
void putAll(HashSet *table, List *list)
Definition: HashSet.c:35
HashSet * initSet(int size)
Definition: HashSet.c:12
void removeFromSet(HashSet *table, char *filePath)
Definition: HashSet.c:60
Definition: HashSet.h:18
Header file that contains the definitions for a simple linked List data structure containing Strings...