X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=libcds%2Fsrc%2Fstatic_sequence%2Fstatic_sequence_gmr_chunk.h;h=9c034f5fcf6e79ea3a68b4e2b099125bc0933d56;hb=a9846746dc7a55764591fcc273fd48c6049df962;hp=a06b635699ba40754685b90095532a548b0e3c00;hpb=efe894650813a19a0e1408eb5807e59f037afc3b;p=SXSI%2FXMLTree.git diff --git a/libcds/src/static_sequence/static_sequence_gmr_chunk.h b/libcds/src/static_sequence/static_sequence_gmr_chunk.h index a06b635..9c034f5 100644 --- a/libcds/src/static_sequence/static_sequence_gmr_chunk.h +++ b/libcds/src/static_sequence/static_sequence_gmr_chunk.h @@ -1,11 +1,33 @@ +/* static_sequence_gmr_chunk.h + * Copyright (C) 2008, Francisco Claude, all rights reserved. + * + * gmr_chunk + * + * 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 + * + */ #ifndef _STATIC_SEQUENCE_GMR_CHUNK_H #define _STATIC_SEQUENCE_GMR_CHUNK_H #include +#include #include #include #include +#include #include #include @@ -33,16 +55,17 @@ class static_sequence_gmr_chunk: public static_sequence { virtual uint rank(uint i, uint j); virtual uint size(); virtual uint save(FILE *fp); - static_sequence_gmr_chunk * load(FILE *fp); + static static_sequence_gmr_chunk * load(FILE *fp); protected: /** Bitmap */ static_bitsequence * X; /** Permutation */ - static_permutation permutation; + static_permutation * permutation; /** Size of the alphabet */ uint sigma; /** Length of the chunk */ - uint chunk_length; + //uint chunk_length; + static_sequence_gmr_chunk(); }; #endif