BAM
Abstract Machine for Bottom-Up Evaluation with the Push Method
Main Page
Related Pages
Classes
Files
File List
File Members
test
load_tc.h
Go to the documentation of this file.
1
// ============================================================================
2
// Project: Deductive Database
3
// Filename: load_tc.h
4
// Purpose: Parse and load data for "parent" relation for tc benchmark.
5
// Last Change: 04.08.2017
6
// Language: C++
7
// EMail: brass@informatik.uni-halle.de
8
// WWW: http://www.informatik.uni-halle.de/~brass/
9
// Address: Feldschloesschen 15, D-06120 Halle (Saale), GERMANY
10
// Copyright: (c) 2015-2017 by Stefan Brass
11
// License: See file "LICENSE" for copying conditions.
12
// Note: There is no warranty at all - this code may contain bugs.
13
// ============================================================================
14
15
23
//=============================================================================
24
// Include File Frame:
25
//=============================================================================
26
27
#ifndef LOAD_TC_INCLUDED
28
#define LOAD_TC_INCLUDED
29
30
31
//=============================================================================
32
// This Module is optional:
33
//=============================================================================
34
35
#ifndef VER_INCLUDED
36
#include "../base/ver.h"
37
#endif
38
39
#if VER_TCFF_LOAD
40
41
42
//=============================================================================
43
// Used Types and Macros:
44
//=============================================================================
45
46
#ifndef STR_INCLUDED
47
#include "../base/str.h"
48
#endif
49
50
#ifndef CHECK_INCLUDED
51
#include "../base/check.h"
52
#endif
53
54
#ifndef LIST_2_INCLUDED
55
#include "../rel/list_2.h"
56
#endif
57
58
#ifndef REL_N_N_INCLUDED
59
#include "../rel/rel_n_n.h"
60
#endif
61
62
//=============================================================================
63
// Load Data, Version for "dblp.data" - Class With Only Static Members:
64
//=============================================================================
65
66
class
load_tc_c
{
67
public
:
68
69
//-----------------------------------------------------------------------------
70
// Static Methods:
71
//-----------------------------------------------------------------------------
72
73
// Load data:
74
static
bool
load(
75
// Name of data file to load:
76
str_t
filename,
77
// Relations for EDB-literals:
78
list_2_t
par_ff,
79
rel_n_n_t
par_fb);
80
81
//-----------------------------------------------------------------------------
82
// This class has no objects:
83
//-----------------------------------------------------------------------------
84
85
private
:
86
87
// Constructor:
88
load_tc_c
();
// Not implemented
89
90
// Destructor:
91
~
load_tc_c
();
// Not implemented
92
93
//-----------------------------------------------------------------------------
94
// Copy-constructor and assignment operator are not supported for this class:
95
//-----------------------------------------------------------------------------
96
97
private
:
98
99
load_tc_c
(
const
load_tc_c
& obj);
// Not implemented
100
load_tc_c
& operator=(
const
load_tc_c
& obj);
// Not implemented
101
102
103
//=============================================================================
104
// End of Class:
105
//=============================================================================
106
107
};
108
109
110
//=============================================================================
111
// End of Conditional Compilation of this Test (VER_TCFF_LOAD):
112
//=============================================================================
113
114
#endif
115
116
117
//=============================================================================
118
// End of Include File:
119
//=============================================================================
120
121
#endif
122
load_tc_c
Definition:
load_tc.h:66
list_2_c
Definition:
list_2.h:58
str_t
const char * str_t
Definition:
str.h:41
rel_n_n_c
Definition:
rel_n_n.h:78
Generated by
1.8.10