#include "TextCollection.h"
#include "Tools.h"
+
#include "incbwt/bits/deltavector.h"
+// Re-define word size to ulong:
+#undef W
+#if __WORDSIZE == 64
+# define W 64
+#else
+# define W 32
+#endif
+
#include <cassert>
#include <stdexcept>
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);
}
/******************************************************************
* LZ-index text collection.
*/
-struct LzTriePimpl; // Pimpl, declared in .cpp
+struct LzTriePimpl; // Using Pimpl idiom to hide LzTrie implementation.
class TextStorageLzIndex : public TextStorage
{
private:
TextPosition n_;
- uchar *text_; // FIXME Replace with a succinct representation.
+ uchar *text_;
bool freeText;
}; // class TextStorageBuilder