|
GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <grass/G3d.h>#include "G3d_intern.h"
Go to the source code of this file.
Data Structures | |
| struct | G3d_cache_hash |
Functions | |
| void | G3d_cache_hash_reset (G3d_cache_hash *h) |
| void | G3d_cache_hash_dispose (G3d_cache_hash *h) |
| void * | G3d_cache_hash_new (int nofNames) |
| void | G3d_cache_hash_remove_name (G3d_cache_hash *h, int name) |
| void | G3d_cache_hash_load_name (G3d_cache_hash *h, int name, int index) |
| int | G3d_cache_hash_name2index (G3d_cache_hash *h, int name) |
| void G3d_cache_hash_dispose | ( | G3d_cache_hash * | h | ) |
Definition at line 37 of file cachehash.c.
References G3d_cache_hash::active, G3d_free(), G3d_cache_hash::index, and NULL.
Referenced by G3d_cache_dispose(), and G3d_cache_hash_new().
| void G3d_cache_hash_load_name | ( | G3d_cache_hash * | h, |
| int | name, | ||
| int | index | ||
| ) |
Definition at line 92 of file cachehash.c.
References G3d_cache_hash::active, G3d_fatalError(), G3d_cache_hash::index, render::name, and G3d_cache_hash::nofNames.
Referenced by G3d_cache_elt_ptr().
| int G3d_cache_hash_name2index | ( | G3d_cache_hash * | h, |
| int | name | ||
| ) |
Definition at line 106 of file cachehash.c.
References G3d_cache_hash::active, G3d_cache_hash::index, G3d_cache_hash::lastIndex, G3d_cache_hash::lastIndexActive, G3d_cache_hash::lastName, and render::name.
Referenced by G3d_cache_elt_ptr(), G3d_cache_lock(), and G3d_cache_unlock().
| void* G3d_cache_hash_new | ( | int | nofNames | ) |
Definition at line 51 of file cachehash.c.
References G3d_cache_hash::active, G3d_cache_hash_dispose(), G3d_cache_hash_reset(), G3d_error(), G3d_malloc(), G3d_cache_hash::index, G3d_cache_hash::nofNames, and NULL.
Referenced by G3d_cache_new().
| void G3d_cache_hash_remove_name | ( | G3d_cache_hash * | h, |
| int | name | ||
| ) |
Definition at line 77 of file cachehash.c.
References G3d_cache_hash::active, G3d_fatalError(), G3d_cache_hash::lastIndexActive, G3d_cache_hash::lastName, render::name, and G3d_cache_hash::nofNames.
Referenced by G3d_cache_elt_ptr().
| void G3d_cache_hash_reset | ( | G3d_cache_hash * | h | ) |
Definition at line 25 of file cachehash.c.
References G3d_cache_hash::active, G3d_cache_hash::lastIndexActive, and G3d_cache_hash::nofNames.
Referenced by G3d_cache_hash_new(), and G3d_cache_reset().