|
tlds
Transactional Operations for Linked Data Structures
|
#include <assert.h>#include <getopt.h>#include <stdlib.h>#include "data.h"#include "learner.h"#include "net.h"#include "thread.h"#include "timer.h"#include "tm.h"#include "types.h"Macros | |
| #define | PARAM_DEFAULT_QUALITY 1.0F |
Enumerations | |
| enum | param_types { PARAM_EDGE = (unsigned char)'e', PARAM_INSERT = (unsigned char)'i', PARAM_NUMBER = (unsigned char)'n', PARAM_PERCENT = (unsigned char)'p', PARAM_RECORD = (unsigned char)'r', PARAM_SEED = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t', PARAM_VAR = (unsigned char)'v', PARAM_GENE = (unsigned char)'g', PARAM_NUMBER = (unsigned char)'n', PARAM_SEGMENT = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t', PARAM_ATTACK = (unsigned char)'a', PARAM_LENGTH = (unsigned char)'l', PARAM_NUM = (unsigned char)'n', PARAM_SEED = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t', PARAM_BENDCOST = (unsigned char)'b', PARAM_THREAD = (unsigned char)'t', PARAM_XCOST = (unsigned char)'x', PARAM_YCOST = (unsigned char)'y', PARAM_ZCOST = (unsigned char)'z', PARAM_CLIENTS = (unsigned char)'c', PARAM_NUMBER = (unsigned char)'n', PARAM_QUERIES = (unsigned char)'q', PARAM_RELATIONS = (unsigned char)'r', PARAM_TRANSACTIONS = (unsigned char)'t', PARAM_USER = (unsigned char)'u' } |
| enum | param_defaults { PARAM_DEFAULT_EDGE = -1, PARAM_DEFAULT_INSERT = 1, PARAM_DEFAULT_NUMBER = 4, PARAM_DEFAULT_PERCENT = 10, PARAM_DEFAULT_RECORD = 4096, PARAM_DEFAULT_SEED = 1, PARAM_DEFAULT_THREAD = 1, PARAM_DEFAULT_VAR = 32, PARAM_DEFAULT_ATTACK = 10, PARAM_DEFAULT_LENGTH = 16, PARAM_DEFAULT_NUM = 1 << 20, PARAM_DEFAULT_SEED = 1, PARAM_DEFAULT_THREAD = 1, PARAM_DEFAULT_BENDCOST = 1, PARAM_DEFAULT_THREAD = 1, PARAM_DEFAULT_XCOST = 1, PARAM_DEFAULT_YCOST = 1, PARAM_DEFAULT_ZCOST = 2 } |
Functions | |
| static void | displayUsage (const char *appName) |
| static void | setDefaultParams () |
| static void | parseArgs (long argc, char *const argv[]) |
| static float | score (net_t *netPtr, adtree_t *adtreePtr) |
| MAIN (argc, argv) | |
Variables | |
| long | global_params [256] |
| long | global_maxNumEdgeLearned = PARAM_DEFAULT_EDGE |
| long | global_insertPenalty = PARAM_DEFAULT_INSERT |
| float | global_operationQualityFactor = PARAM_DEFAULT_QUALITY |
| #define PARAM_DEFAULT_QUALITY 1.0F |
| enum param_defaults |
| enum param_types |
|
static |
| MAIN | ( | argc | , |
| argv | |||
| ) |
|
static |
|
static |
| long global_insertPenalty = PARAM_DEFAULT_INSERT |
| long global_maxNumEdgeLearned = PARAM_DEFAULT_EDGE |
| float global_operationQualityFactor = PARAM_DEFAULT_QUALITY |
| long global_params[256] |