Test case for memory consumption with the TextCollection.
[SXSI/TextCollection.git] / CSA.h
diff --git a/CSA.h b/CSA.h
index 1ecddc6..00cf1c6 100644 (file)
--- 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