-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoader.h
More file actions
18 lines (15 loc) · 712 Bytes
/
Copy pathLoader.h
File metadata and controls
18 lines (15 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "Util.h"
#include <vector>
#include <string>
#include <map>
using namespace std;
namespace loader {
// binary tree for searching isntead of hashmap? maybe not since less than 10000 words
void loadWords(vector<util::Word*> &wordList, map<string, util::Word*> &wordMap, const string filename);
/**deprecated**/
void wordListToMap(vector<util::Word*> wordList, map<string, util::Word*> &wordMap);
void addPhrases(vector<util::Phrase*> &phraseList, map<string, util::Word*>, const string filename);
void saveMemoryFile(vector<util::Phrase*> &phraseList, const string name);
void loadMemoryFile(vector<util::Phrase*> &phraseList, map<string, util::Word*> wordMap, const string name);
}