Skip to content
Snippets Groups Projects
Commit aaa1d0f2 authored by Salson Mikael's avatar Salson Mikael
Browse files

Loading from saved files

parent ae9a2fbb
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,18 @@ Coverind<bv>::Coverind(const std::string start_file, const std::string end_file)
select_end = typename bv::select_0_type(&end);
}
template <class bv>
Coverind<bv>::Coverind(const std::string index) {
load_from_file(start, index+std::string(".start.bv"));
load_from_file(end, index +std::string(".end.bv"));
rank_start = typename bv::rank_1_type(&start);
rank_end = typename bv::rank_1_type(&end);
select_start = typename bv::select_0_type(&start);
select_end = typename bv::select_0_type(&end);
}
template <class bv>
bv Coverind<bv>::getStartBV() const {
return start;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment