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

Functions

void sld_sort_bubble (void *data_structure, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE data_type)
 A simple sorting algorithm that sorts by swapping pairs of data and works well for small sets of data. More...
 
void sld_sort_insertion (void *data_structure, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE data_type)
 A simple sorting algorithm that sorts by inserting data that is out of order and works well for small sets of data. More...
 
void sld_sort_selection (void *data_structure, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE data_type)
 A simple sorting algorithm that sorts by swapping data that is out of order and suffices for small sets of data. More...
 

Detailed Description

Note
The sld_sort functions are not yet implemented!
Todo:

Implement sld_sort functionality!

This module contains functions related to sorting data.

Function Documentation

void sld_sort_bubble ( void *  data_structure,
SLD_DATA_STRUCTURE  data_structure_type,
SLD_DATA_TYPE  data_type 
)

A simple sorting algorithm that sorts by swapping pairs of data and works well for small sets of data.

Parameters
data_structurea sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector
data_structure_typeany type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example
data_typeany type defined by SLD_DATA_TYPE such as sld_data_type_int for example
void sld_sort_insertion ( void *  data_structure,
SLD_DATA_STRUCTURE  data_structure_type,
SLD_DATA_TYPE  data_type 
)

A simple sorting algorithm that sorts by inserting data that is out of order and works well for small sets of data.

Parameters
data_structurea sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector
data_structure_typeany type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example
data_typeany type defined by SLD_DATA_TYPE such as sld_data_type_int for example
void sld_sort_selection ( void *  data_structure,
SLD_DATA_STRUCTURE  data_structure_type,
SLD_DATA_TYPE  data_type 
)

A simple sorting algorithm that sorts by swapping data that is out of order and suffices for small sets of data.

Parameters
data_structurea sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector
data_structure_typeany type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example
data_typeany type defined by SLD_DATA_TYPE such as sld_data_type_int for example