GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
Loading...
Searching...
No Matches
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)
 
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 
)

◆ 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 177 of file diglib/cindex.c.

References Cat_index::cat, Cat_index::field, G_debug(), G_realloc, NULL, and Cat_index::type.

Referenced by V2__add_line_to_topo_nat().

◆ dig_cidx_del_cat()

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

◆ dig_cidx_free()

void dig_cidx_free ( struct Plus_head Plus)

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

References G_debug(), G_free(), and NULL.

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

◆ 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 G_debug(), and G_malloc.

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 328 of file diglib/cindex.c.

References G_debug().

Referenced by Vect_build_partial(), and Vect_cidx_get_unique_cats_by_index().