spot
0.8.3
|
00001 // Copyright (C) 2011 Laboratoire de Recherche et Developpement de 00002 // l'Epita (LRDE). 00003 // 00004 // This file is part of Spot, a model checking library. 00005 // 00006 // Spot is free software; you can redistribute it and/or modify it 00007 // under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 2 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // Spot is distributed in the hope that it will be useful, but WITHOUT 00012 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00013 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00014 // License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with Spot; see the file COPYING. If not, write to the Free 00018 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00019 // 02111-1307, USA. 00020 00021 #ifndef SPOT_MISC_INTVCOMP_HH 00022 # define SPOT_MISC_INTVCOMP_HH 00023 00024 #include <vector> 00025 #include <stddef.h> 00026 00027 namespace spot 00028 { 00031 00033 void 00034 int_vector_vector_compress(const std::vector<int>& input, 00035 std::vector<unsigned int>& output); 00036 00041 void 00042 int_vector_vector_decompress(const std::vector<unsigned int>& array, 00043 std::vector<int>& output, size_t size); 00044 00046 const std::vector<unsigned int>* 00047 int_array_vector_compress(const int* array, size_t n); 00048 00053 void 00054 int_vector_array_decompress(const std::vector<unsigned int>* array, 00055 int* res, size_t size); 00056 00063 void 00064 int_array_array_compress(const int* array, size_t n, 00065 int* dest, size_t& dest_size); 00066 00071 void 00072 int_array_array_decompress(const int* array, size_t array_size, 00073 int* res, size_t size); 00074 00076 } 00077 00078 #endif // SPOT_MISC_INTVCOMP_HH