PPL  1.2
Init_defs.hh
Go to the documentation of this file.
1 /* Init 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_Init_defs_hh
25 #define PPL_Init_defs_hh 1
26 
27 #include "Init_types.hh"
28 #include "fpu_types.hh"
29 
30 namespace Parma_Polyhedra_Library {
31 
41 
56 
57 } // namespace Parma_Polyhedra_Library
58 
59 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
60 
71 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
73 public:
75  Init();
76 
78  ~Init();
79 
80 private:
87  static const unsigned DEFAULT_IRRATIONAL_PRECISION = 128U;
88 
90  static unsigned int count;
92 
93  friend void set_rounding_for_PPL();
94  friend void restore_pre_PPL_rounding();
95 };
96 
97 #include "Init_inlines.hh"
98 
99 
100 #endif // !defined(PPL_Init_defs_hh)
friend void restore_pre_PPL_rounding()
Sets the FPU rounding mode as it was before initialization of the PPL.
Definition: Init_inlines.hh:40
static unsigned int count
Count the number of objects created.
Definition: Init_defs.hh:90
~Init()
Finalizes the PPL.
Definition: Init.cc:185
static const unsigned DEFAULT_IRRATIONAL_PRECISION
Default precision parameter used for irrational calculations.
Definition: Init_defs.hh:87
void set_rounding_for_PPL()
Sets the FPU rounding mode so that the PPL abstractions based on floating point numbers work correctl...
Definition: Init_inlines.hh:33
friend void set_rounding_for_PPL()
Sets the FPU rounding mode so that the PPL abstractions based on floating point numbers work correctl...
Definition: Init_inlines.hh:33
Class for initialization and finalization.
Definition: Init_defs.hh:72
Init()
Initializes the PPL.
Definition: Init.cc:133
static fpu_rounding_direction_type old_rounding_direction
Definition: Init_defs.hh:91
The entire library is confined to this namespace.
Definition: version.hh:61
void restore_pre_PPL_rounding()
Sets the FPU rounding mode as it was before initialization of the PPL.
Definition: Init_inlines.hh:40