projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added RLCSA index option
[SXSI/TextCollection.git]
/
incbwt
/
misc
/
utils.h
diff --git
a/incbwt/misc/utils.h
b/incbwt/misc/utils.h
index
48cd07f
..
03bd106
100644
(file)
--- a/
incbwt/misc/utils.h
+++ b/
incbwt/misc/utils.h
@@
-2,7
+2,7
@@
#define UTILS_H
#include <fstream>
#define UTILS_H
#include <fstream>
-#include <
list
>
+#include <
vector
>
#include "definitions.h"
#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);
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);
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
} // namespace CSA