HClib  0.3
Documentation for Habanero-C Library API
 All Data Structures Functions Typedefs Enumerations Groups
Functions
Data-Driven Future

Data-Driven Future API for data-flow like programming. More...

Functions

struct ddf_st * ddf_create ()
 Allocate and initialize a DDF. More...
 
struct ddf_st ** ddf_create_n (size_t nb_ddfs, int null_terminated)
 Allocate and initialize an array of DDFs. More...
 
void ddf_free (struct ddf_st *ddf)
 Destruct a DDF. More...
 
void * ddf_get (struct ddf_st *ddf)
 Get the value of a DDF. More...
 
void ddf_put (struct ddf_st *ddf, void *datum)
 Put a value in a DDF. More...
 

Detailed Description

Data-Driven Future API for data-flow like programming.

Function Documentation

struct ddf_st* ddf_create ( )
read

Allocate and initialize a DDF.

Returns
A DDF.

Allocate a DDF and initializes it.

Definition at line 73 of file ddf.c.

Referenced by ddf_create_n().

struct ddf_st** ddf_create_n ( size_t  nb_ddfs,
int  null_terminated 
)
read

Allocate and initialize an array of DDFs.

Parameters
[in]nb_ddfsSize of the DDF array
[in]null_terminatedIf true, create nb_ddfs-1 and set the last element to NULL.
Returns
A contiguous array of DDFs

Allocate 'nb_ddfs' DDFs in contiguous memory.

Definition at line 83 of file ddf.c.

References ddf_create().

void ddf_free ( struct ddf_st *  ddf)

Destruct a DDF.

Parameters
[in]ddfThe DDF to destruct
void* ddf_get ( struct ddf_st *  ddf)

Get the value of a DDF.

Parameters
[in]ddfThe DDF to get a value from
void ddf_put ( struct ddf_st *  ddf,
void *  datum 
)

Put a value in a DDF.

Parameters
[in]ddfThe DDF to get a value from
[in]datumThe datum to be put in the DDF