summaryrefslogtreecommitdiff
path: root/read_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'read_helper.h')
-rw-r--r--read_helper.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/read_helper.h b/read_helper.h
index 54ca77a..f12f4d9 100644
--- a/read_helper.h
+++ b/read_helper.h
@@ -14,9 +14,12 @@
#endif
#endif
+// template <typename key_type>
class ReadHelper {
typedef unsigned long long key_type;
- key_type max_value = 0, min_value = 0x7fffffffff;
+
+ key_type max_value = std::numeric_limits<key_type>::min(),
+ min_value = std::numeric_limits<key_type>::max();
char const *filename;
static constexpr size_t REVERSED_BLOCK = 256;
@@ -29,8 +32,8 @@ public:
needed_read_length(insertion_length + sample_length) {
// printf("%zu %zu\n", sample_length, needed_read_length);
}
- unsigned long long maxValue() const { return max_value; }
- unsigned long long minValue() const { return min_value; }
+ key_type maxValue() const { return max_value; }
+ key_type minValue() const { return min_value; }
std::vector<key_type> population_vector;
inline void store_into_vector(key_type value) {