GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
Loading...
Searching...
No Matches
io.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "index.h"
Include dependency graph for io.c:

Go to the source code of this file.

Functions

void RTreeAddNodePos (off_t pos, int level, struct RTree *t)
 
off_t RTreeGetNodePos (struct RTree *t)
 
size_t RTreeReadBranch (struct RTree_Branch *b, struct RTree *t)
 
size_t RTreeReadNode (struct RTree_Node *n, off_t nodepos, struct RTree *t)
 
struct RTree_NodeRTreeGetNode (off_t nodepos, int level, struct RTree *t)
 
size_t RTreeWriteBranch (struct RTree_Branch *b, struct RTree *t)
 
size_t RTreeWriteNode (struct RTree_Node *n, struct RTree *t)
 
size_t RTreeRewriteNode (struct RTree_Node *n, off_t nodepos, struct RTree *t)
 
void RTreeNodeChanged (struct RTree_Node *n, off_t nodepos, struct RTree *t)
 
void RTreeFlushBuffer (struct RTree *t)
 

Function Documentation

◆ RTreeAddNodePos()

void RTreeAddNodePos ( off_t  pos,
int  level,
struct RTree t 
)

Definition at line 34 of file io.c.

References assert, NODE_BUFFER_SIZE, and t.

Referenced by RTreeDeleteRectF().

◆ RTreeFlushBuffer()

void RTreeFlushBuffer ( struct RTree t)

Definition at line 244 of file io.c.

References NODE_BUFFER_SIZE, RTreeRewriteNode(), and t.

Referenced by dig_dump_spidx().

◆ RTreeGetNode()

struct RTree_Node * RTreeGetNode ( off_t  nodepos,
int  level,
struct RTree t 
)

◆ RTreeGetNodePos()

off_t RTreeGetNodePos ( struct RTree t)

Definition at line 74 of file io.c.

References t.

Referenced by RTreeInsertRectF().

◆ RTreeNodeChanged()

void RTreeNodeChanged ( struct RTree_Node n,
off_t  nodepos,
struct RTree t 
)

Definition at line 212 of file io.c.

References assert, RTree_Node::level, NODE_BUFFER_SIZE, and t.

◆ RTreeReadBranch()

size_t RTreeReadBranch ( struct RTree_Branch b,
struct RTree t 
)

Definition at line 86 of file io.c.

References b, read, and t.

Referenced by RTreeReadNode().

◆ RTreeReadNode()

size_t RTreeReadNode ( struct RTree_Node n,
off_t  nodepos,
struct RTree t 
)

Definition at line 97 of file io.c.

References _, RTree_Node::branch, RTree_Node::count, err(), G_fatal_error(), RTree_Node::level, MAXCARD, read, RTreeReadBranch(), and t.

Referenced by RTreeGetNode().

◆ RTreeRewriteNode()

size_t RTreeRewriteNode ( struct RTree_Node n,
off_t  nodepos,
struct RTree t 
)

Definition at line 200 of file io.c.

References _, err(), G_fatal_error(), RTreeWriteNode(), and t.

Referenced by RTreeFlushBuffer(), and RTreeGetNode().

◆ RTreeWriteBranch()

size_t RTreeWriteBranch ( struct RTree_Branch b,
struct RTree t 
)

Definition at line 159 of file io.c.

References b, G_fatal_error(), t, and write.

Referenced by RTreeWriteNode().

◆ RTreeWriteNode()