Salad
1.0.15
|
Functions | |
void * | sld_search_binary (void *data_structure, void *search_criterion, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE search_criterion_type) |
Searches through data with a "divide and conquer" approach. More... | |
void * | sld_search_linear (void *data_structure, void *search_criterion, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE search_criterion_type) |
Searches through data sequentially. More... | |
Implement sld_search functionality!
This module contains functions related to searching for data.
void* sld_search_binary | ( | void * | data_structure, |
void * | search_criterion, | ||
SLD_DATA_STRUCTURE | data_structure_type, | ||
SLD_DATA_TYPE | search_criterion_type | ||
) |
Searches through data with a "divide and conquer" approach.
data_structure | a sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector |
search_criterion | the value to search for in the passed data structure |
data_structure_type | any type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example |
search_criterion_type | any type defined by SLD_DATA_TYPE such as sld_data_type_int for example |
void* sld_search_linear | ( | void * | data_structure, |
void * | search_criterion, | ||
SLD_DATA_STRUCTURE | data_structure_type, | ||
SLD_DATA_TYPE | search_criterion_type | ||
) |
Searches through data sequentially.
data_structure | a sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector |
search_criterion | the value to search for in the passed data structure |
data_structure_type | any type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example |
search_criterion_type | any type defined by SLD_DATA_TYPE such as sld_data_type_int for example |