basic.h
上传用户:gzelex
上传日期:2007-01-07
资源大小:707k
文件大小:2k
开发平台:

MultiPlatform

  1. /*******************************************************************************
  2. +
  3. +  LEDA-R  3.2.3
  4. +
  5. +  basic.h
  6. +
  7. +  Copyright (c) 1995  by  Max-Planck-Institut fuer Informatik
  8. +  Im Stadtwald, 66123 Saarbruecken, Germany     
  9. +  All rights reserved.
  10. *******************************************************************************/
  11. #ifndef LEDA_BASIC_H
  12. #define LEDA_BASIC_H
  13. //------------------------------------------------------------------------------
  14. // include iostreams, stdlib, values, etc.
  15. //------------------------------------------------------------------------------
  16. #include <iostream.h>
  17. #include <stdlib.h>
  18. #if defined(unix) || defined(_AIX) || defined(__BORLANDC__)
  19. #include <values.h>
  20. #else
  21. #define MAXINT          (int(0x7FFFFFFF))
  22. #define MAXFLOAT (float(3.37E+38))
  23. #define MAXDOUBLE       (double(1.797693E+308))
  24. #endif
  25. // deccxx's definition of MAXINT seems to be broken
  26. #if defined(__DECCXX)
  27. #undef MAXINT
  28. #define MAXINT  int(~(unsigned(1)<<(8*sizeof(int)-1)))
  29. #endif
  30. //------------------------------------------------------------------------------
  31. // include basic LEDA header files
  32. //------------------------------------------------------------------------------
  33. #include <LEDA/system.h>
  34. #include <LEDA/global.h>
  35. #include <LEDA/bool.h>
  36. #include <LEDA/leda.h>
  37. #include <LEDA/error.h>
  38. #include <LEDA/memory.h>
  39. #include <LEDA/param_types.h>
  40. #include <LEDA/handle_types.h>
  41. #include <LEDA/string.h>
  42. #include <LEDA/random.h>
  43. #include <LEDA/iteration.h>
  44. #include <LEDA/lin_order.h>
  45. #include <LEDA/misc.h>
  46. #endif