00001 /* Class declarations for several distances. 00002 Copyright (C) 2001-2008 Roberto Bagnara <bagnara@cs.unipr.it> 00003 00004 This file is part of the Parma Polyhedra Library (PPL). 00005 00006 The PPL is free software; you can redistribute it and/or modify it 00007 under the terms of the GNU General Public License as published by the 00008 Free Software Foundation; either version 3 of the License, or (at your 00009 option) any later version. 00010 00011 The PPL is distributed in the hope that it will be useful, but WITHOUT 00012 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00013 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00014 for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software Foundation, 00018 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. 00019 00020 For the most up-to-date information see the Parma Polyhedra Library 00021 site: http://www.cs.unipr.it/ppl/ . */ 00022 00023 #ifndef PPL_distances_defs_hh 00024 #define PPL_distances_defs_hh 1 00025 00026 #include "distances.types.hh" 00027 #include "Rounding_Dir.defs.hh" 00028 00029 template <typename Temp> 00030 struct Parma_Polyhedra_Library::Rectilinear_Distance_Specialization { 00031 static void combine(Temp& running, const Temp& current, Rounding_Dir dir); 00032 00033 static void finalize(Temp&, Rounding_Dir); 00034 }; 00035 00036 template <typename Temp> 00037 struct Parma_Polyhedra_Library::Euclidean_Distance_Specialization { 00038 static void combine(Temp& running, Temp& current, Rounding_Dir dir); 00039 00040 static void finalize(Temp& running, Rounding_Dir dir); 00041 }; 00042 00043 00044 template <typename Temp> 00045 struct Parma_Polyhedra_Library::L_Infinity_Distance_Specialization { 00046 static void combine(Temp& running, const Temp& current, Rounding_Dir); 00047 00048 static void finalize(Temp&, Rounding_Dir); 00049 }; 00050 00051 #include "distances.inlines.hh" 00052 00053 #endif // !defined(PPL_distances_defs_hh)