@@ -52,10 +52,10 @@ enum CompOp
52
52
enum AttrType
53
53
{
54
54
UNDEFINED,
55
- CHARS, // / 字符串类型
56
- INTS, // / 整数类型(4字节)
57
- FLOATS, // / 浮点数类型(4字节)
58
- BOOLEANS, // / boolean类型,当前不是由parser解析出来的,是程序内部使用的
55
+ CHARS, // /< 字符串类型
56
+ INTS, // /< 整数类型(4字节)
57
+ FLOATS, // /< 浮点数类型(4字节)
58
+ BOOLEANS, // /< boolean类型,当前不是由parser解析出来的,是程序内部使用的
59
59
};
60
60
61
61
/* *
@@ -64,14 +64,14 @@ enum AttrType
64
64
*/
65
65
struct Value
66
66
{
67
- AttrType type; // / 属性的类型
68
- int int_value; // / 如果是整数,这个值就有意义
69
- float float_value; // / 如果是浮点数,这个值就有意义
70
- bool bool_value; // / 如果是boolean值,这个值就有意义
71
- std::string string_value; // / 如果是字符串,这个值就有意义
67
+ AttrType type; // /< 属性的类型
68
+ int int_value; // /< 如果是整数,这个值就有意义
69
+ float float_value; // /< 如果是浮点数,这个值就有意义
70
+ bool bool_value; // /< 如果是boolean值,这个值就有意义
71
+ std::string string_value; // /< 如果是字符串,这个值就有意义
72
72
73
- const char *data () const ; // / 获取值的内存地址
74
- int length (); // / 获取占用的内存长度
73
+ const char *data () const ; // /< 获取值的内存地址
74
+ int length (); // /< 获取占用的内存长度
75
75
};
76
76
77
77
/* *
@@ -105,9 +105,9 @@ struct Condition
105
105
*/
106
106
struct Selects
107
107
{
108
- std::vector<RelAttr> attributes; // / attributes in select clause
109
- std::vector<std::string> relations; // / 查询的表
110
- std::vector<Condition> conditions; // / 查询条件,使用AND串联起来多个条件
108
+ std::vector<RelAttr> attributes; // /< attributes in select clause
109
+ std::vector<std::string> relations; // /< 查询的表
110
+ std::vector<Condition> conditions; // /< 查询条件,使用AND串联起来多个条件
111
111
};
112
112
113
113
/* *
@@ -116,8 +116,8 @@ struct Selects
116
116
*/
117
117
struct Inserts
118
118
{
119
- std::string relation_name; // / Relation to insert into
120
- std::vector<Value> values; // / 要插入的值
119
+ std::string relation_name; // /< Relation to insert into
120
+ std::vector<Value> values; // /< 要插入的值
121
121
};
122
122
123
123
/* *
@@ -135,9 +135,9 @@ struct Deletes
135
135
*/
136
136
struct Updates
137
137
{
138
- std::string relation_name; // Relation to update
139
- std::string attribute_name; // / 更新的字段,仅支持一个字段
140
- Value value; // / 更新的值,仅支持一个字段
138
+ std::string relation_name; // /< Relation to update
139
+ std::string attribute_name; // /< 更新的字段,仅支持一个字段
140
+ Value value; // /< 更新的值,仅支持一个字段
141
141
std::vector<Condition> conditions;
142
142
};
143
143
@@ -149,9 +149,9 @@ struct Updates
149
149
*/
150
150
struct AttrInfo
151
151
{
152
- AttrType type; // / Type of attribute
153
- std::string name; // / Attribute name
154
- size_t length; // / Length of attribute
152
+ AttrType type; // /< Type of attribute
153
+ std::string name; // /< Attribute name
154
+ size_t length; // /< Length of attribute
155
155
};
156
156
157
157
/* *
@@ -191,8 +191,8 @@ struct CreateIndex
191
191
*/
192
192
struct DropIndex
193
193
{
194
- std::string index_name; // Index name
195
- std::string relation_name; // Relation name
194
+ std::string index_name; // /< Index name
195
+ std::string relation_name; // /< Relation name
196
196
};
197
197
198
198
/* *
0 commit comments