Skip to content
Snippets Groups Projects
Commit a0714c14 authored by yangni's avatar yangni
Browse files

very basic sudo code outline

parent f765239d
No related branches found
No related tags found
1 merge request!1Add makefile for everyone and tests for the indexer
......@@ -3,3 +3,5 @@
CMakeLists.txt
cmake-build-debug/*
Vagrantfile
.vscode/settings.json
.DS_Store
......@@ -2,4 +2,17 @@
Indexer::Indexer() {
}
void Index::run() {
while(!pointersToDirectories.empty()) {
hashtable<string, vector<int>>* dicitonary = pointersToDirectories.pop();
for(iterator it : dicitonary) {
open/create it->first file;
for(int num : it->second) {
it->first.append(num + currentidcount)
}
save and close it->first
}
}
}
\ No newline at end of file
......@@ -8,5 +8,6 @@ master index.
class Indexer {
public:
Indexer();
void run();
private:
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment