PPL  1.2
Variable_Floating_Point_Expression_defs.hh
Go to the documentation of this file.
1 /* Declarations for the Variable_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_Variable_Floating_Point_Expression_defs_hh
26 #define PPL_Variable_Floating_Point_Expression_defs_hh 1
27 
29 #include "globals_defs.hh"
31 #include <map>
32 #include <utility>
33 
34 namespace Parma_Polyhedra_Library {
35 
37 
38 template<typename FP_Interval_Type, typename FP_Format>
39 void swap(Variable_Floating_Point_Expression<FP_Interval_Type, FP_Format>& x,
40  Variable_Floating_Point_Expression<FP_Interval_Type, FP_Format>& y);
41 
63 template <typename FP_Interval_Type, typename FP_Format>
65 : public Floating_Point_Expression<FP_Interval_Type, FP_Format> {
66 
67 public:
68 
73  typedef typename
75  FP_Linear_Form FP_Linear_Form;
76 
81  typedef typename
83  FP_Interval_Abstract_Store FP_Interval_Abstract_Store;
84 
89  typedef typename
91  FP_Linear_Form_Abstract_Store FP_Linear_Form_Abstract_Store;
92 
97  typedef typename
100 
104  typedef typename
106 
108 
109 
113  explicit Variable_Floating_Point_Expression(const dimension_type v_index);
114 
117 
119 
140  bool linearize(const FP_Interval_Abstract_Store& int_store,
141  const FP_Linear_Form_Abstract_Store& lf_store,
142  FP_Linear_Form& result) const;
143 
154  void linear_form_assign(const FP_Linear_Form& lf,
155  FP_Linear_Form_Abstract_Store& lf_store) const;
156 
159 
160 private:
161 
162  #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
163 
166  #endif // PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
169 
170  #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
171 
174  #endif // PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
177 
180 
181 }; // class Variable_Floating_Point_Expression
182 
183 } // namespace Parma_Polyhedra_Library
184 
186 
187 #endif // !defined(PPL_Variable_Floating_Point_Expression_defs_hh)
FP_Interval_Type::boundary_type boundary_type
The floating point format used by the analyzer.
void swap(CO_Tree &x, CO_Tree &y)
size_t dimension_type
An unsigned integral type for representing space dimensions.
void linear_form_assign(const FP_Linear_Form &lf, FP_Linear_Form_Abstract_Store &lf_store) const
Assigns a linear form to the variable with the same index of *this in a given linear form abstract st...
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 >::FP_Linear_Form_Abstract_Store FP_Linear_Form_Abstract_Store
Alias for the std::map from Floating_Point_Expression.
Variable_Floating_Point_Expression & operator=(const Variable_Floating_Point_Expression &y)
Inhibited assignment operator.
Variable_Floating_Point_Expression(const dimension_type v_index)
Constructor with a parameter: builds the variable floating point expression corresponding to the vari...
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.
Floating_Point_Expression< FP_Interval_Type, FP_Format >::boundary_type boundary_type
Alias for the FP_Interval_Type::boundary_type from Floating_Point_Expression.
void m_swap(Variable_Floating_Point_Expression &y)
Swaps *this with y.
Floating_Point_Expression< FP_Interval_Type, FP_Format >::info_type info_type
Alias for the FP_Interval_Type::info_type from Floating_Point_Expression.
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 abstract store.
Floating_Point_Expression< FP_Interval_Type, FP_Format >::FP_Interval_Abstract_Store FP_Interval_Abstract_Store
Alias for the Box from Floating_Point_Expression.