GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d37ee165c
diglib/cindex.c File Reference
#include <stdlib.h>
#include <string.h>
#include <grass/vector.h>
Include dependency graph for diglib/cindex.c:

Go to the source code of this file.

Functions

int dig_cidx_init (struct Plus_head *Plus)
 Initialize Plus_head structure (cidx) More...
 
void dig_cidx_free (struct Plus_head *Plus)
 
int dig_cidx_add_cat (struct Plus_head *Plus, int field, int cat, int line, int type)
 
int dig_cidx_add_cat_sorted (struct Plus_head *Plus, int field, int cat, int line, int type)
 
int dig_cidx_del_cat (struct Plus_head *Plus, int field, int cat, int line, int type)
 
void dig_cidx_sort (struct Plus_head *Plus)
 

Function Documentation

◆ dig_cidx_add_cat()

int dig_cidx_add_cat ( struct Plus_head Plus,
int  field,
int  cat,
int  line,
int  type 
)

Definition at line 73 of file diglib/cindex.c.

◆ dig_cidx_add_cat_sorted()

int dig_cidx_add_cat_sorted ( struct Plus_head Plus,
int  field,
int  cat,
int  line,
int  type 
)

Definition at line 180 of file diglib/cindex.c.

◆ dig_cidx_del_cat()

int dig_cidx_del_cat ( struct Plus_head Plus,
int  field,
int  cat,
int  line,
int  type 
)

Definition at line 272 of file diglib/cindex.c.

◆ dig_cidx_free()

◆ dig_cidx_init()

int dig_cidx_init ( struct Plus_head Plus)

Initialize Plus_head structure (cidx)

Parameters
Pluspointer to Plus_head structure
Returns
1 OK
0 on error

Definition at line 29 of file diglib/cindex.c.

References Plus_head::a_cidx, Plus_head::cidx, Plus_head::cidx_up_to_date, G_debug(), G_malloc, and Plus_head::n_cidx.

Referenced by dig_init_plus(), dig_read_cidx(), and Vect_build_partial().

◆ dig_cidx_sort()

void dig_cidx_sort ( struct Plus_head Plus)

Definition at line 333 of file diglib/cindex.c.

References G_debug(), and Plus_head::n_cidx.