Generated on Wed Nov 1 15:04:43 2006 for Gecode by doxygen 1.4.5

limits.hh

Go to the documentation of this file.
00001 /*
00002  *  Main authors:
00003  *     Christian Schulte <schulte@gecode.org>
00004  *
00005  *  Copyright:
00006  *     Christian Schulte, 2005
00007  *
00008  *  Last modified:
00009  *     $Date: 2006-08-04 16:06:38 +0200 (Fri, 04 Aug 2006) $ by $Author: schulte $
00010  *     $Revision: 3516 $
00011  *
00012  *  This file is part of Gecode, the generic constraint
00013  *  development environment:
00014  *     http://www.gecode.org
00015  *
00016  *  See the file "LICENSE" for information on usage and
00017  *  redistribution of this file, and for a
00018  *     DISCLAIMER OF ALL WARRANTIES.
00019  *
00020  */
00021 
00022 #ifndef __GECODE_LIMITS_HH__
00023 #define __GECODE_LIMITS_HH__
00024 
00025 #include <climits>
00026 #include <cfloat>
00027 
00028 /*
00029  * Numerical limits
00030  *
00031  */
00032 
00033 namespace Gecode { namespace Limits {
00034 
00044   namespace Int {
00056 
00057     const int int_max        = ((INT_MAX)>>1) - 1;
00059     const int int_min        = -int_max;
00060 
00062     const double double_max  =  9007199254740991.0;
00064     const double double_min  = -9007199254740991.0;
00065 
00066   }
00067 
00068   namespace Set {
00075 
00076     const int int_max        = ((INT_MAX)>>2) - 1;
00078     const int int_min        = -int_max;
00080     const unsigned int card_max       = int_max-int_min+1;
00081   }
00082 
00083 }}
00084 
00085 #endif
00086 
00087 // STATISTICS: kernel-other