array.c File Reference

#include <stdlib.h>
#include "gis.h"
#include "dbmi.h"
#include "Vect.h"

Include dependency graph for array.c:

Go to the source code of this file.

Functions

VARRAY * Vect_new_varray (int size)
int Vect_set_varray_from_cat_string (struct Map_info *Map, int field, char *cstring, int type, int value, VARRAY *varray)
int Vect_set_varray_from_cat_list (struct Map_info *Map, int field, struct cat_list *clist, int type, int value, VARRAY *varray)
int cmp (const void *pa, const void *pb)
int in_array (int *cats, int ncats, int cat)
int Vect_set_varray_from_db (struct Map_info *Map, int field, char *where, int type, int value, VARRAY *varray)


Function Documentation

int cmp ( const void *  pa,
const void *  pb 
)

Definition at line 162 of file array.c.

Referenced by in_array(), and Vect_cat_in_array().

int in_array ( int *  cats,
int  ncats,
int  cat 
)

Definition at line 174 of file array.c.

References cmp().

Referenced by Vect_set_varray_from_db().

VARRAY* Vect_new_varray ( int  size  ) 

Definition at line 30 of file array.c.

int Vect_set_varray_from_cat_list ( struct Map_info *  Map,
int  field,
struct cat_list *  clist,
int  type,
int  value,
VARRAY *  varray 
)

Definition at line 95 of file array.c.

References Vect_cat_get(), Vect_cat_in_cat_list(), Vect_destroy_cats_struct(), Vect_get_area_centroid(), Vect_get_num_areas(), Vect_get_num_lines(), Vect_new_cats_struct(), and Vect_read_line().

Referenced by Vect_set_varray_from_cat_string().

int Vect_set_varray_from_cat_string ( struct Map_info *  Map,
int  field,
char *  cstring,
int  type,
int  value,
VARRAY *  varray 
)

Definition at line 61 of file array.c.

References Vect_destroy_cat_list(), Vect_new_cat_list(), Vect_set_varray_from_cat_list(), and Vect_str_to_cat_list().

int Vect_set_varray_from_db ( struct Map_info *  Map,
int  field,
char *  where,
int  type,
int  value,
VARRAY *  varray 
)

Definition at line 196 of file array.c.

References in_array(), Vect_get_area_centroid(), Vect_get_field(), Vect_get_num_areas(), Vect_new_cats_struct(), and Vect_read_line().


Generated on Sat Jul 22 22:05:57 2006 for GRASS by  doxygen 1.4.7