BWAPI
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/Bigfloat_interval_traits.h
Go to the documentation of this file.
00001 // Copyright (c) 2006-2008 Max-Planck-Institute Saarbruecken (Germany).
00002 // All rights reserved.
00003 //
00004 // This file is part of CGAL (www.cgal.org); you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public License as
00006 // published by the Free Software Foundation; version 2.1 of the License.
00007 // See the file LICENSE.LGPL distributed with CGAL.
00008 //
00009 // Licensees holding a valid commercial license may use this file in
00010 // accordance with the commercial license agreement provided with the software.
00011 //
00012 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00013 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00014 //
00015 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Number_types/include/CGAL/Bigfloat_interval_traits.h $
00016 // $Id: Bigfloat_interval_traits.h 47264 2008-12-08 06:25:14Z hemmer $
00017 //
00018 //
00019 // Author(s)     : Michael Hemmer   <hemmer@mpi-inf.mpg.de>
00020 //                 Ron Wein         <wein@post.tau.ac.il>
00021 
00022 
00023 #ifndef CGAL_BIGFLOAT_INTERVAL_TRAITS_H
00024 #define CGAL_BIGFLOAT_INTERVAL_TRAITS_H
00025 
00026 #include<CGAL/basic.h>
00027 
00028 CGAL_BEGIN_NAMESPACE
00029 
00030 // TODO: rename this into MPFI_traits ? 
00031 // add a better rounding control 
00032 
00033 template<typename BigfloatInterval> class Bigfloat_interval_traits;
00034 
00035 template<typename BFI> inline long get_significant_bits(BFI bfi) {
00036     typename Bigfloat_interval_traits<BFI>::Get_significant_bits 
00037         get_significant_bits;
00038     return get_significant_bits(bfi);
00039 }
00040 
00041 template<typename BFI> inline long set_precision(BFI,long prec) {
00042     typename Bigfloat_interval_traits<BFI>::Set_precision set_precision;
00043     return set_precision(prec);
00044 }
00045 
00046 template<typename BFI> inline long get_precision(BFI) {
00047     typename Bigfloat_interval_traits<BFI>::Get_precision get_precision;
00048     return get_precision();
00049 }
00050 
00051 CGAL_END_NAMESPACE
00052 
00053 #endif // CGAL_BIGFLOAT_INTERVAL_TRAITS_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines