1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
// Copyright (c) 1999 Utrecht University (The Netherlands),
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; version 2.1 of the License.
// See the file LICENSE.LGPL distributed with CGAL.
//
// Licensees holding a valid commercial license may use this file in
// accordance with the commercial license agreement provided with the software.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.2-branch/Number_types/include/CGAL/number_type_basic.h $
// $Id: number_type_basic.h 30034 2006-04-06 09:10:38Z spion $
//
//
// Author(s) : Stefan Schirra
#ifndef CGAL_NUMBER_TYPE_BASIC_H
#define CGAL_NUMBER_TYPE_BASIC_H
#define CGAL_PI 3.14159265358979323846
#define CGAL_NTS CGAL::
// #define CGAL_NTS CGAL::NTS::
// CGAL uses std::min and std::max
#include <algorithm>
#include <CGAL/config.h>
CGAL_BEGIN_NAMESPACE
using std::min;
using std::max;
CGAL_END_NAMESPACE
#include <CGAL/number_utils_fwd.h>
#include <CGAL/known_bit_size_integers.h>
#include <CGAL/Number_type_traits.h>
#include <CGAL/float.h>
#include <CGAL/double.h>
#include <CGAL/long_double.h>
#include <CGAL/int.h>
#ifdef CGAL_USE_LONG_LONG
#include <CGAL/long_long.h>
#endif
// Including all number type files is necessary for compilers implementing
// two-stage name lookup (like g++ >= 3.4).
// A nicer solution needs more thought.
#ifndef CGAL_CFG_NO_TWO_STAGE_NAME_LOOKUP
#include <CGAL/Interval_nt_fwd.h>
#include <CGAL/Lazy_exact_nt_fwd.h>
#include <CGAL/Filtered_exact_fwd.h>
#include <CGAL/MP_Float_fwd.h>
#include <CGAL/Nef_polynomial_fwd.h>
#include <CGAL/Number_type_checker_fwd.h>
#ifdef CGAL_USE_GMP
# include <CGAL/Gmpzq_fwd.h>
#endif
#ifdef CGAL_USE_GMPXX
# include <CGAL/gmpxx_fwd.h>
#endif
#ifdef CGAL_USE_CORE
# include <CGAL/CORE_Expr_fwd.h>
#endif
#include <CGAL/Quotient_fwd.h>
#include <CGAL/Root_of_2_fwd.h>
#include <CGAL/make_root_of_2.h>
// We must also include the following two, because of the overloadings
// for Quotient<MP_Float> and Quotient<Gmpz>, which triggers their
// instantiation, even if only to_double(double) is called, at least
// when Quotient is defined...
#include <CGAL/MP_Float.h>
#ifdef CGAL_USE_GMP
# include <CGAL/Gmpz.h>
#endif
CGAL_BEGIN_NAMESPACE
// Fixed_precision_nt
class Fixed_precision_nt;
double to_double(Fixed_precision_nt);
bool is_finite(Fixed_precision_nt);
bool is_valid(Fixed_precision_nt);
std::pair<double,double> to_interval(Fixed_precision_nt);
#if 0
// Polynomial
template <typename T> class Polynomial;
template <typename ET>
double to_double(const Polynomial<ET> &);
template <typename ET>
std::pair<double,double> to_interval(const Polynomial<ET> &);
template <typename ET>
Sign sign(const Polynomial<ET> &);
template <typename ET>
Polynomial<ET> abs(const Polynomial<ET> &);
template <typename ET>
bool is_finite(const Polynomial<ET> &);
template <typename ET>
bool is_valid(const Polynomial<ET> &);
template <typename ET>
Polynomial<ET> gcd(const Polynomial<ET> &, const Polynomial<ET> &);
// Nef_polynomial
template <typename T> class Nef_polynomial;
template <typename ET>
double to_double(const Nef_polynomial<ET> &);
template <typename ET>
Nef_polynomial<ET> gcd(const Nef_polynomial<ET> &, const Nef_polynomial<ET> &);
#endif
CGAL_END_NAMESPACE
#endif // CGAL_CFG_NO_TWO_STAGE_NAME_LOOKUP
#include <CGAL/number_utils.h>
#include <CGAL/number_utils_classes.h>
#endif // CGAL_NUMBER_TYPE_BASIC_H
|