Hitmap 1.3
|
#include <hit_tile.h>
Public Member Functions | |
#define | hit_gcTileDomainShape(newVarP, baseType, shape, allocOpts) hit_gcTileDomainShapeInternal(newVarP, sizeof(baseType), shape, allocOpts) |
void | hit_gcTileDomainShapeInternal (void *newVarP, size_t baseExtent, HitShape shape, int allocOpts) |
#define | hit_gcTileAlloc(var) hit_gcTileAllocInternal(var, #var, __FILE__, __LINE__) |
void | hit_gcTileAllocInternal (void *newVarP, const char *name, const char *file, int numLine) |
#define | hit_gcTileDomainShapeAlloc(var, baseType, shape, allocOpts) |
int | hit_gcTileGraphVertexAtIndex (void *varP, int vertex) |
static int | hit_gcTileEdgeAtIndex (void *varP, int local1, int local2) |
int | hit_gcTileGraphEdgeAtIndex (void *varP, int pos1, int pos2) |
#define | hit_gcTileVertexAt(var, vertex) ((var).dataVertices[vertex]) |
#define | hit_gcTileEdgeAt(var, pos1, pos2) ((var).data[hit_gcTileEdgeAtIndex(&(var),(pos1),(pos2))]) |
#define | hit_gcTileGraphVertexAt(var, vertex) ((var).dataVertices[hit_gcTileGraphVertexAtIndex(&(var),(vertex))]) |
#define | hit_gcTileGraphEdgeAt(var, pos1, pos2) ((var).data[hit_gcTileGraphEdgeAtIndex(&(var),(pos1),(pos2))]) |
#define | hit_gcTileVerticesCopy(dstTileP, srcTileP) hit_gcTileCopyVerticesInternal(dstTileP,srcTileP,1) |
void | hit_gcTileCopyVerticesInternal (void *dstTileP, void *srcTileP, int clear) |
#define | hit_gcTileEdgeIteratorAt(var, vertex, edge_index) ((var).data[edge_index]) |
void | hit_gcTileClearVertices (void *varP) |
void | hit_gcTileCopyVertices (void *destP, void *srcP) |
Class of HitTile to implement Graphs using CSR sparse data format.
void hit_gcTileAllocInternal | ( | void * | newVarP, |
const char * | name, | ||
const char * | file, | ||
int | numLine | ||
) |
Allocate a previously declared gcTile.
Definition at line 67 of file hit_gctile.c.
void hit_gcTileClearVertices | ( | void * | varP | ) |
Clears the values of the vertices.
varP | A tile. |
Definition at line 132 of file hit_gctile.c.
void hit_gcTileCopyVertices | ( | void * | destP, |
void * | srcP | ||
) |
Copies the values from a tile to the other.
destP | Destination tile. |
srcP | Soruce tile |
Definition at line 145 of file hit_gctile.c.
void hit_gcTileCopyVerticesInternal | ( | void * | dstTileP, |
void * | srcTileP, | ||
int | clear | ||
) |
Copies a sparse tile using the globalName translation list.
void hit_gcTileDomainShapeInternal | ( | void * | newVarP, |
size_t | baseExtent, | ||
HitShape | shape, | ||
int | allocOpts | ||
) |
Declares the shape and base type of a new sparse domain.
Definition at line 39 of file hit_gctile.c.
|
inline |
Gets the index of a sparse element in local coordinates.
var | The tile pointer. |
local1 | The first coordinate. |
local2 | The second coordinate. |
Definition at line 122 of file hit_gctile.h.
int hit_gcTileGraphEdgeAtIndex | ( | void * | varP, |
int | pos1, | ||
int | pos2 | ||
) |
Gets the index of a sparse element in graph coordinates.
var | The tile pointer. |
pos1 | The first coordinate. |
pos2 | The second coordinate. |
Definition at line 100 of file hit_gctile.c.
|
inline |
Gets the index of a sparse vertex in graph coordinates.
var | The tile pointer. |
vertex | The vertex coordinate. |
Definition at line 119 of file hit_gctile.c.