-
Notifications
You must be signed in to change notification settings - Fork 13
Code structure
alesbe edited this page Apr 20, 2022
·
6 revisions
The source code it's easy to understand and lightweight, but I'll explain in detail each part of the project in case that you want to contribute!
If you want to add a new sorting algorithm here you can find a wiki page that explains that without needing to understand the whole code base. Let's dive in!
I'll explain what each file does before going into details. At this moment, each file contains a header file (ended .h), containing the declarations, and another file (ended .cpp), containing the definitions.
-
main.cpp
: Main function and the main loop. -
SortController.h / SortController.cpp
: Class to manage the vector that will be sorted and the methods related to it. -
Sortable.h / Sortable.cpp
: Class to create the objects that will compose the sorting array. -
SortAlgorithms.h / SortAlgorithms.cpp
: Sorting algorithms. -
Utils.h / Utils.cpp
: Utility functions.
🚧 Wiki page not finished, come back later! 🚧