tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
grid.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "coordinate.h"
#include "grid.h"
#include "tm.h"
#include "types.h"
#include "vector.h"
Include dependency graph for grid.c:

Functions

grid_tgrid_alloc (long width, long height, long depth)
 
grid_tPgrid_alloc (long width, long height, long depth)
 
void grid_free (grid_t *gridPtr)
 
void Pgrid_free (grid_t *gridPtr)
 
void grid_copy (grid_t *dstGridPtr, grid_t *srcGridPtr)
 
bool_t grid_isPointValid (grid_t *gridPtr, long x, long y, long z)
 
long * grid_getPointRef (grid_t *gridPtr, long x, long y, long z)
 
void grid_getPointIndices (grid_t *gridPtr, long *gridPointPtr, long *xPtr, long *yPtr, long *zPtr)
 
long grid_getPoint (grid_t *gridPtr, long x, long y, long z)
 
bool_t grid_isPointEmpty (grid_t *gridPtr, long x, long y, long z)
 
bool_t grid_isPointFull (grid_t *gridPtr, long x, long y, long z)
 
void grid_setPoint (grid_t *gridPtr, long x, long y, long z, long value)
 
void grid_addPath (grid_t *gridPtr, vector_t *pointVectorPtr)
 
void TMgrid_addPath (TM_ARGDECL grid_t *gridPtr, vector_t *pointVectorPtr)
 
void grid_print (grid_t *gridPtr)
 

Variables

const unsigned long CACHE_LINE_SIZE = 32UL
 

Function Documentation

void grid_addPath ( grid_t gridPtr,
vector_t pointVectorPtr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

grid_t* grid_alloc ( long  width,
long  height,
long  depth 
)

Here is the caller graph for this function:

void grid_copy ( grid_t dstGridPtr,
grid_t srcGridPtr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void grid_free ( grid_t gridPtr)

Here is the caller graph for this function:

long grid_getPoint ( grid_t gridPtr,
long  x,
long  y,
long  z 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void grid_getPointIndices ( grid_t gridPtr,
long *  gridPointPtr,
long *  xPtr,
long *  yPtr,
long *  zPtr 
)

Here is the caller graph for this function:

long* grid_getPointRef ( grid_t gridPtr,
long  x,
long  y,
long  z 
)

Here is the caller graph for this function:

bool_t grid_isPointEmpty ( grid_t gridPtr,
long  x,
long  y,
long  z 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t grid_isPointFull ( grid_t gridPtr,
long  x,
long  y,
long  z 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t grid_isPointValid ( grid_t gridPtr,
long  x,
long  y,
long  z 
)

Here is the caller graph for this function:

void grid_print ( grid_t gridPtr)

Here is the call graph for this function:

Here is the caller graph for this function:

void grid_setPoint ( grid_t gridPtr,
long  x,
long  y,
long  z,
long  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

grid_t* Pgrid_alloc ( long  width,
long  height,
long  depth 
)
void Pgrid_free ( grid_t gridPtr)
void TMgrid_addPath ( TM_ARGDECL grid_t gridPtr,
vector_t pointVectorPtr 
)

Here is the call graph for this function:

Variable Documentation

const unsigned long CACHE_LINE_SIZE = 32UL