Cleaning up
authornvalimak <nvalimak@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 12 Dec 2009 21:23:03 +0000 (21:23 +0000)
committernvalimak <nvalimak@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 12 Dec 2009 21:23:03 +0000 (21:23 +0000)
git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/TextCollection@624 3cdefd35-fc62-479d-8e8d-bae585ffb9ca

TextStorage.h

index fcd66e5..24633fd 100644 (file)
@@ -104,11 +104,6 @@ protected:
         
 
         offsets_ = new CSA::DeltaVector(encoder, n_);
-
-/*        for (ulong i = 0; i < n_-1; ++i)
-            if ((text[i] == '\0') != IsEndmarker(i))
-                std::cout << "misplaced endmarker at i = " << i << std::endl;
-*/
         numberOfTexts_ = offsets_->rank(n_ - 1);
     }
     
@@ -182,7 +177,7 @@ private:
 /******************************************************************
  * LZ-index text collection.
  */
-struct LzTriePimpl; // Pimpl, declared in .cpp
+struct LzTriePimpl; // Using Pimpl idiom to hide LzTrie implementation.
 
 class TextStorageLzIndex : public TextStorage
 {
@@ -252,7 +247,7 @@ public:
 
 private:
     TextPosition n_;
-    uchar *text_; // FIXME Replace with a succinct representation.
+    uchar *text_;
     bool freeText;
 }; // class TextStorageBuilder