Hitmap 1.3
|
#include <hit_tile.h>
Public Member Functions | |
#define | hit_gbTileDomainShape(newVarP, baseType, shape, allocOpts) hit_gbTileDomainShapeInternal(newVarP, sizeof(baseType), shape, allocOpts) |
void | hit_gbTileDomainShapeInternal (void *newVarP, size_t baseExtent, HitShape shape, int allocOpts) |
#define | hit_gbTileAlloc(var) hit_gbTileAllocInternal(var, #var, __FILE__, __LINE__) |
void | hit_gbTileAllocInternal (void *newVarP, const char *name, const char *file, int numLine) |
#define | hit_gbTileDomainShapeAlloc(var, baseType, shape, allocOpts) |
int | hit_gbTileGraphVertexAtIndex (void *varP, int vertex) |
static int | hit_gbTileEdgeAtIndex (void *varP, int local1, int local2) |
int | hit_gbTileGraphEdgeAtIndex (void *varP, int pos1, int pos2) |
#define | hit_gbTileVertexAt(var, vertex) ((var).dataVertices[vertex]) |
#define | hit_gbTileEdgeAt(var, pos1, pos2) ((var).data[hit_gbTileEdgeAtIndex(&(var),(pos1),(pos2))]) |
#define | hit_gbTileGraphVertexAt(var, vertex) ((var).dataVertices[hit_gbTileGraphVertexAtIndex(&(var),(vertex))]) |
#define | hit_gbTileGraphEdgeAt(var, pos1, pos2) ((var).data[hit_gbTileGraphEdgeAtIndex(&(var),(pos1),(pos2))]) |
#define | hit_gbTileEdgeIteratorAt(var, vertex, edge_index) ((var).data[vertex * hit_bShapeNvertices(hit_tileShape(var)) + edge_index]) |
void | hit_gbTileClearVertices (void *varP) |
void | hit_gbTileCopyVertices (void *destP, void *srcP) |
Class of HitTile to implement Graphs using Bitmap sparse data format.
void hit_gbTileAllocInternal | ( | void * | newVarP, |
const char * | name, | ||
const char * | file, | ||
int | numLine | ||
) |
Allocate a previously declared gcTile.
Definition at line 78 of file hit_gbtile.c.
void hit_gbTileClearVertices | ( | void * | varP | ) |
Clears the values of the vertices.
varP | A tile. |
Definition at line 146 of file hit_gbtile.c.
void hit_gbTileCopyVertices | ( | void * | destP, |
void * | srcP | ||
) |
Copies the values from a tile to the other.
destP | Destination tile. |
srcP | Soruce tile |
Definition at line 159 of file hit_gbtile.c.
void hit_gbTileDomainShapeInternal | ( | void * | newVarP, |
size_t | baseExtent, | ||
HitShape | shape, | ||
int | allocOpts | ||
) |
Declares the shape and base type of a new sparse domain.
Definition at line 49 of file hit_gbtile.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 123 of file hit_gbtile.h.
|
inline |
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 128 of file hit_gbtile.c.
|
inline |
Gets the index of a sparse vertex in graph coordinates.
var | The tile pointer. |
vertex | The vertex coordinate. |
Definition at line 113 of file hit_gbtile.c.