GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
Go to the source code of this file.
Functions | |
void | tgis_free_map_list (tgisMapList *list) |
Free allocated memory of an integer list. More... | |
tgisMapList * | tgis_new_map_list (void) |
Return a new integer list. More... | |
void | tgis_init_map_list (tgisMapList *list) |
Init a tgisMapList and free allocated memory. More... | |
void | tgis_map_list_add (tgisMapList *list, tgisMap *map) |
Add a map to tgisMapList. More... | |
void | tgis_map_list_insert (tgisMapList *list, char *name, char *mapset, struct TimeStamp *ts) |
Insert map information into tgisMapList. More... | |
void tgis_free_map_list | ( | tgisMapList * | list | ) |
Free allocated memory of an integer list.
list | The pointer to an integer list |
Definition at line 28 of file map_list.c.
References G_free().
void tgis_init_map_list | ( | tgisMapList * | list | ) |
Init a tgisMapList and free allocated memory.
list | The pointer to a tgisMapList |
Definition at line 69 of file map_list.c.
References G_free(), and NULL.
Referenced by tgis_new_map_list().
void tgis_map_list_add | ( | tgisMapList * | list, |
tgisMap * | map | ||
) |
Add a map to tgisMapList.
This function adds a tgisMap to the list but does not check for duplicates. In case reallocation fails, G_fatal_error() will be invoked by the allocation function.
The content of the map will not be copied, the pointer to the map will be stored.
list | The tgisMapList pointer |
map | A pointer to a tgisMap struct that should be added |
Definition at line 103 of file map_list.c.
References G_realloc.
void tgis_map_list_insert | ( | tgisMapList * | list, |
char * | name, | ||
char * | mapset, | ||
struct TimeStamp * | ts | ||
) |
Insert map information into tgisMapList.
This function allocates a tgisMap, fills it with the provided information and adds it to the list. In case allocation fails, G_fatal_error() will be invoked by the allocation function.
All arguments are deep copied to the new allocated tgisMap struct.
list | The tgisMapList pointer |
name | The name of the map |
mapset | The name of the mapset |
ts | A pointer to the timestamp of the map |
Definition at line 133 of file map_list.c.
tgisMapList* tgis_new_map_list | ( | void | ) |
Return a new integer list.
G_fatal_error() will be invoked by the allocation function.
Definition at line 54 of file map_list.c.
References G_malloc, list, NULL, and tgis_init_map_list().