Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eecs398-search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vcday
eecs398-search
Commits
a0714c14
Commit
a0714c14
authored
7 years ago
by
yangni
Browse files
Options
Downloads
Patches
Plain Diff
very basic sudo code outline
parent
f765239d
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Add makefile for everyone and tests for the indexer
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
indexer/Indexer.cpp
+13
-0
13 additions, 0 deletions
indexer/Indexer.cpp
indexer/Indexer.h
+1
-0
1 addition, 0 deletions
indexer/Indexer.h
with
16 additions
and
0 deletions
.gitignore
+
2
−
0
View file @
a0714c14
...
...
@@ -3,3 +3,5 @@
CMakeLists.txt
cmake-build-debug/*
Vagrantfile
.vscode/settings.json
.DS_Store
This diff is collapsed.
Click to expand it.
indexer/Indexer.cpp
+
13
−
0
View file @
a0714c14
...
...
@@ -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
This diff is collapsed.
Click to expand it.
indexer/Indexer.h
+
1
−
0
View file @
a0714c14
...
...
@@ -8,5 +8,6 @@ master index.
class
Indexer
{
public:
Indexer
();
void
run
();
private:
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment