tlds
Transactional Operations for Linked Data Structures
|
#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"
Functions | |
grid_t * | grid_alloc (long width, long height, long depth) |
grid_t * | Pgrid_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 |
grid_t* grid_alloc | ( | long | width, |
long | height, | ||
long | depth | ||
) |
void grid_free | ( | grid_t * | gridPtr | ) |
long grid_getPoint | ( | 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_getPointRef | ( | grid_t * | gridPtr, |
long | x, | ||
long | y, | ||
long | z | ||
) |
void grid_print | ( | grid_t * | gridPtr | ) |
void grid_setPoint | ( | grid_t * | gridPtr, |
long | x, | ||
long | y, | ||
long | z, | ||
long | value | ||
) |
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 | ||
) |
const unsigned long CACHE_LINE_SIZE = 32UL |