|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <grass/raster3d.h>#include "raster3d_intern.h"
Go to the source code of this file.
Data Structures | |
| struct | Rast3d_cache_hash |
Functions | |
| void | Rast3d_cache_hash_reset (Rast3d_cache_hash *h) |
| void | Rast3d_cache_hash_dispose (Rast3d_cache_hash *h) |
| void * | Rast3d_cache_hash_new (int nofNames) |
| void | Rast3d_cache_hash_remove_name (Rast3d_cache_hash *h, int name) |
| void | Rast3d_cache_hash_load_name (Rast3d_cache_hash *h, int name, int index) |
| int | Rast3d_cache_hash_name2index (Rast3d_cache_hash *h, int name) |
| void Rast3d_cache_hash_dispose | ( | Rast3d_cache_hash * | h | ) |
Definition at line 36 of file cachehash.c.
References Rast3d_cache_hash::active, Rast3d_cache_hash::index, NULL, and Rast3d_free().
Referenced by Rast3d_cache_dispose(), and Rast3d_cache_hash_new().
| void Rast3d_cache_hash_load_name | ( | Rast3d_cache_hash * | h, |
| int | name, | ||
| int | index | ||
| ) |
Definition at line 93 of file cachehash.c.
References Rast3d_cache_hash::active, Rast3d_cache_hash::index, name, Rast3d_cache_hash::nofNames, and Rast3d_fatal_error().
Referenced by Rast3d_cache_elt_ptr().
| int Rast3d_cache_hash_name2index | ( | Rast3d_cache_hash * | h, |
| int | name | ||
| ) |
Definition at line 108 of file cachehash.c.
References Rast3d_cache_hash::active, Rast3d_cache_hash::index, Rast3d_cache_hash::lastIndex, Rast3d_cache_hash::lastIndexActive, Rast3d_cache_hash::lastName, and name.
Referenced by Rast3d_cache_elt_ptr(), Rast3d_cache_lock(), and Rast3d_cache_unlock().
Definition at line 50 of file cachehash.c.
References Rast3d_cache_hash::active, Rast3d_cache_hash::index, Rast3d_cache_hash::nofNames, NULL, Rast3d_cache_hash_dispose(), Rast3d_cache_hash_reset(), Rast3d_error(), and Rast3d_malloc().
Referenced by Rast3d_cache_new().
| void Rast3d_cache_hash_remove_name | ( | Rast3d_cache_hash * | h, |
| int | name | ||
| ) |
Definition at line 76 of file cachehash.c.
References Rast3d_cache_hash::active, Rast3d_cache_hash::lastIndexActive, Rast3d_cache_hash::lastName, name, Rast3d_cache_hash::nofNames, and Rast3d_fatal_error().
Referenced by Rast3d_cache_elt_ptr().
| void Rast3d_cache_hash_reset | ( | Rast3d_cache_hash * | h | ) |
Definition at line 24 of file cachehash.c.
References Rast3d_cache_hash::active, Rast3d_cache_hash::lastIndexActive, and Rast3d_cache_hash::nofNames.
Referenced by Rast3d_cache_hash_new(), and Rast3d_cache_reset().