Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Macros | Functions
hit_bshape.c File Reference
#include <hit_bshape.h>
#include <hit_allocP.h>
#include <hit_funcop.h>
Include dependency graph for hit_bshape.c:

Go to the source code of this file.

Macros

#define VLOCAL   1
 
#define VEXPAND   2
 
#define s   (*shape)
 
#define s   (*shape)
 

Functions

HitShape hit_bitmapShape (int nvertices)
 
HitShape hit_bitmapShapeMatrix (int n, int m)
 
void hit_bShapeFree (HitShape shape)
 
void hit_bShapeCopyElementsInternal (HitShape dst, HitShape src)
 
HitShape hit_bShapeSelect (HitShape shape, int nvertices, int *vertices)
 
HitShape hit_bShapeSelectRows (HitShape shape, int nNames, int *names)
 
HitShape hit_bShapeExpand (HitShape shape, HitShape original, int amount)
 
void hit_bShapeAddEmptyRow_or_Vertex (HitShape *shape, int x, int mode)
 
void hit_bShapeAddColumn (HitShape *shape, int y)
 
void hit_bShapeAddElem_or_Edge (HitShape *shape, int x, int y, int mode)
 
int hit_bShapeNColsRow (HitShape shape, int row)
 

Detailed Description

Types and functions to manipulate bitmap sparse domains.

Version
1.0
Author
Javier Fresno Bausela
Date
Nov 2011

Definition in file hit_bshape.c.

Macro Definition Documentation

#define s   (*shape)
#define s   (*shape)
#define VEXPAND   2
#define VLOCAL   1

Function Documentation

HitShape hit_bitmapShape ( int  nvertices)

Definition at line 46 of file hit_bshape.c.

Here is the call graph for this function:

HitShape hit_bitmapShapeMatrix ( int  n,
int  m 
)

Sparse Bitmap matrix shape constructor.

Parameters
nNumber of rows
mNumber of columns
Returns
the new bitmap sparse Shape.

Definition at line 69 of file hit_bshape.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void hit_bShapeAddColumn ( HitShape shape,
int  y 
)

Definition at line 369 of file hit_bshape.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void hit_bShapeAddElem_or_Edge ( HitShape shape,
int  x,
int  y,
int  mode 
)

Adds an element to a matrix or a edge to a graph.

Parameters
shapeThe shape
xThe row/vertex
yThe element/edge
modeThe matrix/graph mode.

Definition at line 413 of file hit_bshape.c.

Here is the call graph for this function:

void hit_bShapeAddEmptyRow_or_Vertex ( HitShape shape,
int  x,
int  mode 
)

Adds an empty row in a bitmap sparse matrix or a vertex in a graph.

Parameters
shapeThe shape.
xThe name of the row or vertex.
modeThe mode matrix or graph.

Definition at line 293 of file hit_bshape.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void hit_bShapeCopyElementsInternal ( HitShape  dst,
HitShape  src 
)

Copy the elements from a bitmap shape to another.

Parameters
dstDestination shape.
srcSource shape.
Note
src should contain dst.

Definition at line 111 of file hit_bshape.c.

Here is the caller graph for this function:

HitShape hit_bShapeExpand ( HitShape  shape,
HitShape  original,
int  amount 
)

Definition at line 193 of file hit_bshape.c.

Here is the call graph for this function:

void hit_bShapeFree ( HitShape  shape)

Definition at line 95 of file hit_bshape.c.

Here is the call graph for this function:

int hit_bShapeNColsRow ( HitShape  shape,
int  row 
)

Return the number of nonzero elements of a row.

Parameters
shapeA bitmap shape.
rowThe index of the row.
Returns
The number of non-zero elements.

Definition at line 434 of file hit_bshape.c.

Here is the caller graph for this function:

HitShape hit_bShapeSelect ( HitShape  shape,
int  nvertices,
int *  vertices 
)

Definition at line 134 of file hit_bshape.c.

Here is the call graph for this function:

HitShape hit_bShapeSelectRows ( HitShape  shape,
int  nNames,
int *  names 
)

Returns a new bitmap shape with a selection of rows.

Parameters
shapeThe source shape.
nNamesThe number of rows.
namesThe list with the names of the rows.
Returns
A new bitmap shape.

Definition at line 162 of file hit_bshape.c.

Here is the call graph for this function:

Here is the caller graph for this function: