PPL  1.2
Difference_Floating_Point_Expression_defs.hh
Go to the documentation of this file.
1 /* Declarations for the Difference_Floating_Point_Expression class and
2  its constituents.
3  Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>
4  Copyright (C) 2010-2016 BUGSENG srl (http://bugseng.com)
5 
6 This file is part of the Parma Polyhedra Library (PPL).
7 
8 The PPL is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12 
13 The PPL is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software Foundation,
20 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
21 
22 For the most up-to-date information see the Parma Polyhedra Library
23 site: http://bugseng.com/products/ppl/ . */
24 
25 #ifndef PPL_Difference_Floating_Point_Expression_defs_hh
26 #define PPL_Difference_Floating_Point_Expression_defs_hh 1
27 
29 #include "globals_defs.hh"
31 #include <map>
32 
33 namespace Parma_Polyhedra_Library {
34 
36 
37 template <typename FP_Interval_Type, typename FP_Format>
38 void
39 swap(Difference_Floating_Point_Expression<FP_Interval_Type, FP_Format>& x,
40  Difference_Floating_Point_Expression<FP_Interval_Type, FP_Format>& y);
41 
100 template <typename FP_Interval_Type, typename FP_Format>
102  : public Floating_Point_Expression<FP_Interval_Type, FP_Format> {
103 
104 public:
105 
110  typedef typename
113 
118  typedef typename
121 
126  typedef typename
129 
134  typedef typename
137 
141  typedef typename
143 
145 
146 
153 
156 
158 
180  bool linearize(const FP_Interval_Abstract_Store& int_store,
181  const FP_Linear_Form_Abstract_Store& lf_store,
182  FP_Linear_Form& result) const;
183 
185  void m_swap(Difference_Floating_Point_Expression<FP_Interval_Type,
186  FP_Format>& y);
187 
188 private:
189 
194 
195  #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
196 
199  #endif // PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
201  const Difference_Floating_Point_Expression<FP_Interval_Type,
202  FP_Format>& e);
203 
204  #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
205 
208  #endif // PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
210  operator=(const Difference_Floating_Point_Expression<FP_Interval_Type,
211  FP_Format>& e);
212 
213 
214 }; // class Difference_Floating_Point_Expression
215 
216 } // namespace Parma_Polyhedra_Library
217 
220 
221 #endif // !defined(PPL_Difference_Floating_Point_Expression_defs_hh)
FP_Interval_Type::boundary_type boundary_type
The floating point format used by the analyzer.
Floating_Point_Expression< FP_Interval_Type, FP_Format >::FP_Interval_Abstract_Store FP_Interval_Abstract_Store
Alias for the Box from Floating_Point_Expression.
void swap(CO_Tree &x, CO_Tree &y)
Difference_Floating_Point_Expression(Floating_Point_Expression< FP_Interval_Type, FP_Format > *const x, Floating_Point_Expression< FP_Interval_Type, FP_Format > *const y)
Constructor with two parameters: builds the difference floating point expression corresponding to x ...
Difference_Floating_Point_Expression< FP_Interval_Type, FP_Format > & operator=(const Difference_Floating_Point_Expression< FP_Interval_Type, FP_Format > &e)
Inhibited asssignment operator.
void m_swap(Difference_Floating_Point_Expression< FP_Interval_Type, FP_Format > &y)
Swaps *this with y.
Floating_Point_Expression< FP_Interval_Type, FP_Format > * first_operand
Pointer to the first operand.
Floating_Point_Expression< FP_Interval_Type, FP_Format >::FP_Linear_Form FP_Linear_Form
Alias for the Linear_Form from Floating_Point_Expression.
Floating_Point_Expression< FP_Interval_Type, FP_Format >::info_type info_type
Alias for the FP_Interval_Type::info_type from Floating_Point_Expression.
A linear form with interval coefficients.
A not necessarily closed, iso-oriented hyperrectangle.
Definition: Box_defs.hh:299
Floating_Point_Expression< FP_Interval_Type, FP_Format >::boundary_type boundary_type
Alias for the FP_Interval_Type::boundary_type from Floating_Point_Expression.
Floating_Point_Expression< FP_Interval_Type, FP_Format >::FP_Linear_Form_Abstract_Store FP_Linear_Form_Abstract_Store
Alias for the std::map from Floating_Point_Expression.
Floating_Point_Expression< FP_Interval_Type, FP_Format > * second_operand
Pointer to the second operand.
The entire library is confined to this namespace.
Definition: version.hh:61
FP_Interval_Type::info_type info_type
The interval policy used by FP_Interval_Type.
bool linearize(const FP_Interval_Abstract_Store &int_store, const FP_Linear_Form_Abstract_Store &lf_store, FP_Linear_Form &result) const
Linearizes the expression in a given astract store.