Added RLCSA index option
[SXSI/TextCollection.git] / incbwt / misc / utils.h
index 48cd07f..03bd106 100644 (file)
@@ -2,7 +2,7 @@
 #define UTILS_H
 
 #include <fstream>
-#include <list>
+#include <vector>
 
 #include "definitions.h"
 
@@ -11,6 +11,18 @@ namespace CSA
 {
 
 
+
+struct Triple
+{
+  usint first;
+  usint second;
+  usint third;
+
+  Triple();
+  Triple(usint a, usint b, usint c);
+};
+
+
 std::streamoff fileSize(std::ifstream& file);
 std::streamoff fileSize(std::ofstream& file);
 
@@ -18,7 +30,9 @@ std::streamoff fileSize(std::ofstream& file);
 std::ostream& operator<<(std::ostream& stream, pair_type data);
 
 
-void readRows(std::ifstream& file, std::list<std::string>& rows, bool skipEmptyRows);
+void readRows(std::ifstream& file, std::vector<std::string>& rows, bool skipEmptyRows);
+
+double readTimer();
 
 
 } // namespace CSA