GRASS Programmer's Manual 6.4.1(2011)
|
#include <stdlib.h>
#include <grass/Vect.h>
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
struct ilist * | Vect_new_list (void) |
Creates and initializes a struct ilist. | |
int | Vect_reset_list (struct ilist *list) |
Reset ilist structure. | |
int | Vect_destroy_list (struct ilist *list) |
Frees all memory associated with a struct ilist, including the struct itself. | |
int | Vect_list_append (struct ilist *list, int val) |
Append new item to the end of list if not yet present. | |
int | Vect_list_append_list (struct ilist *alist, struct ilist *blist) |
Append new items to the end of list if not yet present. | |
int | Vect_list_delete (struct ilist *list, int val) |
Remove a given value (item) from list. | |
int | Vect_list_delete_list (struct ilist *alist, struct ilist *blist) |
Delete list from existing list. | |
int | Vect_val_in_list (struct ilist *list, int val) |
Find a given item in the list. |
int Vect_destroy_list | ( | struct ilist * | list | ) |
Frees all memory associated with a struct ilist, including the struct itself.
[in,out] | list | pointer to ilist structure |
Definition at line 74 of file Vlib/list.c.
Referenced by Vect_break_lines_list(), Vect_find_line(), Vect_find_line_list(), Vect_snap_lines(), Vedit_connect_lines(), Vedit_select_by_query(), and Vedit_split_lines().
int Vect_list_append | ( | struct ilist * | list, |
int | val | ||
) |
Append new item to the end of list if not yet present.
[in,out] | list | pointer to ilist structure |
[in] | val | new item to append to the end of list |
Definition at line 96 of file Vlib/list.c.
Referenced by Vect_break_lines_list(), Vect_cidx_find_all(), Vect_field_cat_get(), Vect_find_line(), Vect_find_line_list(), Vect_get_area_boundaries(), Vect_get_isle_boundaries(), Vect_graph_shortest_path(), Vect_list_append_list(), Vect_merge_lines(), Vect_net_shortest_path(), Vect_net_shortest_path_coor(), Vect_overlay_and(), Vect_remove_small_areas(), Vedit_connect_lines(), Vedit_merge_lines(), Vedit_select_by_query(), and Vedit_split_lines().
int Vect_list_append_list | ( | struct ilist * | alist, |
struct ilist * | blist | ||
) |
Append new items to the end of list if not yet present.
[in,out] | alist | pointer to ilist structure where items will be appended |
[in] | blist | pointer to ilist structure with new items |
Definition at line 130 of file Vlib/list.c.
References Vect_list_append().
int Vect_list_delete | ( | struct ilist * | list, |
int | val | ||
) |
Remove a given value (item) from list.
[in,out] | list | pointer to ilist structure |
[in] | val | to remove |
Definition at line 152 of file Vlib/list.c.
Referenced by Vect_list_delete_list().
int Vect_list_delete_list | ( | struct ilist * | alist, |
struct ilist * | blist | ||
) |
Delete list from existing list.
[in,out] | alist | pointer to original ilist structure, |
[in] | blist | pointer to ilist structure with items to delete |
Definition at line 181 of file Vlib/list.c.
References Vect_list_delete().
struct ilist* Vect_new_list | ( | void | ) | [read] |
Creates and initializes a struct ilist.
This structure is used as container for integer values. The library routines handle all memory allocation.
Definition at line 34 of file Vlib/list.c.
Referenced by Vect_attach_centroids(), Vect_attach_isles(), Vect_break_lines_list(), Vect_build_nat(), Vect_find_area(), Vect_find_island(), Vect_find_line(), Vect_find_line_list(), Vect_find_node(), Vect_isle_find_area(), Vect_merge_lines(), Vect_net_shortest_path_coor(), Vect_overlay_and(), Vect_remove_duplicates(), Vect_remove_small_areas(), Vect_select_areas_by_polygon(), Vect_select_lines_by_box(), Vect_select_lines_by_polygon(), Vect_snap_lines(), Vect_snap_lines_list(), Vedit_connect_lines(), Vedit_merge_lines(), Vedit_select_by_query(), and Vedit_split_lines().
int Vect_reset_list | ( | struct ilist * | list | ) |
Reset ilist structure.
To make sure ilist structure is clean to be re-used. List must have previously been created with Vect_new_list().
[in,out] | list | pointer to struct ilist |
Definition at line 59 of file Vlib/list.c.
Referenced by Vect_cidx_find_all(), Vect_field_cat_get(), Vect_find_line_list(), Vect_get_area_boundaries(), Vect_get_isle_boundaries(), Vect_graph_shortest_path(), Vect_merge_lines(), Vect_net_shortest_path(), Vect_remove_small_areas(), Vect_snap_lines_list(), Vedit_connect_lines(), and Vedit_merge_lines().
int Vect_val_in_list | ( | struct ilist * | list, |
int | val | ||
) |
Find a given item in the list.
[in] | list | pointer to ilist structure |
[in] | val | value of item |
Definition at line 203 of file Vlib/list.c.
Referenced by Vect_break_lines_list(), Vect_find_line_list(), Vect_overlay_and(), Vedit_merge_lines(), and Vedit_select_by_query().