Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Data Structures | Macros | Functions | Variables
hit_shape.h File Reference
#include "hit_sig.h"
Include dependency graph for hit_shape.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HitSigShape
 
struct  HitCShape
 
struct  HitBShape
 
struct  HitShape
 

Macros

#define HIT_MAXDIMS   4
 
#define HIT_SPARSE_MAXDIMS   2
 
#define HIT_SIG_SHAPE
 
#define HIT_CSR_SHAPE
 
#define HIT_BITMAP_SHAPE
 
#define hit_shapeType(s)
 

Functions

void hit_shapeFree (HitShape s)
 

Variables

HitShape HIT_SHAPE_NULL
 

Detailed Description

Types and basic functions to manipulate domains.

Definition of the HitShape interface type, for dense and sparse domains.

Version
1.1
Author
Arturo Gonzalez-Escribano
Javier Fresno Bausela
Carlos de Blas Carton
Date
Mar 2011

Definition in file hit_shape.h.

Macro Definition Documentation

#define HIT_BITMAP_SHAPE

Subclass identifier: Hit Bitmap Sparse Shape.

Definition at line 183 of file hit_shape.h.

#define HIT_CSR_SHAPE

Subclass identifier: Hit CSR Sparse Shape.

Definition at line 177 of file hit_shape.h.

#define HIT_MAXDIMS   4

Maximum number of array dimensions supported in a dense domain.

Determined at compile time. This is the default value. It may be changed by the programmer, although higher numbers of dimensions may need to define more access macros in hit_sshape.h, hit_tileP.h

Definition at line 72 of file hit_shape.h.

#define hit_shapeType (   s)

/**

/* HIT SHAPE ACCESS MACROS Access to the shape subclass.

Parameters
[in]sHitShape A domain shape.
Return values
intIdentifier of the HitShape subclass.
See Also
HIT_SIG_SHAPE, HIT_CSR_SHAPE, HIT_BITMAP_SHAPE

Definition at line 266 of file hit_shape.h.

#define HIT_SIG_SHAPE

Subclass identifier: Hit Signature dense Shape.

Definition at line 171 of file hit_shape.h.

#define HIT_SPARSE_MAXDIMS   2

Maximum number of dimensions in a sparse domain.

Note
Sparse CSR format supports only and exactly 2.
Sparse Bitmap format supports 1 or 2 dimensions.

Definition at line 81 of file hit_shape.h.

Function Documentation

void hit_shapeFree ( HitShape  s)

/* 6. HIT SHAPE FREE FUNTION Free resources of a sparse shape.

Note
The subclass HitSigShape does not allocate dynamic resources. The use of this function may be skipped for HitSigShape variables.
Parameters
[in,out]sA domain shape.

Definition at line 84 of file hit_shape.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

HitShape HIT_SHAPE_NULL

/* 2. Hit SHAPE NULL CONSTANT Null value for abstract shapes.

The number of dimensions of this value is -1.

Definition at line 60 of file hit_shape.c.