X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=CSA.h;h=00cf1c69f1a85c39f7f6e1be471303f3d198f5e1;hb=5cb50b1ff34e22ef1278271c0770924ed075c78f;hp=1ecddc66723245554a450d77614345a52bf6630c;hpb=7d27a4450ed429e3b63e9d3ba7217a28cbbf9a31;p=SXSI%2FTextCollection.git diff --git a/CSA.h b/CSA.h index 1ecddc6..00cf1c6 100644 --- a/CSA.h +++ b/CSA.h @@ -55,6 +55,7 @@ public: */ void InsertText(uchar const *); void MakeStatic(); + bool EmptyText(DocId) const; uchar* GetText(DocId) const; uchar* GetText(DocId, TextPosition, TextPosition) const; @@ -80,9 +81,9 @@ public: // full_result is inherited from SXSI::TextCollection. full_result FullContains(uchar const *) const; - // TODO implement: + // Index from/to disk void Load(FILE *, unsigned); - void Save(FILE *); + void Save(FILE *) const; private: class TCodeEntry { @@ -216,6 +217,7 @@ private: uchar * BWT(uchar *); uchar * LoadFromFile(const char *); void SaveToFile(const char *, uchar *); + void makewavelet(uchar *); void maketables(); // Following are not part of the public API