GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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

◆ Rast3d_alloc_tiles()

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.

◆ Rast3d_alloc_tiles_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.

Referenced by Rast3d_alloc_tiles().

◆ Rast3d_free_tiles()

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().