Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Public Member Functions
HitGCTile Struct Reference

#include <hit_tile.h>

Inheritance diagram for HitGCTile:
Inheritance graph
[legend]
Collaboration diagram for HitGCTile:
Collaboration graph
[legend]

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)
 

Detailed Description

Class of HitTile to implement Graphs using CSR sparse data format.

Member Function Documentation

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.

Parameters
varPA tile.

Definition at line 132 of file hit_gctile.c.

Here is the caller graph for this function:

void hit_gcTileCopyVertices ( void *  destP,
void *  srcP 
)

Copies the values from a tile to the other.

Parameters
destPDestination tile.
srcPSoruce tile

Definition at line 145 of file hit_gctile.c.

Here is the caller graph for this function:

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.

static int hit_gcTileEdgeAtIndex ( void *  varP,
int  local1,
int  local2 
)
inline

Gets the index of a sparse element in local coordinates.

Parameters
varThe tile pointer.
local1The first coordinate.
local2The second coordinate.
Returns
The index element.

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.

Parameters
varThe tile pointer.
pos1The first coordinate.
pos2The second coordinate.
Returns
The index element.

Definition at line 100 of file hit_gctile.c.

int hit_gcTileGraphVertexAtIndex ( void *  varP,
int  vertex 
)
inline

Gets the index of a sparse vertex in graph coordinates.

Parameters
varThe tile pointer.
vertexThe vertex coordinate.
Returns
The index element.

Definition at line 119 of file hit_gctile.c.


The documentation for this struct was generated from the following files: