GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71817
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tilealloc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "raster3d_intern.h"
Include dependency graph for tilealloc.c:

Go to the source code of this file.

Functions

void * Rast3d_alloc_tiles_type (RASTER3D_Map *map, int nofTiles, int type)
 Allocates a vector of nofTiles tiles with the same dimensions as the tiles of map and large enough to store cell-values of type. More...
 
void * Rast3d_alloc_tiles (RASTER3D_Map *map, int nofTiles)
 Is equivalent to Rast3d_alloc_tiles_type (map, nofTiles, Rast3d_file_type_map (map)). More...
 
void Rast3d_free_tiles (void *tiles)
 Is equivalent to Rast3d_free (tiles); More...
 

Function Documentation

void* Rast3d_alloc_tiles ( RASTER3D_Map map,
int  nofTiles 
)

Is equivalent to Rast3d_alloc_tiles_type (map, nofTiles, Rast3d_file_type_map (map)).

Parameters
map
nofTiles
Returns
void *

Definition at line 50 of file tilealloc.c.

References NULL, Rast3d_alloc_tiles_type(), Rast3d_error(), and RASTER3D_Map::typeIntern.

Referenced by Rast3d_change_precision(), and Rast3d_change_type().

void* Rast3d_alloc_tiles_type ( RASTER3D_Map map,
int  nofTiles,
int  type 
)

Allocates a vector of nofTiles tiles with the same dimensions as the tiles of map and large enough to store cell-values of type.

Parameters
map
nofTiles
type
Returns
void * : a pointer to the vector ... if successful, NULL ... otherwise.

Definition at line 24 of file tilealloc.c.

References NULL, Rast3d_error(), Rast3d_length(), Rast3d_malloc(), and RASTER3D_Map::tileSize.

Referenced by Rast3d_alloc_tiles(), and Rast3d_get_block_nocache().

void Rast3d_free_tiles ( void *  tiles)

Is equivalent to Rast3d_free (tiles);

Parameters
tiles
Returns
void

Definition at line 75 of file tilealloc.c.

References Rast3d_free().

Referenced by Rast3d_change_precision(), Rast3d_change_type(), and Rast3d_get_block_nocache().