parQHV
Compute HyperVolumes using threads
 All Data Structures Files Functions Variables Macros
counterHash.h File Reference

A hash for containing counter values. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct counterHashcounterHash
 

Functions

counterHash CHalloc (int n)
 
void CHfree (counterHash *this)
 
void CHinc (counterHash this, int i, int a)
 
void CHzero (counterHash this, int i)
 
int CHget (counterHash this, int i)
 

Detailed Description

A hash for containing counter values.

Author
Luis Russo <lsr-ThinkPad-X201>
Date
Thu Mar 1 07:54:29 2012

Definition in file counterHash.h.

Function Documentation

counterHash CHalloc ( int  n)

Alloc a counter hash of size n

Parameters
nThe size of the Hash
Returns
The hash

Definition at line 56 of file counterHash.c.

void CHfree ( counterHash this)

Free the hash and null the pointer

Parameters
this

Definition at line 66 of file counterHash.c.

int CHget ( counterHash  this,
int  i 
)
Parameters
thisThe hash
iThe counter index
Returns
The value of counter i

Definition at line 83 of file counterHash.c.

void CHinc ( counterHash  this,
int  i,
int  a 
)

Increment counter i by a

Parameters
thisThe hash
iThe counter index
aThe increment

Definition at line 73 of file counterHash.c.

void CHzero ( counterHash  this,
int  i 
)

Zero counter i

Parameters
thisThe hash
ithe counter index

Definition at line 78 of file counterHash.c.