00001 /* BHRZ03_Certificate class implementation: inline functions. 00002 Copyright (C) 2001-2008 Roberto Bagnara <bagnara@cs.unipr.it> 00003 00004 This file is part of the Parma Polyhedra Library (PPL). 00005 00006 The PPL is free software; you can redistribute it and/or modify it 00007 under the terms of the GNU General Public License as published by the 00008 Free Software Foundation; either version 3 of the License, or (at your 00009 option) any later version. 00010 00011 The PPL is distributed in the hope that it will be useful, but WITHOUT 00012 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00013 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00014 for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software Foundation, 00018 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. 00019 00020 For the most up-to-date information see the Parma Polyhedra Library 00021 site: http://www.cs.unipr.it/ppl/ . */ 00022 00023 #ifndef PPL_BHRZ03_Certificate_inlines_hh 00024 #define PPL_BHRZ03_Certificate_inlines_hh 1 00025 00026 namespace Parma_Polyhedra_Library { 00027 00028 inline 00029 BHRZ03_Certificate::BHRZ03_Certificate() 00030 : affine_dim(0), lin_space_dim(0), num_constraints(0), num_points(1), 00031 num_rays_null_coord() { 00032 // This is the certificate for a zero-dim universe polyhedron. 00033 assert(OK()); 00034 } 00035 00036 inline 00037 BHRZ03_Certificate::BHRZ03_Certificate(const BHRZ03_Certificate& y) 00038 : affine_dim(y.affine_dim), lin_space_dim(y.lin_space_dim), 00039 num_constraints(y.num_constraints), num_points(y.num_points), 00040 num_rays_null_coord(y.num_rays_null_coord) { 00041 } 00042 00043 inline 00044 BHRZ03_Certificate::~BHRZ03_Certificate() { 00045 } 00046 00047 inline bool 00048 BHRZ03_Certificate::is_stabilizing(const Polyhedron& ph) const { 00049 return compare(ph) == 1; 00050 } 00051 00052 inline bool 00053 BHRZ03_Certificate::Compare::operator()(const BHRZ03_Certificate& x, 00054 const BHRZ03_Certificate& y) const { 00055 // For an efficient evaluation of the multiset ordering based 00056 // on this lgo relation, we want larger elements to come first. 00057 return x.compare(y) == 1; 00058 } 00059 00060 } // namespace Parma_Polyhedra_Library 00061 00062 #endif // !defined(PPL_BHRZ03_Certificate_inlines_hh)