summaryrefslogtreecommitdiff
path: root/extractor/suffix_array.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-02-01 16:11:10 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-02-01 16:11:10 +0000
commit0a53f7eca74c165b5ce1c238f1999ddf1febea55 (patch)
tree5a5231767bc2f92203711ab4aee75336b8bc2175 /extractor/suffix_array.h
parent5530575ae0ad939e17f08d6bd49978acea388ab7 (diff)
Second working commit.
Diffstat (limited to 'extractor/suffix_array.h')
-rw-r--r--extractor/suffix_array.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/extractor/suffix_array.h b/extractor/suffix_array.h
index 7708f5a2..79a22694 100644
--- a/extractor/suffix_array.h
+++ b/extractor/suffix_array.h
@@ -21,17 +21,20 @@ class SuffixArray {
virtual int GetSize() const;
- shared_ptr<DataArray> GetData() const;
+ virtual shared_ptr<DataArray> GetData() const;
- vector<int> BuildLCPArray() const;
+ virtual vector<int> BuildLCPArray() const;
- int GetSuffix(int rank) const;
+ virtual int GetSuffix(int rank) const;
virtual PhraseLocation Lookup(int low, int high, const string& word,
int offset) const;
void WriteBinary(const fs::path& filepath) const;
+ protected:
+ SuffixArray();
+
private:
void BuildSuffixArray();