Jouni's Incremental BWT integrated into TextCollection
[SXSI/TextCollection.git] / incbwt / bits / vectors.h
diff --git a/incbwt/bits/vectors.h b/incbwt/bits/vectors.h
new file mode 100644 (file)
index 0000000..dfd4a21
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef VECTORS_H
+#define VECTORS_H
+
+#include "deltavector.h"
+#include "rlevector.h"
+
+
+namespace CSA
+{
+
+
+/*
+  These functions merge two vectors using marked positions.
+  The original vectors are deleted.
+*/
+
+RLEVector* mergeVectors(RLEVector* first, RLEVector* second, usint* positions, usint n, usint size, usint block_size);
+
+DeltaVector* mergeVectors(DeltaVector* first, DeltaVector* second, usint* positions, usint n, usint size, usint block_size);
+
+
+} // namespace CSA
+
+
+#endif // VECTORS_H