00001 /* BHRZ03_Certificate class implementation: inline functions. 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_inlines_hh 00025 #define PPL_BHRZ03_Certificate_inlines_hh 1 00026 00027 namespace Parma_Polyhedra_Library { 00028 00029 inline 00030 BHRZ03_Certificate::BHRZ03_Certificate() 00031 : affine_dim(0), lin_space_dim(0), num_constraints(0), num_points(1), 00032 num_rays_null_coord() { 00033 // This is the certificate for a zero-dim universe polyhedron. 00034 PPL_ASSERT(OK()); 00035 } 00036 00037 inline 00038 BHRZ03_Certificate::BHRZ03_Certificate(const BHRZ03_Certificate& y) 00039 : affine_dim(y.affine_dim), lin_space_dim(y.lin_space_dim), 00040 num_constraints(y.num_constraints), num_points(y.num_points), 00041 num_rays_null_coord(y.num_rays_null_coord) { 00042 } 00043 00044 inline 00045 BHRZ03_Certificate::~BHRZ03_Certificate() { 00046 } 00047 00048 inline bool 00049 BHRZ03_Certificate::is_stabilizing(const Polyhedron& ph) const { 00050 return compare(ph) == 1; 00051 } 00052 00053 inline bool 00054 BHRZ03_Certificate::Compare::operator()(const BHRZ03_Certificate& x, 00055 const BHRZ03_Certificate& y) const { 00056 // For an efficient evaluation of the multiset ordering based 00057 // on this lgo relation, we want larger elements to come first. 00058 return x.compare(y) == 1; 00059 } 00060 00061 } // namespace Parma_Polyhedra_Library 00062 00063 #endif // !defined(PPL_BHRZ03_Certificate_inlines_hh)
1.6.3