DataSpace.c File Reference

#include <stdlib.h>
#include <string.h>
#include "DataSpace.h"
#include "TaskData.h"
#include "../constants.h"

Include dependency graph for DataSpace.c:

Go to the source code of this file.

Defines

#define _DATASPACE_C_

Functions

DataSpacecreateDataSpace ()
void destroyDataSpace (DataSpace *space)
void * getData (DataSpace *space, char *key, int *valSz)
int putData (DataSpace *space, char *key, void *val, int valSz)
int removeData (DataSpace *space, char *key)
int readDataSpace (FILE *inputFile, DataSpace *space)
int writeDataSpace (FILE *outputSpace, DataSpace *space)


Define Documentation

#define _DATASPACE_C_
 

Definition at line 1 of file DataSpace.c.


Function Documentation

DataSpace* createDataSpace  ) 
 

Definition at line 9 of file DataSpace.c.

References _DataSpace_::dataHash, INITIAL_CAPACITY, readTaskData(), and writeTaskData().

Referenced by cachePutData(), createTask(), and readTask().

Here is the call graph for this function:

void destroyDataSpace DataSpace space  ) 
 

Definition at line 18 of file DataSpace.c.

References _DataSpace_::dataHash.

Referenced by taskMove().

void* getData DataSpace space,
char *  key,
int *  valSz
 

Definition at line 22 of file DataSpace.c.

References _DataSpace_::dataHash, _TaskData_::val, and _TaskData_::valSz.

Referenced by cacheGetData().

int putData DataSpace space,
char *  key,
void *  val,
int  valSz
 

Definition at line 39 of file DataSpace.c.

References _DataSpace_::dataHash, destroyTaskData(), INITIAL_CAPACITY, _TaskData_::val, and _TaskData_::valSz.

Referenced by cachePutData().

Here is the call graph for this function:

int readDataSpace FILE *  inputFile,
DataSpace space
 

Definition at line 88 of file DataSpace.c.

References _DataSpace_::dataHash.

Referenced by readTask().

int removeData DataSpace space,
char *  key
 

Definition at line 68 of file DataSpace.c.

References _DataSpace_::dataHash, and destroyTaskData().

Referenced by cacheRemoveData().

Here is the call graph for this function:

int writeDataSpace FILE *  outputSpace,
DataSpace space
 

Definition at line 94 of file DataSpace.c.

References _DataSpace_::dataHash.

Referenced by writeTask().


Generated on Tue Jan 17 19:19:43 2006 for Void by  doxygen 1.4.6