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

coverind.hpp: Use template for rank/select support

parent bc3d61d8
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@ template <class bv> class Coverind {
private:
bv start, end;
rank_support_sd<1> rank_start, rank_end;
select_support_sd<0> select_start, select_end;
typename bv::rank_1_type rank_start, rank_end;
typename bv::select_0_type select_start, select_end;
public:
/**
......@@ -68,11 +68,11 @@ Coverind<bv>::Coverind(const std::string start_file, const std::string end_file)
start = bv(create_bitvector_from_file(start_file));
end = bv(create_bitvector_from_file(end_file));
rank_start = rank_support_sd<1>(&start);
rank_end = rank_support_sd<1>(&end);
rank_start = typename bv::rank_1_type(&start);
rank_end = typename bv::rank_1_type(&end);
select_start = select_support_sd<0>(&start);
select_end = select_support_sd<0>(&end);
select_start = typename bv::select_0_type(&start);
select_end = typename bv::select_0_type(&end);
}
template <class bv>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment