X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=libcds%2Fsrc%2Fstatic_sequence%2Fwt_coder_binary.cpp;h=e9f37dc4b54361ad7d1f2c336f103e7a8b1266f5;hb=eea9c5c03f004e3facd74f004ded0e3801e72ab2;hp=f8cc20992ad3dc2360a9ea8ac738caa976f3cae6;hpb=0412eaf977e4ef67f68db6ded4f1cee0e12cee4f;p=SXSI%2FXMLTree.git diff --git a/libcds/src/static_sequence/wt_coder_binary.cpp b/libcds/src/static_sequence/wt_coder_binary.cpp index f8cc209..e9f37dc 100644 --- a/libcds/src/static_sequence/wt_coder_binary.cpp +++ b/libcds/src/static_sequence/wt_coder_binary.cpp @@ -28,6 +28,13 @@ wt_coder_binary::wt_coder_binary(uint * seq, uint n, alphabet_mapper * am) { h=bits(max_v); } +wt_coder_binary::wt_coder_binary(uchar * seq, uint n, alphabet_mapper * am) { + uint max_v = 0; + for(uint i=0;imap((uint)seq[i]),max_v); + h=bits(max_v); +} + wt_coder_binary::wt_coder_binary() {} wt_coder_binary::~wt_coder_binary() {}