BWAPI
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/Residue.h
Go to the documentation of this file.
00001 // 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/Modular_arithmetic/include/CGAL/Residue.h $
00016 // $Id: Residue.h 45762 2008-09-25 13:24:05Z hemmer $
00017 //
00018 // Author(s)     : Michael Hemmer
00019 
00027 #ifndef CGAL_RESIDUE_H
00028 #define CGAL_RESIDUE_H 1
00029 
00030 #include <CGAL/basic.h>
00031 #include <CGAL/Modular_arithmetic/Residue_type.h>
00032 #include <CGAL/Coercion_traits.h>
00033 
00034 CGAL_BEGIN_NAMESPACE
00035 
00036 
00041 template <>
00042 class Algebraic_structure_traits<Residue>
00043     : public Algebraic_structure_traits_base< Residue ,Field_tag >{
00044 public: 
00045     typedef CGAL::Tag_true Is_exact; 
00046 };
00047 
00048 CGAL_DEFINE_COERCION_TRAITS_FROM_TO(short,CGAL::Residue)
00049 CGAL_DEFINE_COERCION_TRAITS_FROM_TO(int  ,CGAL::Residue)
00050 CGAL_DEFINE_COERCION_TRAITS_FROM_TO(long ,CGAL::Residue)
00051 
00052 CGAL_END_NAMESPACE
00053 
00054 #endif //#ifnedef CGAL_RESIDUE_H 1
00055  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines