tlds
Transactional Operations for Linked Data Structures
|
#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"
Enumerations | |
enum | data_config { DATA_PRECISION = 100, DATA_INIT = 2 } |
Functions | |
data_t * | data_alloc (long numVar, long numRecord, random_t *randomPtr) |
void | data_free (data_t *dataPtr) |
net_t * | data_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) |
enum data_config |
|
static |
long data_findSplit | ( | data_t * | dataPtr, |
long | start, | ||
long | num, | ||
long | offset | ||
) |
void data_free | ( | data_t * | dataPtr | ) |
char* data_getRecord | ( | data_t * | dataPtr, |
long | index | ||
) |
void data_sort | ( | data_t * | dataPtr, |
long | start, | ||
long | num, | ||
long | offset | ||
) |