2 #include <wt_coder_binary.h>
4 wt_coder_binary::wt_coder_binary(uint * seq, uint n, alphabet_mapper * am) {
7 max_v = max(am->map(seq[i]),max_v);
11 wt_coder_binary::~wt_coder_binary() {}
13 bool wt_coder_binary::is_set(uint symbol, uint l) {
14 if((1<<(h-l-1))&symbol) return true;
18 bool wt_coder_binary::done(uint symbol, uint l) {
19 if(l==h-1) return true;
23 uint wt_coder_binary::size() {
24 return sizeof(wt_coder_binary);