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