GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
card.h
Go to the documentation of this file.
1 
2 /****************************************************************************
3 * MODULE: R-Tree library
4 *
5 * AUTHOR(S): Antonin Guttman - original code
6 * Daniel Green (green@superliminal.com) - major clean-up
7 * and implementation of bounding spheres
8 * Markus Metz - file-based and memory-based R*-tree
9 *
10 * PURPOSE: Multidimensional index
11 *
12 * COPYRIGHT: (C) 2010 by the GRASS Development Team
13 *
14 * This program is free software under the GNU General Public
15 * License (>=v2). Read the file COPYING that comes with GRASS
16 * for details.
17 *****************************************************************************/
18 
19 #ifndef __CARD__
20 #define __CARD__
21 
22 /* balance criteria for node splitting */
23 /* NOTE: can be changed if needed but
24  * must be >= 2 and <= (t)->[nodecard|leafcard] / 2 */
25 #define MinNodeFill(t) ((t)->minfill_node_split)
26 #define MinLeafFill(t) ((t)->minfill_leaf_split)
27 
28 #define MAXKIDS(level, t) ((level) > 0 ? (t)->nodecard : (t)->leafcard)
29 #define MINFILL(level, t) ((level) > 0 ? (t)->minfill_node_split : (t)->minfill_leaf_split)
30 
31 #endif