arithm.h

Go to the documentation of this file.
00001 
00002 //
00003 // This program can be freely used in an academic environment
00004 // ONLY for research purposes, subject to the following restrictions:
00005 //
00006 // 1. The origin of this software must not be misrepresented; you must not
00007 //    claim that you wrote the original software. If you use this software
00008 //    an acknowledgment in the product documentation is required.
00009 // 2. Altered source versions must be plainly marked as such, and must not be
00010 //    misrepresented as being the original software.
00011 // 3. This notice may not be removed or altered from any source distribution.
00012 //
00013 // Any other use is strictly prohibited by the author, without an explicit 
00014 // permission.
00015 //
00016 // Note that this program uses the LEDA library, which is NOT free. For more 
00017 // details visit Algorithmic Solutions at http://www.algorithmic-solutions.com/
00018 // There is also a free version of LEDA 6.0 or newer.
00019 //
00020 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00021 // ! Any commercial use of this software is strictly !
00022 // ! prohibited without explicit permission by the   !
00023 // ! author.                                         !
00024 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00025 //
00026 // This software is distributed in the hope that it will be useful,
00027 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00028 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00029 //
00030 // Copyright (C) 2004-2008 - Dimitris Michail <dmixdim@googlemail.com>
00031 // Copyright (C) 2004-2008 - Dimitris Michail <michail@mpi-inf.mpg.de>
00032 //
00033 // $Id: arithm.h 6773 2008-02-19 18:20:57Z dmichail $ 
00034 //
00035 
00040 #ifndef ARITHM_H
00041 #define ARITHM_H
00042 
00043 #include <LEP/mcb/config.h>
00044 
00045 #ifdef LEDA_GE_V5
00046 #include <LEDA/numbers/integer.h>
00047 #else
00048 #include <LEDA/integer.h>
00049 #endif
00050 
00051 namespace mcb { 
00052 
00053 // define the types used in our implementation
00054 
00057 typedef int indextype;
00058 typedef short etype;
00061 typedef leda::integer ptype;
00062 
00063 // give compare for ptype inside mcb namespace
00064 inline int compare(const ptype& x, const ptype& y)  
00065 { 
00066     if (x < y) return -1;                              
00067     else if (x > y) return 1;                          
00068     else return 0;                                     
00069 } 
00070 
00071 } // end of namespace mcb
00072 
00073 #endif // ARITHM_H
00074 
00075 /* ex: set ts=8 sw=4 sts=4 noet: */
00076 
00077 
00078 

Generated on Tue Apr 22 13:40:08 2008 for mcb LEDA Extension Package by  doxygen 1.4.6