tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
data.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "bitmap.h"
#include "data.h"
#include "net.h"
#include "random.h"
#include "sort.h"
#include "types.h"
#include "vector.h"
Include dependency graph for data.c:

Enumerations

enum  data_config { DATA_PRECISION = 100, DATA_INIT = 2 }
 

Functions

data_tdata_alloc (long numVar, long numRecord, random_t *randomPtr)
 
void data_free (data_t *dataPtr)
 
net_tdata_generate (data_t *dataPtr, long seed, long maxNumParent, long percentParent)
 
char * data_getRecord (data_t *dataPtr, long index)
 
bool_t data_copy (data_t *dstPtr, data_t *srcPtr)
 
static int compareRecord (const void *p1, const void *p2, long n, long offset)
 
void data_sort (data_t *dataPtr, long start, long num, long offset)
 
long data_findSplit (data_t *dataPtr, long start, long num, long offset)
 

Enumeration Type Documentation

Enumerator
DATA_PRECISION 
DATA_INIT 

Function Documentation

static int compareRecord ( const void *  p1,
const void *  p2,
long  n,
long  offset 
)
static

Here is the caller graph for this function:

data_t* data_alloc ( long  numVar,
long  numRecord,
random_t randomPtr 
)

Here is the caller graph for this function:

bool_t data_copy ( data_t dstPtr,
data_t srcPtr 
)

Here is the call graph for this function:

long data_findSplit ( data_t dataPtr,
long  start,
long  num,
long  offset 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void data_free ( data_t dataPtr)

Here is the caller graph for this function:

net_t* data_generate ( data_t dataPtr,
long  seed,
long  maxNumParent,
long  percentParent 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char* data_getRecord ( data_t dataPtr,
long  index 
)
void data_sort ( data_t dataPtr,
long  start,
long  num,
long  offset 
)

Here is the call graph for this function:

Here is the caller graph for this function: