Vlib/list.c File Reference

#include <grass/Vect.h>
#include <stdlib.h>
#include <grass/gis.h>

Include dependency graph for Vlib/list.c:

Go to the source code of this file.

Functions

struct ilist * Vect_new_list (void)
int Vect_reset_list (struct ilist *list)
 ADD.
int Vect_destroy_list (struct ilist *list)
 ADD.
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 item to the end of list if not yet present.
int Vect_list_delete (struct ilist *list, int val)
 Remove value 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)
 is value in list?


Function Documentation

int Vect_destroy_list ( struct ilist *  list  ) 

ADD.

Returns:
no return value
Parameters:
ilist * structure

Definition at line 61 of file Vlib/list.c.

Referenced by Vect_break_lines(), and Vect_find_line().

int Vect_list_append ( struct ilist *  list,
int  val 
)

Append new item to the end of list if not yet present.

Returns:
0 on success, 1 on error
Parameters:
ilist * structure, ADD

Definition at line 83 of file Vlib/list.c.

Referenced by remove_bridges(), remove_dangles(), Vect_get_area_boundaries(), Vect_get_isle_boundaries(), Vect_graph_shortest_path(), Vect_list_append_list(), Vect_net_shortest_path(), Vect_net_shortest_path_coor(), Vect_overlay_and(), and Vect_remove_small_areas().

int Vect_list_append_list ( struct ilist *  alist,
struct ilist *  blist 
)

Append new item to the end of list if not yet present.

Returns:
0 on success, 1 on error
Parameters:
ailist * structure, bilist * structure

Definition at line 115 of file Vlib/list.c.

References Vect_list_append().

int Vect_list_delete ( struct ilist *  list,
int  val 
)

Remove value from list.

Returns:
0 on success, 1 on error
Parameters:
ilist * structure, ADD

Definition at line 135 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.

Returns:
0 on success, 1 on error
Parameters:
ailist * structure, bilist * structure

Definition at line 162 of file Vlib/list.c.

References Vect_list_delete().

struct ilist* Vect_new_list ( void   )  [read]

int Vect_reset_list ( struct ilist *  list  ) 

int Vect_val_in_list ( struct ilist *  list,
int  val 
)

is value in list?

Returns:
1 if in list, 0 if not in list
Parameters:
line_pnts * structure, value

Definition at line 182 of file Vlib/list.c.

Referenced by remove_bridges(), and Vect_overlay_and().


Generated on Sun Apr 6 17:32:50 2008 for GRASS by  doxygen 1.5.5