GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
btree.h
Go to the documentation of this file.
1
#ifndef GRASS_BTREE_H
2
#define GRASS_BTREE_H
3
4
typedef
struct
5
{
6
void
*
key
;
7
void
*
data
;
8
int
left
;
9
int
right
;
10
}
BTREE_NODE
;
11
12
typedef
struct
13
{
14
BTREE_NODE
*
node
;
/* tree of values */
15
int
tlen
;
/* allocated tree size */
16
int
N
;
/* number of actual nodes in tree */
17
int
incr
;
/* number of nodes to add at a time */
18
int
cur
;
19
int (*cmp) (
const
void
*,
const
void
*);
/* routine to compare keys */
20
}
BTREE
;
21
22
#include <
grass/defs/btree.h
>
23
24
#endif
BTREE::cur
int cur
Definition:
btree.h:18
BTREE_NODE
Definition:
btree.h:4
BTREE::N
int N
Definition:
btree.h:16
BTREE::incr
int incr
Definition:
btree.h:17
BTREE_NODE::left
int left
Definition:
btree.h:8
BTREE
Definition:
btree.h:12
btree.h
BTREE_NODE::key
void * key
Definition:
btree.h:6
BTREE_NODE::data
void * data
Definition:
btree.h:7
BTREE::node
BTREE_NODE * node
Definition:
btree.h:14
BTREE::tlen
int tlen
Definition:
btree.h:15
BTREE_NODE::right
int right
Definition:
btree.h:9
include
grass
btree.h
Generated on Tue Feb 14 2023 05:55:58 for GRASS GIS 8 Programmer's Manual by
1.8.13