X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libcds%2Fsrc%2Fstatic_sequence%2Fstatic_sequence_wvtree.cpp;fp=libcds%2Fsrc%2Fstatic_sequence%2Fstatic_sequence_wvtree.cpp;h=b1353d422837585605a1dfc992a8c0513900c9df;hb=450ba3c9c74665094fb8f6821d6cc92d2bf23011;hp=efdd8f70f9ac4473666f9abf64ab28a000d691b6;hpb=ac626dacdd094e0dc9fbc3302fec0020cf97942c;p=SXSI%2FXMLTree.git diff --git a/libcds/src/static_sequence/static_sequence_wvtree.cpp b/libcds/src/static_sequence/static_sequence_wvtree.cpp index efdd8f7..b1353d4 100644 --- a/libcds/src/static_sequence/static_sequence_wvtree.cpp +++ b/libcds/src/static_sequence/static_sequence_wvtree.cpp @@ -1,4 +1,24 @@ - +/* static_sequence_wvtree.h + * Copyright (C) 2008, Francisco Claude, all rights reserved. + * + * static_sequence_wvtree definition + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + #include static_sequence_wvtree::static_sequence_wvtree(uint * symbols, uint n, wt_coder * c, static_bitsequence_builder * bmb, alphabet_mapper * am) { @@ -6,16 +26,13 @@ static_sequence_wvtree::static_sequence_wvtree(uint * symbols, uint n, wt_coder symbols[i] = am->map(symbols[i]); this->am = am; this->c=c; - cout << "Building..."; cout.flush(); root = new wt_node_internal(symbols, n, 0, c, bmb); - cout << "done" << endl; cout.flush(); for(uint i=0;iunmap(symbols[i]); } static_sequence_wvtree::static_sequence_wvtree() {} - static_sequence_wvtree::~static_sequence_wvtree() { delete root; delete am; @@ -68,4 +85,3 @@ static_sequence_wvtree * static_sequence_wvtree::load(FILE *fp) { ret->root = wt_node::load(fp); return ret; } -