ami_config.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /****************************************************************************
  2. *
  3. * MODULE: iostream
  4. *
  5. * COPYRIGHT (C) 2007 Laura Toma
  6. *
  7. *
  8. * Iostream is a library that implements streams, external memory
  9. * sorting on streams, and an external memory priority queue on
  10. * streams. These are the fundamental components used in external
  11. * memory algorithms.
  12. * Credits: The library was developed by Laura Toma. The kernel of
  13. * class STREAM is based on the similar class existent in the GPL TPIE
  14. * project developed at Duke University. The sorting and priority
  15. * queue have been developed by Laura Toma based on communications
  16. * with Rajiv Wickremesinghe. The library was developed as part of
  17. * porting Terraflow to GRASS in 2001. PEARL upgrades in 2003 by
  18. * Rajiv Wickremesinghe as part of the Terracost project.
  19. *
  20. * This program is free software; you can redistribute it and/or modify
  21. * it under the terms of the GNU General Public License as published by
  22. * the Free Software Foundation; either version 2 of the License, or
  23. * (at your option) any later version.
  24. *
  25. * This program is distributed in the hope that it will be useful,
  26. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  27. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  28. * General Public License for more details. *
  29. * **************************************************************************/
  30. #ifndef _ami_config_h
  31. #define _ami_config_h
  32. //CHOOSE PQUEUE IMPLEMENTATION
  33. //------------------------------------------------------------
  34. //#define IM_PQUEUE
  35. //#define EM_PQUEUE
  36. #define EMPQ_ADAPTIVE
  37. //maximize memory usage by keeping streams on disk
  38. //------------------------------------------------------------
  39. #if (defined EM_PQUEUE || defined EMPQ_ADAPTIVE)
  40. //enables keeping streams on disk, rather than in memory;
  41. #define SAVE_MEMORY
  42. #endif
  43. #if (defined EMPQ_ADAPTIVE && !defined SAVE_MEMORY)
  44. #error EMPQ_ADAPTIVE requires SAVE_MEMORY set
  45. #endif
  46. #endif