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