X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=TCImplementation.h;h=e8e8c4bb04a480a186a39abca273b0cad87fc055;hb=516b302544df0697da485abd461a27cda8acb42a;hp=f0a21cc91e17729d161816138f69ca099538d283;hpb=6048d243439020acd3b5acf8654641cb9cef8e27;p=SXSI%2FTextCollection.git diff --git a/TCImplementation.h b/TCImplementation.h index f0a21cc..e8e8c4b 100644 --- a/TCImplementation.h +++ b/TCImplementation.h @@ -20,6 +20,9 @@ #ifndef _TCImplementation_H_ #define _TCImplementation_H_ + +#include "incbwt/bits/deltavector.h" + #include "BitRank.h" #include "TextCollection.h" #include "BlockArray.h" @@ -41,9 +44,11 @@ #undef bitset #undef bitget + #include "TextStorage.h" #include "ArrayDoc.h" #include +#include namespace SXSI { @@ -55,7 +60,8 @@ namespace SXSI */ class TCImplementation : public SXSI::TextCollection { public: - TCImplementation(uchar *, ulong, unsigned, unsigned, ulong, ulong, char); + TCImplementation(uchar *, ulong, unsigned, unsigned, ulong, ulong, + CSA::DeltaVector &, const std::string &, char); ~TCImplementation(); bool EmptyText(DocId) const; @@ -167,7 +173,7 @@ private: // Following methods are not part of the public API uchar * BWT(uchar *); void makewavelet(uchar *); - void maketables(ulong, char); + void maketables(ulong, char, CSA::DeltaVector &, const string &); DocId DocIdAtTextPos(BlockArray*, TextPosition) const; ulong Search(uchar const *, TextPosition, TextPosition *, TextPosition *) const; ulong Search(uchar const *, TextPosition, TextPosition *, TextPosition *, DocId, DocId) const;