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.
|
Header file that contains the definitions for a simple linked List data structure containing Strings. More...
Go to the source code of this file.
Data Structures | |
struct | listElement_st |
struct | list_st |
Typedefs | |
typedef struct listElement_st | ListElement |
typedef struct list_st | List |
Functions | |
List * | initList () |
void | insert (List *l, char *element) |
void | removeIndex (List *l, int idx) |
void | removeObject (List *l, char *element) |
int | searchInList (List *l, char *element) |
char * | get (List *l, int idx) |
List * | listUnion (List *l1, List *l2) |
List * | listIntersect (List *l1, List *l2) |
List * | listXOR (List *l1, List *l2) |
List * | listComplement (List *l1, List *l2) |
void | dumpList (List *l) |
void | deleteList (List *l) |
Header file that contains the definitions for a simple linked List data structure containing Strings.
void deleteList | ( | List * | l | ) |
Function that deletes a List and frees the memory
l | A pointer to the List |
void dumpList | ( | List * | l | ) |
Function that all the elements of a List
l | A pointer to the List |
char* get | ( | List * | l, |
int | idx | ||
) |
Function to get the value of an element at a specific index
l | A pointer to the List |
idx | The index of the element we want |
List* initList | ( | ) |
Function to initialize an empty List
void insert | ( | List * | l, |
char * | element | ||
) |
Function to insert a String into the List, we insert at the beginning
l | A pointer to the List we want to insert |
element | The String we want to insert |
Function that computes the complement between the first List and the second (l1 - l2) This means the elements contained in the first List that are NOT in the second one
l1 | A pointer to the first List |
l2 | A pointer to the second List |
Function that computes the intersection between two Lists (logical AND)
l1 | A pointer to the first List |
l2 | A pointer to the second List |
Function that computes the union between two Lists (logical OR)
l1 | A pointer to the first List |
l2 | A pointer to the second List |
Function that computes the XOR between two Lists (logical XOR) This means the elements contained in only one of the two Lists, but not both
l1 | A pointer to the first List |
l2 | A pointer to the second List |
void removeIndex | ( | List * | l, |
int | idx | ||
) |
Function to remove the element at an index from the List
l | A pointer to the List we want to remove from |
idx | The index at which we want to remove |
void removeObject | ( | List * | l, |
char * | element | ||
) |
Function to remove a String from the List
l | A pointer to the List we want to remove from |
element | The String we want to remove |
int searchInList | ( | List * | l, |
char * | element | ||
) |
Function to retrieve the index of an element from the List
l | A pointer to the List we want to search in |
element | The element we're looking for |