PPL  1.2
C_Polyhedron_defs.hh
Go to the documentation of this file.
1 /* C_Polyhedron class declaration.
2  Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>
3  Copyright (C) 2010-2016 BUGSENG srl (http://bugseng.com)
4 
5 This file is part of the Parma Polyhedra Library (PPL).
6 
7 The PPL is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 The PPL is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
20 
21 For the most up-to-date information see the Parma Polyhedra Library
22 site: http://bugseng.com/products/ppl/ . */
23 
24 #ifndef PPL_C_Polyhedron_defs_hh
25 #define PPL_C_Polyhedron_defs_hh 1
26 
27 #include "C_Polyhedron_types.hh"
28 #include "NNC_Polyhedron_types.hh"
29 #include "Polyhedron_defs.hh"
30 #include "Grid_types.hh"
31 #include "BD_Shape_types.hh"
32 #include "Octagonal_Shape_types.hh"
33 
35 
60 public:
62 
75  explicit C_Polyhedron(dimension_type num_dimensions = 0,
77 
79 
88  explicit C_Polyhedron(const Constraint_System& cs);
89 
91 
107 
109 
119  explicit C_Polyhedron(const Generator_System& gs);
120 
122 
139 
141 
147  explicit C_Polyhedron(const Congruence_System& cgs);
148 
150 
164 
175  explicit C_Polyhedron(const NNC_Polyhedron& y,
176  Complexity_Class complexity = ANY_COMPLEXITY);
177 
179 
194  template <typename Interval>
195  explicit C_Polyhedron(const Box<Interval>& box,
196  Complexity_Class complexity = ANY_COMPLEXITY);
197 
199 
210  template <typename U>
211  explicit C_Polyhedron(const BD_Shape<U>& bd,
212  Complexity_Class complexity = ANY_COMPLEXITY);
213 
215 
226  template <typename U>
227  explicit C_Polyhedron(const Octagonal_Shape<U>& os,
228  Complexity_Class complexity = ANY_COMPLEXITY);
229 
231 
242  explicit C_Polyhedron(const Grid& grid,
243  Complexity_Class complexity = ANY_COMPLEXITY);
244 
246 
249  C_Polyhedron(const C_Polyhedron& y,
250  Complexity_Class complexity = ANY_COMPLEXITY);
251 
257 
260 
262  ~C_Polyhedron();
263 
273 
276 
287 };
288 
289 #include "C_Polyhedron_inlines.hh"
290 
291 #endif // !defined(PPL_C_Polyhedron_defs_hh)
size_t dimension_type
An unsigned integral type for representing space dimensions.
C_Polyhedron(dimension_type num_dimensions=0, Degenerate_Element kind=UNIVERSE)
Builds either the universe or the empty C polyhedron.
C_Polyhedron & operator=(const C_Polyhedron &y)
The assignment operator. (*this and y can be dimension-incompatible.)
Complexity_Class
Complexity pseudo-classes.
The base class for convex polyhedra.
Degenerate_Element
Kinds of degenerate abstract elements.
A not necessarily closed convex polyhedron.
A not necessarily closed, iso-oriented hyperrectangle.
Definition: Box_defs.hh:299
A closed convex polyhedron.
bool upper_bound_assign_if_exact(const C_Polyhedron &y)
Same as poly_hull_assign_if_exact(y).
void positive_time_elapse_assign(const Polyhedron &y)
Assigns to *this the smallest C polyhedron containing the result of computing the positive time-elaps...
The universe element, i.e., the whole vector space.
A bounded difference shape.
bool poly_hull_assign_if_exact(const C_Polyhedron &y)
If the poly-hull of *this and y is exact it is assigned to *this and true is returned, otherwise false is returned.
Definition: C_Polyhedron.cc:86