card.c

Go to the documentation of this file.
00001 /****************************************************************************
00002 * MODULE:       R-Tree library 
00003 *              
00004 * AUTHOR(S):    Antonin Guttman - original code
00005 *               Daniel Green (green@superliminal.com) - major clean-up
00006 *                               and implementation of bounding spheres
00007 *               
00008 * PURPOSE:      Multidimensional index
00009 *
00010 * COPYRIGHT:    (C) 2001 by the GRASS Development Team
00011 *
00012 *               This program is free software under the GNU General Public
00013 *               License (>=v2). Read the file COPYING that comes with GRASS
00014 *               for details.
00015 *****************************************************************************/
00016 
00017 #include "index.h"
00018 #include "card.h"
00019 
00020 int NODECARD = MAXCARD;
00021 int LEAFCARD = MAXCARD;
00022 
00023 static int set_max(int *which, int new_max)
00024 {
00025         if(2 > new_max || new_max > MAXCARD)
00026                 return 0;
00027         *which = new_max;
00028         return 1;
00029 }
00030 
00031 int RTreeSetNodeMax(int new_max) { return set_max(&NODECARD, new_max); }
00032 int RTreeSetLeafMax(int new_max) { return set_max(&LEAFCARD, new_max); }
00033 int RTreeGetNodeMax(void) { return NODECARD; }
00034 int RTreeGetLeafMax(void) { return LEAFCARD; }

Generated on Sun Apr 6 17:32:44 2008 for GRASS by  doxygen 1.5.5