GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tilealloc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "G3d_intern.h"
Include dependency graph for tilealloc.c:

Go to the source code of this file.

Functions

void * G3d_allocTilesType (G3D_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 * G3d_allocTiles (G3D_Map *map, int nofTiles)
 Is equivalent to G3d_allocTilesType (map, nofTiles, G3d_fileTypeMap (map)). More...
 
void G3d_freeTiles (void *tiles)
 Is equivalent to G3d_free (tiles); More...
 

Function Documentation

void* G3d_allocTiles ( G3D_Map *  map,
int  nofTiles 
)

Is equivalent to G3d_allocTilesType (map, nofTiles, G3d_fileTypeMap (map)).

Parameters
map
nofTiles
Returns
void *

Definition at line 52 of file tilealloc.c.

References G3d_allocTilesType(), G3d_error(), and NULL.

Referenced by G3d_changePrecision(), and G3d_changeType().

void* G3d_allocTilesType ( G3D_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 26 of file tilealloc.c.

References G3d_error(), G3d_length(), G3d_malloc(), and NULL.

Referenced by G3d_allocTiles(), and G3d_getBlockNocache().

void G3d_freeTiles ( void *  tiles)

Is equivalent to G3d_free (tiles);

Parameters
tiles
Returns
void

Definition at line 77 of file tilealloc.c.

References G3d_free().

Referenced by G3d_changePrecision(), G3d_changeType(), and G3d_getBlockNocache().