00001 /* BHRZ03_Certificate class declaration. 00002 Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it> 00003 Copyright (C) 2010-2011 BUGSENG srl (http://bugseng.com) 00004 00005 This file is part of the Parma Polyhedra Library (PPL). 00006 00007 The PPL is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU General Public License as published by the 00009 Free Software Foundation; either version 3 of the License, or (at your 00010 option) any later version. 00011 00012 The PPL is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00015 for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software Foundation, 00019 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. 00020 00021 For the most up-to-date information see the Parma Polyhedra Library 00022 site: http://www.cs.unipr.it/ppl/ . */ 00023 00024 #ifndef PPL_BHRZ03_Certificate_defs_hh 00025 #define PPL_BHRZ03_Certificate_defs_hh 1 00026 00027 #include "BHRZ03_Certificate.types.hh" 00028 #include "Polyhedron.types.hh" 00029 #include "globals.types.hh" 00030 #include "assert.hh" 00031 #include <vector> 00032 00034 00043 class Parma_Polyhedra_Library::BHRZ03_Certificate { 00044 public: 00046 BHRZ03_Certificate(); 00047 00049 BHRZ03_Certificate(const Polyhedron& ph); 00050 00052 BHRZ03_Certificate(const BHRZ03_Certificate& y); 00053 00055 ~BHRZ03_Certificate(); 00056 00058 00067 int compare(const BHRZ03_Certificate& y) const; 00068 00070 int compare(const Polyhedron& ph) const; 00071 00072 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS 00073 00077 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS) 00078 bool is_stabilizing(const Polyhedron& ph) const; 00079 00081 00085 struct Compare { 00087 bool operator()(const BHRZ03_Certificate& x, 00088 const BHRZ03_Certificate& y) const; 00089 }; 00090 00091 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS 00092 00093 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS) 00094 bool OK() const; 00095 00096 private: 00098 dimension_type affine_dim; 00100 dimension_type lin_space_dim; 00102 dimension_type num_constraints; 00107 dimension_type num_points; 00113 std::vector<dimension_type> num_rays_null_coord; 00114 }; 00115 00116 #include "BHRZ03_Certificate.inlines.hh" 00117 00118 #endif // !defined(PPL_BHRZ03_Certificate_defs_hh)
1.6.3