GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
Cat_index Struct Reference

Category index. More...

#include <dig_structs.h>

Data Fields

int field
 Field (layer) number.
 
int n_cats
 Number of items in cat array.
 
int a_cats
 Allocated space in cat array.
 
int(* cat )[3]
 Array of cats (cat, type, lines/area)
 
int n_ucats
 Number of unique cats (not updated)
 
int n_types
 Number of types in type.
 
int type [7][2]
 Number of elements for each type.
 
off_t offset
 Offset of the beginning of this index in cidx file.
 

Detailed Description

Category index.

Definition at line 706 of file dig_structs.h.

Field Documentation

◆ a_cats

int Cat_index::a_cats

Allocated space in cat array.

Definition at line 718 of file dig_structs.h.

◆ cat

int(* Cat_index::cat)[3]

Array of cats (cat, type, lines/area)

Definition at line 722 of file dig_structs.h.

Referenced by dig_cidx_add_cat(), dig_cidx_add_cat_sorted(), dig_cidx_del_cat(), Vect_cidx_dump(), Vect_cidx_find_all(), and Vect_cidx_find_next().

◆ field

int Cat_index::field

Field (layer) number.

Definition at line 710 of file dig_structs.h.

Referenced by dig_cidx_add_cat(), dig_cidx_add_cat_sorted(), dig_cidx_del_cat(), and Vect_cidx_dump().

◆ n_cats

int Cat_index::n_cats

Number of items in cat array.

Definition at line 714 of file dig_structs.h.

Referenced by Vect_cidx_find_all(), and Vect_cidx_find_next().

◆ n_types

int Cat_index::n_types

Number of types in type.

Definition at line 730 of file dig_structs.h.

◆ n_ucats

int Cat_index::n_ucats

Number of unique cats (not updated)

Definition at line 726 of file dig_structs.h.

◆ offset

off_t Cat_index::offset

Offset of the beginning of this index in cidx file.

Definition at line 746 of file dig_structs.h.

◆ type

int Cat_index::type[7][2]

Number of elements for each type.

  • GV_POINT
  • GV_LINE
  • GV_BOUNDARY
  • GV_CENTROID
  • GV_FACE
  • GV_KERNEL
  • GV_AREA

Definition at line 742 of file dig_structs.h.

Referenced by dig_cidx_add_cat(), dig_cidx_add_cat_sorted(), dig_cidx_del_cat(), Vect_cidx_dump(), Vect_cidx_find_all(), and Vect_cidx_find_next().


The documentation for this struct was generated from the following file: