Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Sld_search

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...
 

Detailed Description

Note
The sld_search functions are not yet implemented!
Todo:

Implement sld_search functionality!

This module contains functions related to searching for data.

Function Documentation

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.

Parameters
data_structurea sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector
search_criterionthe value to search for in the passed data structure
data_structure_typeany type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example
search_criterion_typeany type defined by SLD_DATA_TYPE such as sld_data_type_int for example
Returns
Index, key, or true/false depending on the data structure passed
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.

Parameters
data_structurea sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector
search_criterionthe value to search for in the passed data structure
data_structure_typeany type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example
search_criterion_typeany type defined by SLD_DATA_TYPE such as sld_data_type_int for example
Returns
Index, key, or true/false depending on the data structure passed