/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/bfql/gen_operator.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright (c) YugaByte, Inc. |
2 | | |
3 | | #ifndef YB_UTIL_BFQL_GEN_OPERATOR_H_ |
4 | | #define YB_UTIL_BFQL_GEN_OPERATOR_H_ |
5 | | |
6 | | #include "yb/bfql/base_operator.h" |
7 | | #include "yb/bfql/bfunc.h" |
8 | | |
9 | | #include <vector> |
10 | | |
11 | | using std::vector; |
12 | | |
13 | | namespace yb { |
14 | | namespace bfql { |
15 | | |
16 | | class OPERATOR_NoOp_0 : public BFOperator { |
17 | | public: |
18 | | OPERATOR_NoOp_0( |
19 | | BFOpcode opcode, |
20 | | BFOpcode overloaded_opcode, |
21 | | const BFDecl *op_decl) |
22 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
23 | 28.1k | } |
24 | | |
25 | | template<typename PType, typename RType> |
26 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
27 | 0 | const std::shared_ptr<RType>& result) { |
28 | 0 | return NoOp(); |
29 | 0 | } |
30 | | |
31 | | template<typename PType, typename RType> |
32 | | static Status ExecRaw(const std::vector<PType*>& params, |
33 | 0 | RType *result) { |
34 | 0 | return NoOp(); |
35 | 0 | } |
36 | | |
37 | | template<typename PType, typename RType> |
38 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
39 | 0 | RType *result) { |
40 | 0 | return NoOp(); |
41 | 0 | } |
42 | | }; |
43 | | |
44 | | class OPERATOR_ConvertI8ToI16_1 : public BFOperator { |
45 | | public: |
46 | | OPERATOR_ConvertI8ToI16_1( |
47 | | BFOpcode opcode, |
48 | | BFOpcode overloaded_opcode, |
49 | | const BFDecl *op_decl) |
50 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
51 | 28.1k | } |
52 | | |
53 | | template<typename PType, typename RType> |
54 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
55 | 0 | const std::shared_ptr<RType>& result) { |
56 | 0 | return ConvertI8ToI16(params[0], result); |
57 | 0 | } |
58 | | |
59 | | template<typename PType, typename RType> |
60 | | static Status ExecRaw(const std::vector<PType*>& params, |
61 | 0 | RType *result) { |
62 | 0 | return ConvertI8ToI16(params[0], result); |
63 | 0 | } |
64 | | |
65 | | template<typename PType, typename RType> |
66 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
67 | 0 | RType *result) { |
68 | 0 | return ConvertI8ToI16(&(*params)[0], result); |
69 | 0 | } |
70 | | }; |
71 | | |
72 | | class OPERATOR_ConvertI8ToI32_2 : public BFOperator { |
73 | | public: |
74 | | OPERATOR_ConvertI8ToI32_2( |
75 | | BFOpcode opcode, |
76 | | BFOpcode overloaded_opcode, |
77 | | const BFDecl *op_decl) |
78 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
79 | 28.1k | } |
80 | | |
81 | | template<typename PType, typename RType> |
82 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
83 | 0 | const std::shared_ptr<RType>& result) { |
84 | 0 | return ConvertI8ToI32(params[0], result); |
85 | 0 | } |
86 | | |
87 | | template<typename PType, typename RType> |
88 | | static Status ExecRaw(const std::vector<PType*>& params, |
89 | 0 | RType *result) { |
90 | 0 | return ConvertI8ToI32(params[0], result); |
91 | 0 | } |
92 | | |
93 | | template<typename PType, typename RType> |
94 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
95 | 0 | RType *result) { |
96 | 0 | return ConvertI8ToI32(&(*params)[0], result); |
97 | 0 | } |
98 | | }; |
99 | | |
100 | | class OPERATOR_ConvertI8ToI64_3 : public BFOperator { |
101 | | public: |
102 | | OPERATOR_ConvertI8ToI64_3( |
103 | | BFOpcode opcode, |
104 | | BFOpcode overloaded_opcode, |
105 | | const BFDecl *op_decl) |
106 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
107 | 28.1k | } |
108 | | |
109 | | template<typename PType, typename RType> |
110 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
111 | 0 | const std::shared_ptr<RType>& result) { |
112 | 0 | return ConvertI8ToI64(params[0], result); |
113 | 0 | } |
114 | | |
115 | | template<typename PType, typename RType> |
116 | | static Status ExecRaw(const std::vector<PType*>& params, |
117 | 0 | RType *result) { |
118 | 0 | return ConvertI8ToI64(params[0], result); |
119 | 0 | } |
120 | | |
121 | | template<typename PType, typename RType> |
122 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
123 | 0 | RType *result) { |
124 | 0 | return ConvertI8ToI64(&(*params)[0], result); |
125 | 0 | } |
126 | | }; |
127 | | |
128 | | class OPERATOR_ConvertI8ToFloat_4 : public BFOperator { |
129 | | public: |
130 | | OPERATOR_ConvertI8ToFloat_4( |
131 | | BFOpcode opcode, |
132 | | BFOpcode overloaded_opcode, |
133 | | const BFDecl *op_decl) |
134 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
135 | 28.1k | } |
136 | | |
137 | | template<typename PType, typename RType> |
138 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
139 | 0 | const std::shared_ptr<RType>& result) { |
140 | 0 | return ConvertI8ToFloat(params[0], result); |
141 | 0 | } |
142 | | |
143 | | template<typename PType, typename RType> |
144 | | static Status ExecRaw(const std::vector<PType*>& params, |
145 | 0 | RType *result) { |
146 | 0 | return ConvertI8ToFloat(params[0], result); |
147 | 0 | } |
148 | | |
149 | | template<typename PType, typename RType> |
150 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
151 | 0 | RType *result) { |
152 | 0 | return ConvertI8ToFloat(&(*params)[0], result); |
153 | 0 | } |
154 | | }; |
155 | | |
156 | | class OPERATOR_ConvertI8ToDouble_5 : public BFOperator { |
157 | | public: |
158 | | OPERATOR_ConvertI8ToDouble_5( |
159 | | BFOpcode opcode, |
160 | | BFOpcode overloaded_opcode, |
161 | | const BFDecl *op_decl) |
162 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
163 | 28.1k | } |
164 | | |
165 | | template<typename PType, typename RType> |
166 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
167 | 0 | const std::shared_ptr<RType>& result) { |
168 | 0 | return ConvertI8ToDouble(params[0], result); |
169 | 0 | } |
170 | | |
171 | | template<typename PType, typename RType> |
172 | | static Status ExecRaw(const std::vector<PType*>& params, |
173 | 0 | RType *result) { |
174 | 0 | return ConvertI8ToDouble(params[0], result); |
175 | 0 | } |
176 | | |
177 | | template<typename PType, typename RType> |
178 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
179 | 0 | RType *result) { |
180 | 0 | return ConvertI8ToDouble(&(*params)[0], result); |
181 | 0 | } |
182 | | }; |
183 | | |
184 | | class OPERATOR_ConvertI16ToI8_6 : public BFOperator { |
185 | | public: |
186 | | OPERATOR_ConvertI16ToI8_6( |
187 | | BFOpcode opcode, |
188 | | BFOpcode overloaded_opcode, |
189 | | const BFDecl *op_decl) |
190 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
191 | 28.1k | } |
192 | | |
193 | | template<typename PType, typename RType> |
194 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
195 | 0 | const std::shared_ptr<RType>& result) { |
196 | 0 | return ConvertI16ToI8(params[0], result); |
197 | 0 | } |
198 | | |
199 | | template<typename PType, typename RType> |
200 | | static Status ExecRaw(const std::vector<PType*>& params, |
201 | 0 | RType *result) { |
202 | 0 | return ConvertI16ToI8(params[0], result); |
203 | 0 | } |
204 | | |
205 | | template<typename PType, typename RType> |
206 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
207 | 0 | RType *result) { |
208 | 0 | return ConvertI16ToI8(&(*params)[0], result); |
209 | 0 | } |
210 | | }; |
211 | | |
212 | | class OPERATOR_ConvertI16ToI32_7 : public BFOperator { |
213 | | public: |
214 | | OPERATOR_ConvertI16ToI32_7( |
215 | | BFOpcode opcode, |
216 | | BFOpcode overloaded_opcode, |
217 | | const BFDecl *op_decl) |
218 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
219 | 28.1k | } |
220 | | |
221 | | template<typename PType, typename RType> |
222 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
223 | 0 | const std::shared_ptr<RType>& result) { |
224 | 0 | return ConvertI16ToI32(params[0], result); |
225 | 0 | } |
226 | | |
227 | | template<typename PType, typename RType> |
228 | | static Status ExecRaw(const std::vector<PType*>& params, |
229 | 0 | RType *result) { |
230 | 0 | return ConvertI16ToI32(params[0], result); |
231 | 0 | } |
232 | | |
233 | | template<typename PType, typename RType> |
234 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
235 | 0 | RType *result) { |
236 | 0 | return ConvertI16ToI32(&(*params)[0], result); |
237 | 0 | } |
238 | | }; |
239 | | |
240 | | class OPERATOR_ConvertI16ToI64_8 : public BFOperator { |
241 | | public: |
242 | | OPERATOR_ConvertI16ToI64_8( |
243 | | BFOpcode opcode, |
244 | | BFOpcode overloaded_opcode, |
245 | | const BFDecl *op_decl) |
246 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
247 | 28.1k | } |
248 | | |
249 | | template<typename PType, typename RType> |
250 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
251 | 0 | const std::shared_ptr<RType>& result) { |
252 | 0 | return ConvertI16ToI64(params[0], result); |
253 | 0 | } |
254 | | |
255 | | template<typename PType, typename RType> |
256 | | static Status ExecRaw(const std::vector<PType*>& params, |
257 | 0 | RType *result) { |
258 | 0 | return ConvertI16ToI64(params[0], result); |
259 | 0 | } |
260 | | |
261 | | template<typename PType, typename RType> |
262 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
263 | 0 | RType *result) { |
264 | 0 | return ConvertI16ToI64(&(*params)[0], result); |
265 | 0 | } |
266 | | }; |
267 | | |
268 | | class OPERATOR_ConvertI16ToFloat_9 : public BFOperator { |
269 | | public: |
270 | | OPERATOR_ConvertI16ToFloat_9( |
271 | | BFOpcode opcode, |
272 | | BFOpcode overloaded_opcode, |
273 | | const BFDecl *op_decl) |
274 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
275 | 28.1k | } |
276 | | |
277 | | template<typename PType, typename RType> |
278 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
279 | 0 | const std::shared_ptr<RType>& result) { |
280 | 0 | return ConvertI16ToFloat(params[0], result); |
281 | 0 | } |
282 | | |
283 | | template<typename PType, typename RType> |
284 | | static Status ExecRaw(const std::vector<PType*>& params, |
285 | 0 | RType *result) { |
286 | 0 | return ConvertI16ToFloat(params[0], result); |
287 | 0 | } |
288 | | |
289 | | template<typename PType, typename RType> |
290 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
291 | 0 | RType *result) { |
292 | 0 | return ConvertI16ToFloat(&(*params)[0], result); |
293 | 0 | } |
294 | | }; |
295 | | |
296 | | class OPERATOR_ConvertI16ToDouble_10 : public BFOperator { |
297 | | public: |
298 | | OPERATOR_ConvertI16ToDouble_10( |
299 | | BFOpcode opcode, |
300 | | BFOpcode overloaded_opcode, |
301 | | const BFDecl *op_decl) |
302 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
303 | 28.1k | } |
304 | | |
305 | | template<typename PType, typename RType> |
306 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
307 | 0 | const std::shared_ptr<RType>& result) { |
308 | 0 | return ConvertI16ToDouble(params[0], result); |
309 | 0 | } |
310 | | |
311 | | template<typename PType, typename RType> |
312 | | static Status ExecRaw(const std::vector<PType*>& params, |
313 | 0 | RType *result) { |
314 | 0 | return ConvertI16ToDouble(params[0], result); |
315 | 0 | } |
316 | | |
317 | | template<typename PType, typename RType> |
318 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
319 | 0 | RType *result) { |
320 | 0 | return ConvertI16ToDouble(&(*params)[0], result); |
321 | 0 | } |
322 | | }; |
323 | | |
324 | | class OPERATOR_ConvertI32ToI8_11 : public BFOperator { |
325 | | public: |
326 | | OPERATOR_ConvertI32ToI8_11( |
327 | | BFOpcode opcode, |
328 | | BFOpcode overloaded_opcode, |
329 | | const BFDecl *op_decl) |
330 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
331 | 28.1k | } |
332 | | |
333 | | template<typename PType, typename RType> |
334 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
335 | 0 | const std::shared_ptr<RType>& result) { |
336 | 0 | return ConvertI32ToI8(params[0], result); |
337 | 0 | } |
338 | | |
339 | | template<typename PType, typename RType> |
340 | | static Status ExecRaw(const std::vector<PType*>& params, |
341 | 0 | RType *result) { |
342 | 0 | return ConvertI32ToI8(params[0], result); |
343 | 0 | } |
344 | | |
345 | | template<typename PType, typename RType> |
346 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
347 | 0 | RType *result) { |
348 | 0 | return ConvertI32ToI8(&(*params)[0], result); |
349 | 0 | } |
350 | | }; |
351 | | |
352 | | class OPERATOR_ConvertI32ToI16_12 : public BFOperator { |
353 | | public: |
354 | | OPERATOR_ConvertI32ToI16_12( |
355 | | BFOpcode opcode, |
356 | | BFOpcode overloaded_opcode, |
357 | | const BFDecl *op_decl) |
358 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
359 | 28.1k | } |
360 | | |
361 | | template<typename PType, typename RType> |
362 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
363 | 0 | const std::shared_ptr<RType>& result) { |
364 | 0 | return ConvertI32ToI16(params[0], result); |
365 | 0 | } |
366 | | |
367 | | template<typename PType, typename RType> |
368 | | static Status ExecRaw(const std::vector<PType*>& params, |
369 | 0 | RType *result) { |
370 | 0 | return ConvertI32ToI16(params[0], result); |
371 | 0 | } |
372 | | |
373 | | template<typename PType, typename RType> |
374 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
375 | 0 | RType *result) { |
376 | 0 | return ConvertI32ToI16(&(*params)[0], result); |
377 | 0 | } |
378 | | }; |
379 | | |
380 | | class OPERATOR_ConvertI32ToI64_13 : public BFOperator { |
381 | | public: |
382 | | OPERATOR_ConvertI32ToI64_13( |
383 | | BFOpcode opcode, |
384 | | BFOpcode overloaded_opcode, |
385 | | const BFDecl *op_decl) |
386 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
387 | 28.1k | } |
388 | | |
389 | | template<typename PType, typename RType> |
390 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
391 | 0 | const std::shared_ptr<RType>& result) { |
392 | 0 | return ConvertI32ToI64(params[0], result); |
393 | 0 | } |
394 | | |
395 | | template<typename PType, typename RType> |
396 | | static Status ExecRaw(const std::vector<PType*>& params, |
397 | 0 | RType *result) { |
398 | 0 | return ConvertI32ToI64(params[0], result); |
399 | 0 | } |
400 | | |
401 | | template<typename PType, typename RType> |
402 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
403 | 16 | RType *result) { |
404 | 16 | return ConvertI32ToI64(&(*params)[0], result); |
405 | 16 | } |
406 | | }; |
407 | | |
408 | | class OPERATOR_ConvertI32ToFloat_14 : public BFOperator { |
409 | | public: |
410 | | OPERATOR_ConvertI32ToFloat_14( |
411 | | BFOpcode opcode, |
412 | | BFOpcode overloaded_opcode, |
413 | | const BFDecl *op_decl) |
414 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
415 | 28.1k | } |
416 | | |
417 | | template<typename PType, typename RType> |
418 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
419 | 0 | const std::shared_ptr<RType>& result) { |
420 | 0 | return ConvertI32ToFloat(params[0], result); |
421 | 0 | } |
422 | | |
423 | | template<typename PType, typename RType> |
424 | | static Status ExecRaw(const std::vector<PType*>& params, |
425 | 0 | RType *result) { |
426 | 0 | return ConvertI32ToFloat(params[0], result); |
427 | 0 | } |
428 | | |
429 | | template<typename PType, typename RType> |
430 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
431 | 0 | RType *result) { |
432 | 0 | return ConvertI32ToFloat(&(*params)[0], result); |
433 | 0 | } |
434 | | }; |
435 | | |
436 | | class OPERATOR_ConvertI32ToDouble_15 : public BFOperator { |
437 | | public: |
438 | | OPERATOR_ConvertI32ToDouble_15( |
439 | | BFOpcode opcode, |
440 | | BFOpcode overloaded_opcode, |
441 | | const BFDecl *op_decl) |
442 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
443 | 28.1k | } |
444 | | |
445 | | template<typename PType, typename RType> |
446 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
447 | 0 | const std::shared_ptr<RType>& result) { |
448 | 0 | return ConvertI32ToDouble(params[0], result); |
449 | 0 | } |
450 | | |
451 | | template<typename PType, typename RType> |
452 | | static Status ExecRaw(const std::vector<PType*>& params, |
453 | 0 | RType *result) { |
454 | 0 | return ConvertI32ToDouble(params[0], result); |
455 | 0 | } |
456 | | |
457 | | template<typename PType, typename RType> |
458 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
459 | 0 | RType *result) { |
460 | 0 | return ConvertI32ToDouble(&(*params)[0], result); |
461 | 0 | } |
462 | | }; |
463 | | |
464 | | class OPERATOR_ConvertI64ToI8_16 : public BFOperator { |
465 | | public: |
466 | | OPERATOR_ConvertI64ToI8_16( |
467 | | BFOpcode opcode, |
468 | | BFOpcode overloaded_opcode, |
469 | | const BFDecl *op_decl) |
470 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
471 | 28.1k | } |
472 | | |
473 | | template<typename PType, typename RType> |
474 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
475 | 0 | const std::shared_ptr<RType>& result) { |
476 | 0 | return ConvertI64ToI8(params[0], result); |
477 | 0 | } |
478 | | |
479 | | template<typename PType, typename RType> |
480 | | static Status ExecRaw(const std::vector<PType*>& params, |
481 | 0 | RType *result) { |
482 | 0 | return ConvertI64ToI8(params[0], result); |
483 | 0 | } |
484 | | |
485 | | template<typename PType, typename RType> |
486 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
487 | 2 | RType *result) { |
488 | 2 | return ConvertI64ToI8(&(*params)[0], result); |
489 | 2 | } |
490 | | }; |
491 | | |
492 | | class OPERATOR_ConvertI64ToI16_17 : public BFOperator { |
493 | | public: |
494 | | OPERATOR_ConvertI64ToI16_17( |
495 | | BFOpcode opcode, |
496 | | BFOpcode overloaded_opcode, |
497 | | const BFDecl *op_decl) |
498 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
499 | 28.1k | } |
500 | | |
501 | | template<typename PType, typename RType> |
502 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
503 | 0 | const std::shared_ptr<RType>& result) { |
504 | 0 | return ConvertI64ToI16(params[0], result); |
505 | 0 | } |
506 | | |
507 | | template<typename PType, typename RType> |
508 | | static Status ExecRaw(const std::vector<PType*>& params, |
509 | 0 | RType *result) { |
510 | 0 | return ConvertI64ToI16(params[0], result); |
511 | 0 | } |
512 | | |
513 | | template<typename PType, typename RType> |
514 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
515 | 2 | RType *result) { |
516 | 2 | return ConvertI64ToI16(&(*params)[0], result); |
517 | 2 | } |
518 | | }; |
519 | | |
520 | | class OPERATOR_ConvertI64ToI32_18 : public BFOperator { |
521 | | public: |
522 | | OPERATOR_ConvertI64ToI32_18( |
523 | | BFOpcode opcode, |
524 | | BFOpcode overloaded_opcode, |
525 | | const BFDecl *op_decl) |
526 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
527 | 28.1k | } |
528 | | |
529 | | template<typename PType, typename RType> |
530 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
531 | 0 | const std::shared_ptr<RType>& result) { |
532 | 0 | return ConvertI64ToI32(params[0], result); |
533 | 0 | } |
534 | | |
535 | | template<typename PType, typename RType> |
536 | | static Status ExecRaw(const std::vector<PType*>& params, |
537 | 0 | RType *result) { |
538 | 0 | return ConvertI64ToI32(params[0], result); |
539 | 0 | } |
540 | | |
541 | | template<typename PType, typename RType> |
542 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
543 | 36 | RType *result) { |
544 | 36 | return ConvertI64ToI32(&(*params)[0], result); |
545 | 36 | } |
546 | | }; |
547 | | |
548 | | class OPERATOR_ConvertI64ToFloat_19 : public BFOperator { |
549 | | public: |
550 | | OPERATOR_ConvertI64ToFloat_19( |
551 | | BFOpcode opcode, |
552 | | BFOpcode overloaded_opcode, |
553 | | const BFDecl *op_decl) |
554 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
555 | 28.1k | } |
556 | | |
557 | | template<typename PType, typename RType> |
558 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
559 | 0 | const std::shared_ptr<RType>& result) { |
560 | 0 | return ConvertI64ToFloat(params[0], result); |
561 | 0 | } |
562 | | |
563 | | template<typename PType, typename RType> |
564 | | static Status ExecRaw(const std::vector<PType*>& params, |
565 | 0 | RType *result) { |
566 | 0 | return ConvertI64ToFloat(params[0], result); |
567 | 0 | } |
568 | | |
569 | | template<typename PType, typename RType> |
570 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
571 | 0 | RType *result) { |
572 | 0 | return ConvertI64ToFloat(&(*params)[0], result); |
573 | 0 | } |
574 | | }; |
575 | | |
576 | | class OPERATOR_ConvertI64ToDouble_20 : public BFOperator { |
577 | | public: |
578 | | OPERATOR_ConvertI64ToDouble_20( |
579 | | BFOpcode opcode, |
580 | | BFOpcode overloaded_opcode, |
581 | | const BFDecl *op_decl) |
582 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
583 | 28.1k | } |
584 | | |
585 | | template<typename PType, typename RType> |
586 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
587 | 0 | const std::shared_ptr<RType>& result) { |
588 | 0 | return ConvertI64ToDouble(params[0], result); |
589 | 0 | } |
590 | | |
591 | | template<typename PType, typename RType> |
592 | | static Status ExecRaw(const std::vector<PType*>& params, |
593 | 0 | RType *result) { |
594 | 0 | return ConvertI64ToDouble(params[0], result); |
595 | 0 | } |
596 | | |
597 | | template<typename PType, typename RType> |
598 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
599 | 0 | RType *result) { |
600 | 0 | return ConvertI64ToDouble(&(*params)[0], result); |
601 | 0 | } |
602 | | }; |
603 | | |
604 | | class OPERATOR_ConvertDoubleToFloat_21 : public BFOperator { |
605 | | public: |
606 | | OPERATOR_ConvertDoubleToFloat_21( |
607 | | BFOpcode opcode, |
608 | | BFOpcode overloaded_opcode, |
609 | | const BFDecl *op_decl) |
610 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
611 | 28.1k | } |
612 | | |
613 | | template<typename PType, typename RType> |
614 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
615 | 0 | const std::shared_ptr<RType>& result) { |
616 | 0 | return ConvertDoubleToFloat(params[0], result); |
617 | 0 | } |
618 | | |
619 | | template<typename PType, typename RType> |
620 | | static Status ExecRaw(const std::vector<PType*>& params, |
621 | 0 | RType *result) { |
622 | 0 | return ConvertDoubleToFloat(params[0], result); |
623 | 0 | } |
624 | | |
625 | | template<typename PType, typename RType> |
626 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
627 | 0 | RType *result) { |
628 | 0 | return ConvertDoubleToFloat(&(*params)[0], result); |
629 | 0 | } |
630 | | }; |
631 | | |
632 | | class OPERATOR_ConvertFloatToDouble_22 : public BFOperator { |
633 | | public: |
634 | | OPERATOR_ConvertFloatToDouble_22( |
635 | | BFOpcode opcode, |
636 | | BFOpcode overloaded_opcode, |
637 | | const BFDecl *op_decl) |
638 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
639 | 28.1k | } |
640 | | |
641 | | template<typename PType, typename RType> |
642 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
643 | 0 | const std::shared_ptr<RType>& result) { |
644 | 0 | return ConvertFloatToDouble(params[0], result); |
645 | 0 | } |
646 | | |
647 | | template<typename PType, typename RType> |
648 | | static Status ExecRaw(const std::vector<PType*>& params, |
649 | 0 | RType *result) { |
650 | 0 | return ConvertFloatToDouble(params[0], result); |
651 | 0 | } |
652 | | |
653 | | template<typename PType, typename RType> |
654 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
655 | 0 | RType *result) { |
656 | 0 | return ConvertFloatToDouble(&(*params)[0], result); |
657 | 0 | } |
658 | | }; |
659 | | |
660 | | class OPERATOR_ConvertStringToBlob_23 : public BFOperator { |
661 | | public: |
662 | | OPERATOR_ConvertStringToBlob_23( |
663 | | BFOpcode opcode, |
664 | | BFOpcode overloaded_opcode, |
665 | | const BFDecl *op_decl) |
666 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
667 | 28.1k | } |
668 | | |
669 | | template<typename PType, typename RType> |
670 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
671 | 0 | const std::shared_ptr<RType>& result) { |
672 | 0 | return ConvertStringToBlob(params[0], result); |
673 | 0 | } |
674 | | |
675 | | template<typename PType, typename RType> |
676 | | static Status ExecRaw(const std::vector<PType*>& params, |
677 | 0 | RType *result) { |
678 | 0 | return ConvertStringToBlob(params[0], result); |
679 | 0 | } |
680 | | |
681 | | template<typename PType, typename RType> |
682 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
683 | 6 | RType *result) { |
684 | 6 | return ConvertStringToBlob(&(*params)[0], result); |
685 | 6 | } |
686 | | }; |
687 | | |
688 | | class OPERATOR_ConvertStringToBlob_24 : public BFOperator { |
689 | | public: |
690 | | OPERATOR_ConvertStringToBlob_24( |
691 | | BFOpcode opcode, |
692 | | BFOpcode overloaded_opcode, |
693 | | const BFDecl *op_decl) |
694 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
695 | 28.1k | } |
696 | | |
697 | | template<typename PType, typename RType> |
698 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
699 | 0 | const std::shared_ptr<RType>& result) { |
700 | 0 | return ConvertStringToBlob(params[0], result); |
701 | 0 | } |
702 | | |
703 | | template<typename PType, typename RType> |
704 | | static Status ExecRaw(const std::vector<PType*>& params, |
705 | 0 | RType *result) { |
706 | 0 | return ConvertStringToBlob(params[0], result); |
707 | 0 | } |
708 | | |
709 | | template<typename PType, typename RType> |
710 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
711 | 15 | RType *result) { |
712 | 15 | return ConvertStringToBlob(&(*params)[0], result); |
713 | 15 | } |
714 | | }; |
715 | | |
716 | | class OPERATOR_ConvertBoolToBlob_25 : public BFOperator { |
717 | | public: |
718 | | OPERATOR_ConvertBoolToBlob_25( |
719 | | BFOpcode opcode, |
720 | | BFOpcode overloaded_opcode, |
721 | | const BFDecl *op_decl) |
722 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
723 | 28.1k | } |
724 | | |
725 | | template<typename PType, typename RType> |
726 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
727 | 0 | const std::shared_ptr<RType>& result) { |
728 | 0 | return ConvertBoolToBlob(params[0], result); |
729 | 0 | } |
730 | | |
731 | | template<typename PType, typename RType> |
732 | | static Status ExecRaw(const std::vector<PType*>& params, |
733 | 0 | RType *result) { |
734 | 0 | return ConvertBoolToBlob(params[0], result); |
735 | 0 | } |
736 | | |
737 | | template<typename PType, typename RType> |
738 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
739 | 4 | RType *result) { |
740 | 4 | return ConvertBoolToBlob(&(*params)[0], result); |
741 | 4 | } |
742 | | }; |
743 | | |
744 | | class OPERATOR_ConvertInt8ToBlob_26 : public BFOperator { |
745 | | public: |
746 | | OPERATOR_ConvertInt8ToBlob_26( |
747 | | BFOpcode opcode, |
748 | | BFOpcode overloaded_opcode, |
749 | | const BFDecl *op_decl) |
750 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
751 | 28.1k | } |
752 | | |
753 | | template<typename PType, typename RType> |
754 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
755 | 0 | const std::shared_ptr<RType>& result) { |
756 | 0 | return ConvertInt8ToBlob(params[0], result); |
757 | 0 | } |
758 | | |
759 | | template<typename PType, typename RType> |
760 | | static Status ExecRaw(const std::vector<PType*>& params, |
761 | 0 | RType *result) { |
762 | 0 | return ConvertInt8ToBlob(params[0], result); |
763 | 0 | } |
764 | | |
765 | | template<typename PType, typename RType> |
766 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
767 | 6 | RType *result) { |
768 | 6 | return ConvertInt8ToBlob(&(*params)[0], result); |
769 | 6 | } |
770 | | }; |
771 | | |
772 | | class OPERATOR_ConvertInt16ToBlob_27 : public BFOperator { |
773 | | public: |
774 | | OPERATOR_ConvertInt16ToBlob_27( |
775 | | BFOpcode opcode, |
776 | | BFOpcode overloaded_opcode, |
777 | | const BFDecl *op_decl) |
778 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
779 | 28.1k | } |
780 | | |
781 | | template<typename PType, typename RType> |
782 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
783 | 0 | const std::shared_ptr<RType>& result) { |
784 | 0 | return ConvertInt16ToBlob(params[0], result); |
785 | 0 | } |
786 | | |
787 | | template<typename PType, typename RType> |
788 | | static Status ExecRaw(const std::vector<PType*>& params, |
789 | 0 | RType *result) { |
790 | 0 | return ConvertInt16ToBlob(params[0], result); |
791 | 0 | } |
792 | | |
793 | | template<typename PType, typename RType> |
794 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
795 | 6 | RType *result) { |
796 | 6 | return ConvertInt16ToBlob(&(*params)[0], result); |
797 | 6 | } |
798 | | }; |
799 | | |
800 | | class OPERATOR_ConvertInt32ToBlob_28 : public BFOperator { |
801 | | public: |
802 | | OPERATOR_ConvertInt32ToBlob_28( |
803 | | BFOpcode opcode, |
804 | | BFOpcode overloaded_opcode, |
805 | | const BFDecl *op_decl) |
806 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
807 | 28.1k | } |
808 | | |
809 | | template<typename PType, typename RType> |
810 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
811 | 0 | const std::shared_ptr<RType>& result) { |
812 | 0 | return ConvertInt32ToBlob(params[0], result); |
813 | 0 | } |
814 | | |
815 | | template<typename PType, typename RType> |
816 | | static Status ExecRaw(const std::vector<PType*>& params, |
817 | 0 | RType *result) { |
818 | 0 | return ConvertInt32ToBlob(params[0], result); |
819 | 0 | } |
820 | | |
821 | | template<typename PType, typename RType> |
822 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
823 | 11 | RType *result) { |
824 | 11 | return ConvertInt32ToBlob(&(*params)[0], result); |
825 | 11 | } |
826 | | }; |
827 | | |
828 | | class OPERATOR_ConvertInt64ToBlob_29 : public BFOperator { |
829 | | public: |
830 | | OPERATOR_ConvertInt64ToBlob_29( |
831 | | BFOpcode opcode, |
832 | | BFOpcode overloaded_opcode, |
833 | | const BFDecl *op_decl) |
834 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
835 | 28.1k | } |
836 | | |
837 | | template<typename PType, typename RType> |
838 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
839 | 0 | const std::shared_ptr<RType>& result) { |
840 | 0 | return ConvertInt64ToBlob(params[0], result); |
841 | 0 | } |
842 | | |
843 | | template<typename PType, typename RType> |
844 | | static Status ExecRaw(const std::vector<PType*>& params, |
845 | 0 | RType *result) { |
846 | 0 | return ConvertInt64ToBlob(params[0], result); |
847 | 0 | } |
848 | | |
849 | | template<typename PType, typename RType> |
850 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
851 | 6 | RType *result) { |
852 | 6 | return ConvertInt64ToBlob(&(*params)[0], result); |
853 | 6 | } |
854 | | }; |
855 | | |
856 | | class OPERATOR_ConvertInt64ToBlob_30 : public BFOperator { |
857 | | public: |
858 | | OPERATOR_ConvertInt64ToBlob_30( |
859 | | BFOpcode opcode, |
860 | | BFOpcode overloaded_opcode, |
861 | | const BFDecl *op_decl) |
862 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
863 | 28.1k | } |
864 | | |
865 | | template<typename PType, typename RType> |
866 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
867 | 0 | const std::shared_ptr<RType>& result) { |
868 | 0 | return ConvertInt64ToBlob(params[0], result); |
869 | 0 | } |
870 | | |
871 | | template<typename PType, typename RType> |
872 | | static Status ExecRaw(const std::vector<PType*>& params, |
873 | 0 | RType *result) { |
874 | 0 | return ConvertInt64ToBlob(params[0], result); |
875 | 0 | } |
876 | | |
877 | | template<typename PType, typename RType> |
878 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
879 | 0 | RType *result) { |
880 | 0 | return ConvertInt64ToBlob(&(*params)[0], result); |
881 | 0 | } |
882 | | }; |
883 | | |
884 | | class OPERATOR_ConvertVarintToBlob_31 : public BFOperator { |
885 | | public: |
886 | | OPERATOR_ConvertVarintToBlob_31( |
887 | | BFOpcode opcode, |
888 | | BFOpcode overloaded_opcode, |
889 | | const BFDecl *op_decl) |
890 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
891 | 28.1k | } |
892 | | |
893 | | template<typename PType, typename RType> |
894 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
895 | 0 | const std::shared_ptr<RType>& result) { |
896 | 0 | return ConvertVarintToBlob(params[0], result); |
897 | 0 | } |
898 | | |
899 | | template<typename PType, typename RType> |
900 | | static Status ExecRaw(const std::vector<PType*>& params, |
901 | 0 | RType *result) { |
902 | 0 | return ConvertVarintToBlob(params[0], result); |
903 | 0 | } |
904 | | |
905 | | template<typename PType, typename RType> |
906 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
907 | 0 | RType *result) { |
908 | 0 | return ConvertVarintToBlob(&(*params)[0], result); |
909 | 0 | } |
910 | | }; |
911 | | |
912 | | class OPERATOR_ConvertFloatToBlob_32 : public BFOperator { |
913 | | public: |
914 | | OPERATOR_ConvertFloatToBlob_32( |
915 | | BFOpcode opcode, |
916 | | BFOpcode overloaded_opcode, |
917 | | const BFDecl *op_decl) |
918 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
919 | 28.1k | } |
920 | | |
921 | | template<typename PType, typename RType> |
922 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
923 | 0 | const std::shared_ptr<RType>& result) { |
924 | 0 | return ConvertFloatToBlob(params[0], result); |
925 | 0 | } |
926 | | |
927 | | template<typename PType, typename RType> |
928 | | static Status ExecRaw(const std::vector<PType*>& params, |
929 | 0 | RType *result) { |
930 | 0 | return ConvertFloatToBlob(params[0], result); |
931 | 0 | } |
932 | | |
933 | | template<typename PType, typename RType> |
934 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
935 | 6 | RType *result) { |
936 | 6 | return ConvertFloatToBlob(&(*params)[0], result); |
937 | 6 | } |
938 | | }; |
939 | | |
940 | | class OPERATOR_ConvertDoubleToBlob_33 : public BFOperator { |
941 | | public: |
942 | | OPERATOR_ConvertDoubleToBlob_33( |
943 | | BFOpcode opcode, |
944 | | BFOpcode overloaded_opcode, |
945 | | const BFDecl *op_decl) |
946 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
947 | 28.1k | } |
948 | | |
949 | | template<typename PType, typename RType> |
950 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
951 | 0 | const std::shared_ptr<RType>& result) { |
952 | 0 | return ConvertDoubleToBlob(params[0], result); |
953 | 0 | } |
954 | | |
955 | | template<typename PType, typename RType> |
956 | | static Status ExecRaw(const std::vector<PType*>& params, |
957 | 0 | RType *result) { |
958 | 0 | return ConvertDoubleToBlob(params[0], result); |
959 | 0 | } |
960 | | |
961 | | template<typename PType, typename RType> |
962 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
963 | 6 | RType *result) { |
964 | 6 | return ConvertDoubleToBlob(&(*params)[0], result); |
965 | 6 | } |
966 | | }; |
967 | | |
968 | | class OPERATOR_ConvertDecimalToBlob_34 : public BFOperator { |
969 | | public: |
970 | | OPERATOR_ConvertDecimalToBlob_34( |
971 | | BFOpcode opcode, |
972 | | BFOpcode overloaded_opcode, |
973 | | const BFDecl *op_decl) |
974 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
975 | 28.1k | } |
976 | | |
977 | | template<typename PType, typename RType> |
978 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
979 | 0 | const std::shared_ptr<RType>& result) { |
980 | 0 | return ConvertDecimalToBlob(params[0], result); |
981 | 0 | } |
982 | | |
983 | | template<typename PType, typename RType> |
984 | | static Status ExecRaw(const std::vector<PType*>& params, |
985 | 0 | RType *result) { |
986 | 0 | return ConvertDecimalToBlob(params[0], result); |
987 | 0 | } |
988 | | |
989 | | template<typename PType, typename RType> |
990 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
991 | 0 | RType *result) { |
992 | 0 | return ConvertDecimalToBlob(&(*params)[0], result); |
993 | 0 | } |
994 | | }; |
995 | | |
996 | | class OPERATOR_ConvertDateToBlob_35 : public BFOperator { |
997 | | public: |
998 | | OPERATOR_ConvertDateToBlob_35( |
999 | | BFOpcode opcode, |
1000 | | BFOpcode overloaded_opcode, |
1001 | | const BFDecl *op_decl) |
1002 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1003 | 28.1k | } |
1004 | | |
1005 | | template<typename PType, typename RType> |
1006 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1007 | 0 | const std::shared_ptr<RType>& result) { |
1008 | 0 | return ConvertDateToBlob(params[0], result); |
1009 | 0 | } |
1010 | | |
1011 | | template<typename PType, typename RType> |
1012 | | static Status ExecRaw(const std::vector<PType*>& params, |
1013 | 0 | RType *result) { |
1014 | 0 | return ConvertDateToBlob(params[0], result); |
1015 | 0 | } |
1016 | | |
1017 | | template<typename PType, typename RType> |
1018 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1019 | 0 | RType *result) { |
1020 | 0 | return ConvertDateToBlob(&(*params)[0], result); |
1021 | 0 | } |
1022 | | }; |
1023 | | |
1024 | | class OPERATOR_ConvertTimeToBlob_36 : public BFOperator { |
1025 | | public: |
1026 | | OPERATOR_ConvertTimeToBlob_36( |
1027 | | BFOpcode opcode, |
1028 | | BFOpcode overloaded_opcode, |
1029 | | const BFDecl *op_decl) |
1030 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1031 | 28.1k | } |
1032 | | |
1033 | | template<typename PType, typename RType> |
1034 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1035 | 0 | const std::shared_ptr<RType>& result) { |
1036 | 0 | return ConvertTimeToBlob(params[0], result); |
1037 | 0 | } |
1038 | | |
1039 | | template<typename PType, typename RType> |
1040 | | static Status ExecRaw(const std::vector<PType*>& params, |
1041 | 0 | RType *result) { |
1042 | 0 | return ConvertTimeToBlob(params[0], result); |
1043 | 0 | } |
1044 | | |
1045 | | template<typename PType, typename RType> |
1046 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1047 | 0 | RType *result) { |
1048 | 0 | return ConvertTimeToBlob(&(*params)[0], result); |
1049 | 0 | } |
1050 | | }; |
1051 | | |
1052 | | class OPERATOR_ConvertTimestampToBlob_37 : public BFOperator { |
1053 | | public: |
1054 | | OPERATOR_ConvertTimestampToBlob_37( |
1055 | | BFOpcode opcode, |
1056 | | BFOpcode overloaded_opcode, |
1057 | | const BFDecl *op_decl) |
1058 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1059 | 28.1k | } |
1060 | | |
1061 | | template<typename PType, typename RType> |
1062 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1063 | 0 | const std::shared_ptr<RType>& result) { |
1064 | 0 | return ConvertTimestampToBlob(params[0], result); |
1065 | 0 | } |
1066 | | |
1067 | | template<typename PType, typename RType> |
1068 | | static Status ExecRaw(const std::vector<PType*>& params, |
1069 | 0 | RType *result) { |
1070 | 0 | return ConvertTimestampToBlob(params[0], result); |
1071 | 0 | } |
1072 | | |
1073 | | template<typename PType, typename RType> |
1074 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1075 | 8 | RType *result) { |
1076 | 8 | return ConvertTimestampToBlob(&(*params)[0], result); |
1077 | 8 | } |
1078 | | }; |
1079 | | |
1080 | | class OPERATOR_ConvertUuidToBlob_38 : public BFOperator { |
1081 | | public: |
1082 | | OPERATOR_ConvertUuidToBlob_38( |
1083 | | BFOpcode opcode, |
1084 | | BFOpcode overloaded_opcode, |
1085 | | const BFDecl *op_decl) |
1086 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1087 | 28.1k | } |
1088 | | |
1089 | | template<typename PType, typename RType> |
1090 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1091 | 0 | const std::shared_ptr<RType>& result) { |
1092 | 0 | return ConvertUuidToBlob(params[0], result); |
1093 | 0 | } |
1094 | | |
1095 | | template<typename PType, typename RType> |
1096 | | static Status ExecRaw(const std::vector<PType*>& params, |
1097 | 0 | RType *result) { |
1098 | 0 | return ConvertUuidToBlob(params[0], result); |
1099 | 0 | } |
1100 | | |
1101 | | template<typename PType, typename RType> |
1102 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1103 | 8 | RType *result) { |
1104 | 8 | return ConvertUuidToBlob(&(*params)[0], result); |
1105 | 8 | } |
1106 | | }; |
1107 | | |
1108 | | class OPERATOR_ConvertTimeuuidToBlob_39 : public BFOperator { |
1109 | | public: |
1110 | | OPERATOR_ConvertTimeuuidToBlob_39( |
1111 | | BFOpcode opcode, |
1112 | | BFOpcode overloaded_opcode, |
1113 | | const BFDecl *op_decl) |
1114 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1115 | 28.1k | } |
1116 | | |
1117 | | template<typename PType, typename RType> |
1118 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1119 | 0 | const std::shared_ptr<RType>& result) { |
1120 | 0 | return ConvertTimeuuidToBlob(params[0], result); |
1121 | 0 | } |
1122 | | |
1123 | | template<typename PType, typename RType> |
1124 | | static Status ExecRaw(const std::vector<PType*>& params, |
1125 | 0 | RType *result) { |
1126 | 0 | return ConvertTimeuuidToBlob(params[0], result); |
1127 | 0 | } |
1128 | | |
1129 | | template<typename PType, typename RType> |
1130 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1131 | 4 | RType *result) { |
1132 | 4 | return ConvertTimeuuidToBlob(&(*params)[0], result); |
1133 | 4 | } |
1134 | | }; |
1135 | | |
1136 | | class OPERATOR_ConvertInetToBlob_40 : public BFOperator { |
1137 | | public: |
1138 | | OPERATOR_ConvertInetToBlob_40( |
1139 | | BFOpcode opcode, |
1140 | | BFOpcode overloaded_opcode, |
1141 | | const BFDecl *op_decl) |
1142 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1143 | 28.1k | } |
1144 | | |
1145 | | template<typename PType, typename RType> |
1146 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1147 | 0 | const std::shared_ptr<RType>& result) { |
1148 | 0 | return ConvertInetToBlob(params[0], result); |
1149 | 0 | } |
1150 | | |
1151 | | template<typename PType, typename RType> |
1152 | | static Status ExecRaw(const std::vector<PType*>& params, |
1153 | 0 | RType *result) { |
1154 | 0 | return ConvertInetToBlob(params[0], result); |
1155 | 0 | } |
1156 | | |
1157 | | template<typename PType, typename RType> |
1158 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1159 | 0 | RType *result) { |
1160 | 0 | return ConvertInetToBlob(&(*params)[0], result); |
1161 | 0 | } |
1162 | | }; |
1163 | | |
1164 | | class OPERATOR_ConvertListToBlob_41 : public BFOperator { |
1165 | | public: |
1166 | | OPERATOR_ConvertListToBlob_41( |
1167 | | BFOpcode opcode, |
1168 | | BFOpcode overloaded_opcode, |
1169 | | const BFDecl *op_decl) |
1170 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1171 | 28.1k | } |
1172 | | |
1173 | | template<typename PType, typename RType> |
1174 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1175 | 0 | const std::shared_ptr<RType>& result) { |
1176 | 0 | return ConvertListToBlob(params[0], result); |
1177 | 0 | } |
1178 | | |
1179 | | template<typename PType, typename RType> |
1180 | | static Status ExecRaw(const std::vector<PType*>& params, |
1181 | 0 | RType *result) { |
1182 | 0 | return ConvertListToBlob(params[0], result); |
1183 | 0 | } |
1184 | | |
1185 | | template<typename PType, typename RType> |
1186 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1187 | 0 | RType *result) { |
1188 | 0 | return ConvertListToBlob(&(*params)[0], result); |
1189 | 0 | } |
1190 | | }; |
1191 | | |
1192 | | class OPERATOR_ConvertMapToBlob_42 : public BFOperator { |
1193 | | public: |
1194 | | OPERATOR_ConvertMapToBlob_42( |
1195 | | BFOpcode opcode, |
1196 | | BFOpcode overloaded_opcode, |
1197 | | const BFDecl *op_decl) |
1198 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1199 | 28.1k | } |
1200 | | |
1201 | | template<typename PType, typename RType> |
1202 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1203 | 0 | const std::shared_ptr<RType>& result) { |
1204 | 0 | return ConvertMapToBlob(params[0], result); |
1205 | 0 | } |
1206 | | |
1207 | | template<typename PType, typename RType> |
1208 | | static Status ExecRaw(const std::vector<PType*>& params, |
1209 | 0 | RType *result) { |
1210 | 0 | return ConvertMapToBlob(params[0], result); |
1211 | 0 | } |
1212 | | |
1213 | | template<typename PType, typename RType> |
1214 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1215 | 0 | RType *result) { |
1216 | 0 | return ConvertMapToBlob(&(*params)[0], result); |
1217 | 0 | } |
1218 | | }; |
1219 | | |
1220 | | class OPERATOR_ConvertSetToBlob_43 : public BFOperator { |
1221 | | public: |
1222 | | OPERATOR_ConvertSetToBlob_43( |
1223 | | BFOpcode opcode, |
1224 | | BFOpcode overloaded_opcode, |
1225 | | const BFDecl *op_decl) |
1226 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1227 | 28.1k | } |
1228 | | |
1229 | | template<typename PType, typename RType> |
1230 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1231 | 0 | const std::shared_ptr<RType>& result) { |
1232 | 0 | return ConvertSetToBlob(params[0], result); |
1233 | 0 | } |
1234 | | |
1235 | | template<typename PType, typename RType> |
1236 | | static Status ExecRaw(const std::vector<PType*>& params, |
1237 | 0 | RType *result) { |
1238 | 0 | return ConvertSetToBlob(params[0], result); |
1239 | 0 | } |
1240 | | |
1241 | | template<typename PType, typename RType> |
1242 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1243 | 0 | RType *result) { |
1244 | 0 | return ConvertSetToBlob(&(*params)[0], result); |
1245 | 0 | } |
1246 | | }; |
1247 | | |
1248 | | class OPERATOR_ConvertTupleToBlob_44 : public BFOperator { |
1249 | | public: |
1250 | | OPERATOR_ConvertTupleToBlob_44( |
1251 | | BFOpcode opcode, |
1252 | | BFOpcode overloaded_opcode, |
1253 | | const BFDecl *op_decl) |
1254 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1255 | 28.1k | } |
1256 | | |
1257 | | template<typename PType, typename RType> |
1258 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1259 | 0 | const std::shared_ptr<RType>& result) { |
1260 | 0 | return ConvertTupleToBlob(params[0], result); |
1261 | 0 | } |
1262 | | |
1263 | | template<typename PType, typename RType> |
1264 | | static Status ExecRaw(const std::vector<PType*>& params, |
1265 | 0 | RType *result) { |
1266 | 0 | return ConvertTupleToBlob(params[0], result); |
1267 | 0 | } |
1268 | | |
1269 | | template<typename PType, typename RType> |
1270 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1271 | 0 | RType *result) { |
1272 | 0 | return ConvertTupleToBlob(&(*params)[0], result); |
1273 | 0 | } |
1274 | | }; |
1275 | | |
1276 | | class OPERATOR_ConvertBlobToString_45 : public BFOperator { |
1277 | | public: |
1278 | | OPERATOR_ConvertBlobToString_45( |
1279 | | BFOpcode opcode, |
1280 | | BFOpcode overloaded_opcode, |
1281 | | const BFDecl *op_decl) |
1282 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1283 | 28.1k | } |
1284 | | |
1285 | | template<typename PType, typename RType> |
1286 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1287 | 0 | const std::shared_ptr<RType>& result) { |
1288 | 0 | return ConvertBlobToString(params[0], result); |
1289 | 0 | } |
1290 | | |
1291 | | template<typename PType, typename RType> |
1292 | | static Status ExecRaw(const std::vector<PType*>& params, |
1293 | 0 | RType *result) { |
1294 | 0 | return ConvertBlobToString(params[0], result); |
1295 | 0 | } |
1296 | | |
1297 | | template<typename PType, typename RType> |
1298 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1299 | 6 | RType *result) { |
1300 | 6 | return ConvertBlobToString(&(*params)[0], result); |
1301 | 6 | } |
1302 | | }; |
1303 | | |
1304 | | class OPERATOR_ConvertBlobToString_46 : public BFOperator { |
1305 | | public: |
1306 | | OPERATOR_ConvertBlobToString_46( |
1307 | | BFOpcode opcode, |
1308 | | BFOpcode overloaded_opcode, |
1309 | | const BFDecl *op_decl) |
1310 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1311 | 28.1k | } |
1312 | | |
1313 | | template<typename PType, typename RType> |
1314 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1315 | 0 | const std::shared_ptr<RType>& result) { |
1316 | 0 | return ConvertBlobToString(params[0], result); |
1317 | 0 | } |
1318 | | |
1319 | | template<typename PType, typename RType> |
1320 | | static Status ExecRaw(const std::vector<PType*>& params, |
1321 | 0 | RType *result) { |
1322 | 0 | return ConvertBlobToString(params[0], result); |
1323 | 0 | } |
1324 | | |
1325 | | template<typename PType, typename RType> |
1326 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1327 | 6 | RType *result) { |
1328 | 6 | return ConvertBlobToString(&(*params)[0], result); |
1329 | 6 | } |
1330 | | }; |
1331 | | |
1332 | | class OPERATOR_ConvertBlobToBool_47 : public BFOperator { |
1333 | | public: |
1334 | | OPERATOR_ConvertBlobToBool_47( |
1335 | | BFOpcode opcode, |
1336 | | BFOpcode overloaded_opcode, |
1337 | | const BFDecl *op_decl) |
1338 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1339 | 28.1k | } |
1340 | | |
1341 | | template<typename PType, typename RType> |
1342 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1343 | 0 | const std::shared_ptr<RType>& result) { |
1344 | 0 | return ConvertBlobToBool(params[0], result); |
1345 | 0 | } |
1346 | | |
1347 | | template<typename PType, typename RType> |
1348 | | static Status ExecRaw(const std::vector<PType*>& params, |
1349 | 0 | RType *result) { |
1350 | 0 | return ConvertBlobToBool(params[0], result); |
1351 | 0 | } |
1352 | | |
1353 | | template<typename PType, typename RType> |
1354 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1355 | 4 | RType *result) { |
1356 | 4 | return ConvertBlobToBool(&(*params)[0], result); |
1357 | 4 | } |
1358 | | }; |
1359 | | |
1360 | | class OPERATOR_ConvertBlobToInt8_48 : public BFOperator { |
1361 | | public: |
1362 | | OPERATOR_ConvertBlobToInt8_48( |
1363 | | BFOpcode opcode, |
1364 | | BFOpcode overloaded_opcode, |
1365 | | const BFDecl *op_decl) |
1366 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1367 | 28.1k | } |
1368 | | |
1369 | | template<typename PType, typename RType> |
1370 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1371 | 0 | const std::shared_ptr<RType>& result) { |
1372 | 0 | return ConvertBlobToInt8(params[0], result); |
1373 | 0 | } |
1374 | | |
1375 | | template<typename PType, typename RType> |
1376 | | static Status ExecRaw(const std::vector<PType*>& params, |
1377 | 0 | RType *result) { |
1378 | 0 | return ConvertBlobToInt8(params[0], result); |
1379 | 0 | } |
1380 | | |
1381 | | template<typename PType, typename RType> |
1382 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1383 | 6 | RType *result) { |
1384 | 6 | return ConvertBlobToInt8(&(*params)[0], result); |
1385 | 6 | } |
1386 | | }; |
1387 | | |
1388 | | class OPERATOR_ConvertBlobToInt16_49 : public BFOperator { |
1389 | | public: |
1390 | | OPERATOR_ConvertBlobToInt16_49( |
1391 | | BFOpcode opcode, |
1392 | | BFOpcode overloaded_opcode, |
1393 | | const BFDecl *op_decl) |
1394 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1395 | 28.1k | } |
1396 | | |
1397 | | template<typename PType, typename RType> |
1398 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1399 | 0 | const std::shared_ptr<RType>& result) { |
1400 | 0 | return ConvertBlobToInt16(params[0], result); |
1401 | 0 | } |
1402 | | |
1403 | | template<typename PType, typename RType> |
1404 | | static Status ExecRaw(const std::vector<PType*>& params, |
1405 | 0 | RType *result) { |
1406 | 0 | return ConvertBlobToInt16(params[0], result); |
1407 | 0 | } |
1408 | | |
1409 | | template<typename PType, typename RType> |
1410 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1411 | 6 | RType *result) { |
1412 | 6 | return ConvertBlobToInt16(&(*params)[0], result); |
1413 | 6 | } |
1414 | | }; |
1415 | | |
1416 | | class OPERATOR_ConvertBlobToInt32_50 : public BFOperator { |
1417 | | public: |
1418 | | OPERATOR_ConvertBlobToInt32_50( |
1419 | | BFOpcode opcode, |
1420 | | BFOpcode overloaded_opcode, |
1421 | | const BFDecl *op_decl) |
1422 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1423 | 28.1k | } |
1424 | | |
1425 | | template<typename PType, typename RType> |
1426 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1427 | 0 | const std::shared_ptr<RType>& result) { |
1428 | 0 | return ConvertBlobToInt32(params[0], result); |
1429 | 0 | } |
1430 | | |
1431 | | template<typename PType, typename RType> |
1432 | | static Status ExecRaw(const std::vector<PType*>& params, |
1433 | 0 | RType *result) { |
1434 | 0 | return ConvertBlobToInt32(params[0], result); |
1435 | 0 | } |
1436 | | |
1437 | | template<typename PType, typename RType> |
1438 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1439 | 6 | RType *result) { |
1440 | 6 | return ConvertBlobToInt32(&(*params)[0], result); |
1441 | 6 | } |
1442 | | }; |
1443 | | |
1444 | | class OPERATOR_ConvertBlobToInt64_51 : public BFOperator { |
1445 | | public: |
1446 | | OPERATOR_ConvertBlobToInt64_51( |
1447 | | BFOpcode opcode, |
1448 | | BFOpcode overloaded_opcode, |
1449 | | const BFDecl *op_decl) |
1450 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1451 | 28.1k | } |
1452 | | |
1453 | | template<typename PType, typename RType> |
1454 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1455 | 0 | const std::shared_ptr<RType>& result) { |
1456 | 0 | return ConvertBlobToInt64(params[0], result); |
1457 | 0 | } |
1458 | | |
1459 | | template<typename PType, typename RType> |
1460 | | static Status ExecRaw(const std::vector<PType*>& params, |
1461 | 0 | RType *result) { |
1462 | 0 | return ConvertBlobToInt64(params[0], result); |
1463 | 0 | } |
1464 | | |
1465 | | template<typename PType, typename RType> |
1466 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1467 | 6 | RType *result) { |
1468 | 6 | return ConvertBlobToInt64(&(*params)[0], result); |
1469 | 6 | } |
1470 | | }; |
1471 | | |
1472 | | class OPERATOR_ConvertBlobToInt64_52 : public BFOperator { |
1473 | | public: |
1474 | | OPERATOR_ConvertBlobToInt64_52( |
1475 | | BFOpcode opcode, |
1476 | | BFOpcode overloaded_opcode, |
1477 | | const BFDecl *op_decl) |
1478 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1479 | 28.1k | } |
1480 | | |
1481 | | template<typename PType, typename RType> |
1482 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1483 | 0 | const std::shared_ptr<RType>& result) { |
1484 | 0 | return ConvertBlobToInt64(params[0], result); |
1485 | 0 | } |
1486 | | |
1487 | | template<typename PType, typename RType> |
1488 | | static Status ExecRaw(const std::vector<PType*>& params, |
1489 | 0 | RType *result) { |
1490 | 0 | return ConvertBlobToInt64(params[0], result); |
1491 | 0 | } |
1492 | | |
1493 | | template<typename PType, typename RType> |
1494 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1495 | 0 | RType *result) { |
1496 | 0 | return ConvertBlobToInt64(&(*params)[0], result); |
1497 | 0 | } |
1498 | | }; |
1499 | | |
1500 | | class OPERATOR_ConvertBlobToVarint_53 : public BFOperator { |
1501 | | public: |
1502 | | OPERATOR_ConvertBlobToVarint_53( |
1503 | | BFOpcode opcode, |
1504 | | BFOpcode overloaded_opcode, |
1505 | | const BFDecl *op_decl) |
1506 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1507 | 28.1k | } |
1508 | | |
1509 | | template<typename PType, typename RType> |
1510 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1511 | 0 | const std::shared_ptr<RType>& result) { |
1512 | 0 | return ConvertBlobToVarint(params[0], result); |
1513 | 0 | } |
1514 | | |
1515 | | template<typename PType, typename RType> |
1516 | | static Status ExecRaw(const std::vector<PType*>& params, |
1517 | 0 | RType *result) { |
1518 | 0 | return ConvertBlobToVarint(params[0], result); |
1519 | 0 | } |
1520 | | |
1521 | | template<typename PType, typename RType> |
1522 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1523 | 0 | RType *result) { |
1524 | 0 | return ConvertBlobToVarint(&(*params)[0], result); |
1525 | 0 | } |
1526 | | }; |
1527 | | |
1528 | | class OPERATOR_ConvertBlobToFloat_54 : public BFOperator { |
1529 | | public: |
1530 | | OPERATOR_ConvertBlobToFloat_54( |
1531 | | BFOpcode opcode, |
1532 | | BFOpcode overloaded_opcode, |
1533 | | const BFDecl *op_decl) |
1534 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1535 | 28.1k | } |
1536 | | |
1537 | | template<typename PType, typename RType> |
1538 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1539 | 0 | const std::shared_ptr<RType>& result) { |
1540 | 0 | return ConvertBlobToFloat(params[0], result); |
1541 | 0 | } |
1542 | | |
1543 | | template<typename PType, typename RType> |
1544 | | static Status ExecRaw(const std::vector<PType*>& params, |
1545 | 0 | RType *result) { |
1546 | 0 | return ConvertBlobToFloat(params[0], result); |
1547 | 0 | } |
1548 | | |
1549 | | template<typename PType, typename RType> |
1550 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1551 | 3 | RType *result) { |
1552 | 3 | return ConvertBlobToFloat(&(*params)[0], result); |
1553 | 3 | } |
1554 | | }; |
1555 | | |
1556 | | class OPERATOR_ConvertBlobToDouble_55 : public BFOperator { |
1557 | | public: |
1558 | | OPERATOR_ConvertBlobToDouble_55( |
1559 | | BFOpcode opcode, |
1560 | | BFOpcode overloaded_opcode, |
1561 | | const BFDecl *op_decl) |
1562 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1563 | 28.1k | } |
1564 | | |
1565 | | template<typename PType, typename RType> |
1566 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1567 | 0 | const std::shared_ptr<RType>& result) { |
1568 | 0 | return ConvertBlobToDouble(params[0], result); |
1569 | 0 | } |
1570 | | |
1571 | | template<typename PType, typename RType> |
1572 | | static Status ExecRaw(const std::vector<PType*>& params, |
1573 | 0 | RType *result) { |
1574 | 0 | return ConvertBlobToDouble(params[0], result); |
1575 | 0 | } |
1576 | | |
1577 | | template<typename PType, typename RType> |
1578 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1579 | 3 | RType *result) { |
1580 | 3 | return ConvertBlobToDouble(&(*params)[0], result); |
1581 | 3 | } |
1582 | | }; |
1583 | | |
1584 | | class OPERATOR_ConvertBlobToDecimal_56 : public BFOperator { |
1585 | | public: |
1586 | | OPERATOR_ConvertBlobToDecimal_56( |
1587 | | BFOpcode opcode, |
1588 | | BFOpcode overloaded_opcode, |
1589 | | const BFDecl *op_decl) |
1590 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1591 | 28.1k | } |
1592 | | |
1593 | | template<typename PType, typename RType> |
1594 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1595 | 0 | const std::shared_ptr<RType>& result) { |
1596 | 0 | return ConvertBlobToDecimal(params[0], result); |
1597 | 0 | } |
1598 | | |
1599 | | template<typename PType, typename RType> |
1600 | | static Status ExecRaw(const std::vector<PType*>& params, |
1601 | 0 | RType *result) { |
1602 | 0 | return ConvertBlobToDecimal(params[0], result); |
1603 | 0 | } |
1604 | | |
1605 | | template<typename PType, typename RType> |
1606 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1607 | 0 | RType *result) { |
1608 | 0 | return ConvertBlobToDecimal(&(*params)[0], result); |
1609 | 0 | } |
1610 | | }; |
1611 | | |
1612 | | class OPERATOR_ConvertBlobToDate_57 : public BFOperator { |
1613 | | public: |
1614 | | OPERATOR_ConvertBlobToDate_57( |
1615 | | BFOpcode opcode, |
1616 | | BFOpcode overloaded_opcode, |
1617 | | const BFDecl *op_decl) |
1618 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1619 | 28.1k | } |
1620 | | |
1621 | | template<typename PType, typename RType> |
1622 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1623 | 0 | const std::shared_ptr<RType>& result) { |
1624 | 0 | return ConvertBlobToDate(params[0], result); |
1625 | 0 | } |
1626 | | |
1627 | | template<typename PType, typename RType> |
1628 | | static Status ExecRaw(const std::vector<PType*>& params, |
1629 | 0 | RType *result) { |
1630 | 0 | return ConvertBlobToDate(params[0], result); |
1631 | 0 | } |
1632 | | |
1633 | | template<typename PType, typename RType> |
1634 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1635 | 0 | RType *result) { |
1636 | 0 | return ConvertBlobToDate(&(*params)[0], result); |
1637 | 0 | } |
1638 | | }; |
1639 | | |
1640 | | class OPERATOR_ConvertBlobToTime_58 : public BFOperator { |
1641 | | public: |
1642 | | OPERATOR_ConvertBlobToTime_58( |
1643 | | BFOpcode opcode, |
1644 | | BFOpcode overloaded_opcode, |
1645 | | const BFDecl *op_decl) |
1646 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1647 | 28.1k | } |
1648 | | |
1649 | | template<typename PType, typename RType> |
1650 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1651 | 0 | const std::shared_ptr<RType>& result) { |
1652 | 0 | return ConvertBlobToTime(params[0], result); |
1653 | 0 | } |
1654 | | |
1655 | | template<typename PType, typename RType> |
1656 | | static Status ExecRaw(const std::vector<PType*>& params, |
1657 | 0 | RType *result) { |
1658 | 0 | return ConvertBlobToTime(params[0], result); |
1659 | 0 | } |
1660 | | |
1661 | | template<typename PType, typename RType> |
1662 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1663 | 0 | RType *result) { |
1664 | 0 | return ConvertBlobToTime(&(*params)[0], result); |
1665 | 0 | } |
1666 | | }; |
1667 | | |
1668 | | class OPERATOR_ConvertBlobToTimestamp_59 : public BFOperator { |
1669 | | public: |
1670 | | OPERATOR_ConvertBlobToTimestamp_59( |
1671 | | BFOpcode opcode, |
1672 | | BFOpcode overloaded_opcode, |
1673 | | const BFDecl *op_decl) |
1674 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1675 | 28.1k | } |
1676 | | |
1677 | | template<typename PType, typename RType> |
1678 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1679 | 0 | const std::shared_ptr<RType>& result) { |
1680 | 0 | return ConvertBlobToTimestamp(params[0], result); |
1681 | 0 | } |
1682 | | |
1683 | | template<typename PType, typename RType> |
1684 | | static Status ExecRaw(const std::vector<PType*>& params, |
1685 | 0 | RType *result) { |
1686 | 0 | return ConvertBlobToTimestamp(params[0], result); |
1687 | 0 | } |
1688 | | |
1689 | | template<typename PType, typename RType> |
1690 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1691 | 4 | RType *result) { |
1692 | 4 | return ConvertBlobToTimestamp(&(*params)[0], result); |
1693 | 4 | } |
1694 | | }; |
1695 | | |
1696 | | class OPERATOR_ConvertBlobToUuid_60 : public BFOperator { |
1697 | | public: |
1698 | | OPERATOR_ConvertBlobToUuid_60( |
1699 | | BFOpcode opcode, |
1700 | | BFOpcode overloaded_opcode, |
1701 | | const BFDecl *op_decl) |
1702 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1703 | 28.1k | } |
1704 | | |
1705 | | template<typename PType, typename RType> |
1706 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1707 | 0 | const std::shared_ptr<RType>& result) { |
1708 | 0 | return ConvertBlobToUuid(params[0], result); |
1709 | 0 | } |
1710 | | |
1711 | | template<typename PType, typename RType> |
1712 | | static Status ExecRaw(const std::vector<PType*>& params, |
1713 | 0 | RType *result) { |
1714 | 0 | return ConvertBlobToUuid(params[0], result); |
1715 | 0 | } |
1716 | | |
1717 | | template<typename PType, typename RType> |
1718 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1719 | 8 | RType *result) { |
1720 | 8 | return ConvertBlobToUuid(&(*params)[0], result); |
1721 | 8 | } |
1722 | | }; |
1723 | | |
1724 | | class OPERATOR_ConvertBlobToTimeuuid_61 : public BFOperator { |
1725 | | public: |
1726 | | OPERATOR_ConvertBlobToTimeuuid_61( |
1727 | | BFOpcode opcode, |
1728 | | BFOpcode overloaded_opcode, |
1729 | | const BFDecl *op_decl) |
1730 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1731 | 28.1k | } |
1732 | | |
1733 | | template<typename PType, typename RType> |
1734 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1735 | 0 | const std::shared_ptr<RType>& result) { |
1736 | 0 | return ConvertBlobToTimeuuid(params[0], result); |
1737 | 0 | } |
1738 | | |
1739 | | template<typename PType, typename RType> |
1740 | | static Status ExecRaw(const std::vector<PType*>& params, |
1741 | 0 | RType *result) { |
1742 | 0 | return ConvertBlobToTimeuuid(params[0], result); |
1743 | 0 | } |
1744 | | |
1745 | | template<typename PType, typename RType> |
1746 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1747 | 4 | RType *result) { |
1748 | 4 | return ConvertBlobToTimeuuid(&(*params)[0], result); |
1749 | 4 | } |
1750 | | }; |
1751 | | |
1752 | | class OPERATOR_ConvertBlobToInet_62 : public BFOperator { |
1753 | | public: |
1754 | | OPERATOR_ConvertBlobToInet_62( |
1755 | | BFOpcode opcode, |
1756 | | BFOpcode overloaded_opcode, |
1757 | | const BFDecl *op_decl) |
1758 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1759 | 28.1k | } |
1760 | | |
1761 | | template<typename PType, typename RType> |
1762 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1763 | 0 | const std::shared_ptr<RType>& result) { |
1764 | 0 | return ConvertBlobToInet(params[0], result); |
1765 | 0 | } |
1766 | | |
1767 | | template<typename PType, typename RType> |
1768 | | static Status ExecRaw(const std::vector<PType*>& params, |
1769 | 0 | RType *result) { |
1770 | 0 | return ConvertBlobToInet(params[0], result); |
1771 | 0 | } |
1772 | | |
1773 | | template<typename PType, typename RType> |
1774 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1775 | 0 | RType *result) { |
1776 | 0 | return ConvertBlobToInet(&(*params)[0], result); |
1777 | 0 | } |
1778 | | }; |
1779 | | |
1780 | | class OPERATOR_ConvertBlobToList_63 : public BFOperator { |
1781 | | public: |
1782 | | OPERATOR_ConvertBlobToList_63( |
1783 | | BFOpcode opcode, |
1784 | | BFOpcode overloaded_opcode, |
1785 | | const BFDecl *op_decl) |
1786 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1787 | 28.1k | } |
1788 | | |
1789 | | template<typename PType, typename RType> |
1790 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1791 | 0 | const std::shared_ptr<RType>& result) { |
1792 | 0 | return ConvertBlobToList(params[0], result); |
1793 | 0 | } |
1794 | | |
1795 | | template<typename PType, typename RType> |
1796 | | static Status ExecRaw(const std::vector<PType*>& params, |
1797 | 0 | RType *result) { |
1798 | 0 | return ConvertBlobToList(params[0], result); |
1799 | 0 | } |
1800 | | |
1801 | | template<typename PType, typename RType> |
1802 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1803 | 0 | RType *result) { |
1804 | 0 | return ConvertBlobToList(&(*params)[0], result); |
1805 | 0 | } |
1806 | | }; |
1807 | | |
1808 | | class OPERATOR_ConvertBlobToMap_64 : public BFOperator { |
1809 | | public: |
1810 | | OPERATOR_ConvertBlobToMap_64( |
1811 | | BFOpcode opcode, |
1812 | | BFOpcode overloaded_opcode, |
1813 | | const BFDecl *op_decl) |
1814 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1815 | 28.1k | } |
1816 | | |
1817 | | template<typename PType, typename RType> |
1818 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1819 | 0 | const std::shared_ptr<RType>& result) { |
1820 | 0 | return ConvertBlobToMap(params[0], result); |
1821 | 0 | } |
1822 | | |
1823 | | template<typename PType, typename RType> |
1824 | | static Status ExecRaw(const std::vector<PType*>& params, |
1825 | 0 | RType *result) { |
1826 | 0 | return ConvertBlobToMap(params[0], result); |
1827 | 0 | } |
1828 | | |
1829 | | template<typename PType, typename RType> |
1830 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1831 | 0 | RType *result) { |
1832 | 0 | return ConvertBlobToMap(&(*params)[0], result); |
1833 | 0 | } |
1834 | | }; |
1835 | | |
1836 | | class OPERATOR_ConvertBlobToSet_65 : public BFOperator { |
1837 | | public: |
1838 | | OPERATOR_ConvertBlobToSet_65( |
1839 | | BFOpcode opcode, |
1840 | | BFOpcode overloaded_opcode, |
1841 | | const BFDecl *op_decl) |
1842 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1843 | 28.1k | } |
1844 | | |
1845 | | template<typename PType, typename RType> |
1846 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1847 | 0 | const std::shared_ptr<RType>& result) { |
1848 | 0 | return ConvertBlobToSet(params[0], result); |
1849 | 0 | } |
1850 | | |
1851 | | template<typename PType, typename RType> |
1852 | | static Status ExecRaw(const std::vector<PType*>& params, |
1853 | 0 | RType *result) { |
1854 | 0 | return ConvertBlobToSet(params[0], result); |
1855 | 0 | } |
1856 | | |
1857 | | template<typename PType, typename RType> |
1858 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1859 | 0 | RType *result) { |
1860 | 0 | return ConvertBlobToSet(&(*params)[0], result); |
1861 | 0 | } |
1862 | | }; |
1863 | | |
1864 | | class OPERATOR_ConvertBlobToTuple_66 : public BFOperator { |
1865 | | public: |
1866 | | OPERATOR_ConvertBlobToTuple_66( |
1867 | | BFOpcode opcode, |
1868 | | BFOpcode overloaded_opcode, |
1869 | | const BFDecl *op_decl) |
1870 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1871 | 28.1k | } |
1872 | | |
1873 | | template<typename PType, typename RType> |
1874 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1875 | 0 | const std::shared_ptr<RType>& result) { |
1876 | 0 | return ConvertBlobToTuple(params[0], result); |
1877 | 0 | } |
1878 | | |
1879 | | template<typename PType, typename RType> |
1880 | | static Status ExecRaw(const std::vector<PType*>& params, |
1881 | 0 | RType *result) { |
1882 | 0 | return ConvertBlobToTuple(params[0], result); |
1883 | 0 | } |
1884 | | |
1885 | | template<typename PType, typename RType> |
1886 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1887 | 0 | RType *result) { |
1888 | 0 | return ConvertBlobToTuple(&(*params)[0], result); |
1889 | 0 | } |
1890 | | }; |
1891 | | |
1892 | | class OPERATOR_ConvertTimeuuidToDate_67 : public BFOperator { |
1893 | | public: |
1894 | | OPERATOR_ConvertTimeuuidToDate_67( |
1895 | | BFOpcode opcode, |
1896 | | BFOpcode overloaded_opcode, |
1897 | | const BFDecl *op_decl) |
1898 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1899 | 28.1k | } |
1900 | | |
1901 | | template<typename PType, typename RType> |
1902 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1903 | 0 | const std::shared_ptr<RType>& result) { |
1904 | 0 | return ConvertTimeuuidToDate(params[0], result); |
1905 | 0 | } |
1906 | | |
1907 | | template<typename PType, typename RType> |
1908 | | static Status ExecRaw(const std::vector<PType*>& params, |
1909 | 0 | RType *result) { |
1910 | 0 | return ConvertTimeuuidToDate(params[0], result); |
1911 | 0 | } |
1912 | | |
1913 | | template<typename PType, typename RType> |
1914 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1915 | 0 | RType *result) { |
1916 | 0 | return ConvertTimeuuidToDate(&(*params)[0], result); |
1917 | 0 | } |
1918 | | }; |
1919 | | |
1920 | | class OPERATOR_ConvertTimestampToDate_68 : public BFOperator { |
1921 | | public: |
1922 | | OPERATOR_ConvertTimestampToDate_68( |
1923 | | BFOpcode opcode, |
1924 | | BFOpcode overloaded_opcode, |
1925 | | const BFDecl *op_decl) |
1926 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1927 | 28.1k | } |
1928 | | |
1929 | | template<typename PType, typename RType> |
1930 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1931 | 0 | const std::shared_ptr<RType>& result) { |
1932 | 0 | return ConvertTimestampToDate(params[0], result); |
1933 | 0 | } |
1934 | | |
1935 | | template<typename PType, typename RType> |
1936 | | static Status ExecRaw(const std::vector<PType*>& params, |
1937 | 0 | RType *result) { |
1938 | 0 | return ConvertTimestampToDate(params[0], result); |
1939 | 0 | } |
1940 | | |
1941 | | template<typename PType, typename RType> |
1942 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1943 | 1 | RType *result) { |
1944 | 1 | return ConvertTimestampToDate(&(*params)[0], result); |
1945 | 1 | } |
1946 | | }; |
1947 | | |
1948 | | class OPERATOR_ConvertTimeuuidToTime_69 : public BFOperator { |
1949 | | public: |
1950 | | OPERATOR_ConvertTimeuuidToTime_69( |
1951 | | BFOpcode opcode, |
1952 | | BFOpcode overloaded_opcode, |
1953 | | const BFDecl *op_decl) |
1954 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1955 | 28.1k | } |
1956 | | |
1957 | | template<typename PType, typename RType> |
1958 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1959 | 0 | const std::shared_ptr<RType>& result) { |
1960 | 0 | return ConvertTimeuuidToTime(params[0], result); |
1961 | 0 | } |
1962 | | |
1963 | | template<typename PType, typename RType> |
1964 | | static Status ExecRaw(const std::vector<PType*>& params, |
1965 | 0 | RType *result) { |
1966 | 0 | return ConvertTimeuuidToTime(params[0], result); |
1967 | 0 | } |
1968 | | |
1969 | | template<typename PType, typename RType> |
1970 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1971 | 0 | RType *result) { |
1972 | 0 | return ConvertTimeuuidToTime(&(*params)[0], result); |
1973 | 0 | } |
1974 | | }; |
1975 | | |
1976 | | class OPERATOR_ConvertTimestampToTime_70 : public BFOperator { |
1977 | | public: |
1978 | | OPERATOR_ConvertTimestampToTime_70( |
1979 | | BFOpcode opcode, |
1980 | | BFOpcode overloaded_opcode, |
1981 | | const BFDecl *op_decl) |
1982 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
1983 | 28.1k | } |
1984 | | |
1985 | | template<typename PType, typename RType> |
1986 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
1987 | 0 | const std::shared_ptr<RType>& result) { |
1988 | 0 | return ConvertTimestampToTime(params[0], result); |
1989 | 0 | } |
1990 | | |
1991 | | template<typename PType, typename RType> |
1992 | | static Status ExecRaw(const std::vector<PType*>& params, |
1993 | 0 | RType *result) { |
1994 | 0 | return ConvertTimestampToTime(params[0], result); |
1995 | 0 | } |
1996 | | |
1997 | | template<typename PType, typename RType> |
1998 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
1999 | 0 | RType *result) { |
2000 | 0 | return ConvertTimestampToTime(&(*params)[0], result); |
2001 | 0 | } |
2002 | | }; |
2003 | | |
2004 | | class OPERATOR_ConvertDateToTimestamp_71 : public BFOperator { |
2005 | | public: |
2006 | | OPERATOR_ConvertDateToTimestamp_71( |
2007 | | BFOpcode opcode, |
2008 | | BFOpcode overloaded_opcode, |
2009 | | const BFDecl *op_decl) |
2010 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2011 | 28.1k | } |
2012 | | |
2013 | | template<typename PType, typename RType> |
2014 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2015 | 0 | const std::shared_ptr<RType>& result) { |
2016 | 0 | return ConvertDateToTimestamp(params[0], result); |
2017 | 0 | } |
2018 | | |
2019 | | template<typename PType, typename RType> |
2020 | | static Status ExecRaw(const std::vector<PType*>& params, |
2021 | 0 | RType *result) { |
2022 | 0 | return ConvertDateToTimestamp(params[0], result); |
2023 | 0 | } |
2024 | | |
2025 | | template<typename PType, typename RType> |
2026 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2027 | 1 | RType *result) { |
2028 | 1 | return ConvertDateToTimestamp(&(*params)[0], result); |
2029 | 1 | } |
2030 | | }; |
2031 | | |
2032 | | class OPERATOR_ConvertTimeuuidToTimestamp_72 : public BFOperator { |
2033 | | public: |
2034 | | OPERATOR_ConvertTimeuuidToTimestamp_72( |
2035 | | BFOpcode opcode, |
2036 | | BFOpcode overloaded_opcode, |
2037 | | const BFDecl *op_decl) |
2038 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2039 | 28.1k | } |
2040 | | |
2041 | | template<typename PType, typename RType> |
2042 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2043 | 0 | const std::shared_ptr<RType>& result) { |
2044 | 0 | return ConvertTimeuuidToTimestamp(params[0], result); |
2045 | 0 | } |
2046 | | |
2047 | | template<typename PType, typename RType> |
2048 | | static Status ExecRaw(const std::vector<PType*>& params, |
2049 | 0 | RType *result) { |
2050 | 0 | return ConvertTimeuuidToTimestamp(params[0], result); |
2051 | 0 | } |
2052 | | |
2053 | | template<typename PType, typename RType> |
2054 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2055 | 33 | RType *result) { |
2056 | 33 | return ConvertTimeuuidToTimestamp(&(*params)[0], result); |
2057 | 33 | } |
2058 | | }; |
2059 | | |
2060 | | class OPERATOR_ConvertTimeuuidToTimestamp_73 : public BFOperator { |
2061 | | public: |
2062 | | OPERATOR_ConvertTimeuuidToTimestamp_73( |
2063 | | BFOpcode opcode, |
2064 | | BFOpcode overloaded_opcode, |
2065 | | const BFDecl *op_decl) |
2066 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2067 | 28.1k | } |
2068 | | |
2069 | | template<typename PType, typename RType> |
2070 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2071 | 0 | const std::shared_ptr<RType>& result) { |
2072 | 0 | return ConvertTimeuuidToTimestamp(params[0], result); |
2073 | 0 | } |
2074 | | |
2075 | | template<typename PType, typename RType> |
2076 | | static Status ExecRaw(const std::vector<PType*>& params, |
2077 | 0 | RType *result) { |
2078 | 0 | return ConvertTimeuuidToTimestamp(params[0], result); |
2079 | 0 | } |
2080 | | |
2081 | | template<typename PType, typename RType> |
2082 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2083 | 0 | RType *result) { |
2084 | 0 | return ConvertTimeuuidToTimestamp(&(*params)[0], result); |
2085 | 0 | } |
2086 | | }; |
2087 | | |
2088 | | class OPERATOR_ConvertDateToUnixTimestamp_74 : public BFOperator { |
2089 | | public: |
2090 | | OPERATOR_ConvertDateToUnixTimestamp_74( |
2091 | | BFOpcode opcode, |
2092 | | BFOpcode overloaded_opcode, |
2093 | | const BFDecl *op_decl) |
2094 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2095 | 28.1k | } |
2096 | | |
2097 | | template<typename PType, typename RType> |
2098 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2099 | 0 | const std::shared_ptr<RType>& result) { |
2100 | 0 | return ConvertDateToUnixTimestamp(params[0], result); |
2101 | 0 | } |
2102 | | |
2103 | | template<typename PType, typename RType> |
2104 | | static Status ExecRaw(const std::vector<PType*>& params, |
2105 | 0 | RType *result) { |
2106 | 0 | return ConvertDateToUnixTimestamp(params[0], result); |
2107 | 0 | } |
2108 | | |
2109 | | template<typename PType, typename RType> |
2110 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2111 | 1 | RType *result) { |
2112 | 1 | return ConvertDateToUnixTimestamp(&(*params)[0], result); |
2113 | 1 | } |
2114 | | }; |
2115 | | |
2116 | | class OPERATOR_ConvertTimestampToUnixTimestamp_75 : public BFOperator { |
2117 | | public: |
2118 | | OPERATOR_ConvertTimestampToUnixTimestamp_75( |
2119 | | BFOpcode opcode, |
2120 | | BFOpcode overloaded_opcode, |
2121 | | const BFDecl *op_decl) |
2122 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2123 | 28.1k | } |
2124 | | |
2125 | | template<typename PType, typename RType> |
2126 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2127 | 0 | const std::shared_ptr<RType>& result) { |
2128 | 0 | return ConvertTimestampToUnixTimestamp(params[0], result); |
2129 | 0 | } |
2130 | | |
2131 | | template<typename PType, typename RType> |
2132 | | static Status ExecRaw(const std::vector<PType*>& params, |
2133 | 0 | RType *result) { |
2134 | 0 | return ConvertTimestampToUnixTimestamp(params[0], result); |
2135 | 0 | } |
2136 | | |
2137 | | template<typename PType, typename RType> |
2138 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2139 | 4 | RType *result) { |
2140 | 4 | return ConvertTimestampToUnixTimestamp(&(*params)[0], result); |
2141 | 4 | } |
2142 | | }; |
2143 | | |
2144 | | class OPERATOR_ConvertTimeuuidToUnixTimestamp_76 : public BFOperator { |
2145 | | public: |
2146 | | OPERATOR_ConvertTimeuuidToUnixTimestamp_76( |
2147 | | BFOpcode opcode, |
2148 | | BFOpcode overloaded_opcode, |
2149 | | const BFDecl *op_decl) |
2150 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2151 | 28.1k | } |
2152 | | |
2153 | | template<typename PType, typename RType> |
2154 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2155 | 0 | const std::shared_ptr<RType>& result) { |
2156 | 0 | return ConvertTimeuuidToUnixTimestamp(params[0], result); |
2157 | 0 | } |
2158 | | |
2159 | | template<typename PType, typename RType> |
2160 | | static Status ExecRaw(const std::vector<PType*>& params, |
2161 | 0 | RType *result) { |
2162 | 0 | return ConvertTimeuuidToUnixTimestamp(params[0], result); |
2163 | 0 | } |
2164 | | |
2165 | | template<typename PType, typename RType> |
2166 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2167 | 6 | RType *result) { |
2168 | 6 | return ConvertTimeuuidToUnixTimestamp(&(*params)[0], result); |
2169 | 6 | } |
2170 | | }; |
2171 | | |
2172 | | class OPERATOR_ConvertTimeuuidToUnixTimestamp_77 : public BFOperator { |
2173 | | public: |
2174 | | OPERATOR_ConvertTimeuuidToUnixTimestamp_77( |
2175 | | BFOpcode opcode, |
2176 | | BFOpcode overloaded_opcode, |
2177 | | const BFDecl *op_decl) |
2178 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2179 | 28.1k | } |
2180 | | |
2181 | | template<typename PType, typename RType> |
2182 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2183 | 0 | const std::shared_ptr<RType>& result) { |
2184 | 0 | return ConvertTimeuuidToUnixTimestamp(params[0], result); |
2185 | 0 | } |
2186 | | |
2187 | | template<typename PType, typename RType> |
2188 | | static Status ExecRaw(const std::vector<PType*>& params, |
2189 | 0 | RType *result) { |
2190 | 0 | return ConvertTimeuuidToUnixTimestamp(params[0], result); |
2191 | 0 | } |
2192 | | |
2193 | | template<typename PType, typename RType> |
2194 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2195 | 4 | RType *result) { |
2196 | 4 | return ConvertTimeuuidToUnixTimestamp(&(*params)[0], result); |
2197 | 4 | } |
2198 | | }; |
2199 | | |
2200 | | class OPERATOR_ConvertToMaxTimeuuid_78 : public BFOperator { |
2201 | | public: |
2202 | | OPERATOR_ConvertToMaxTimeuuid_78( |
2203 | | BFOpcode opcode, |
2204 | | BFOpcode overloaded_opcode, |
2205 | | const BFDecl *op_decl) |
2206 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2207 | 28.1k | } |
2208 | | |
2209 | | template<typename PType, typename RType> |
2210 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2211 | 0 | const std::shared_ptr<RType>& result) { |
2212 | 0 | return ConvertToMaxTimeuuid(params[0], result); |
2213 | 0 | } |
2214 | | |
2215 | | template<typename PType, typename RType> |
2216 | | static Status ExecRaw(const std::vector<PType*>& params, |
2217 | 0 | RType *result) { |
2218 | 0 | return ConvertToMaxTimeuuid(params[0], result); |
2219 | 0 | } |
2220 | | |
2221 | | template<typename PType, typename RType> |
2222 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2223 | 8 | RType *result) { |
2224 | 8 | return ConvertToMaxTimeuuid(&(*params)[0], result); |
2225 | 8 | } |
2226 | | }; |
2227 | | |
2228 | | class OPERATOR_ConvertToMinTimeuuid_79 : public BFOperator { |
2229 | | public: |
2230 | | OPERATOR_ConvertToMinTimeuuid_79( |
2231 | | BFOpcode opcode, |
2232 | | BFOpcode overloaded_opcode, |
2233 | | const BFDecl *op_decl) |
2234 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2235 | 28.1k | } |
2236 | | |
2237 | | template<typename PType, typename RType> |
2238 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2239 | 0 | const std::shared_ptr<RType>& result) { |
2240 | 0 | return ConvertToMinTimeuuid(params[0], result); |
2241 | 0 | } |
2242 | | |
2243 | | template<typename PType, typename RType> |
2244 | | static Status ExecRaw(const std::vector<PType*>& params, |
2245 | 0 | RType *result) { |
2246 | 0 | return ConvertToMinTimeuuid(params[0], result); |
2247 | 0 | } |
2248 | | |
2249 | | template<typename PType, typename RType> |
2250 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2251 | 10 | RType *result) { |
2252 | 10 | return ConvertToMinTimeuuid(&(*params)[0], result); |
2253 | 10 | } |
2254 | | }; |
2255 | | |
2256 | | class OPERATOR_AddI64I64_80 : public BFOperator { |
2257 | | public: |
2258 | | OPERATOR_AddI64I64_80( |
2259 | | BFOpcode opcode, |
2260 | | BFOpcode overloaded_opcode, |
2261 | | const BFDecl *op_decl) |
2262 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2263 | 28.1k | } |
2264 | | |
2265 | | template<typename PType, typename RType> |
2266 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2267 | 0 | const std::shared_ptr<RType>& result) { |
2268 | 0 | return AddI64I64(params[0], params[1], result); |
2269 | 0 | } |
2270 | | |
2271 | | template<typename PType, typename RType> |
2272 | | static Status ExecRaw(const std::vector<PType*>& params, |
2273 | 0 | RType *result) { |
2274 | 0 | return AddI64I64(params[0], params[1], result); |
2275 | 0 | } |
2276 | | |
2277 | | template<typename PType, typename RType> |
2278 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2279 | 31 | RType *result) { |
2280 | 31 | return AddI64I64(&(*params)[0], &(*params)[1], result); |
2281 | 31 | } |
2282 | | }; |
2283 | | |
2284 | | class OPERATOR_AddDoubleDouble_81 : public BFOperator { |
2285 | | public: |
2286 | | OPERATOR_AddDoubleDouble_81( |
2287 | | BFOpcode opcode, |
2288 | | BFOpcode overloaded_opcode, |
2289 | | const BFDecl *op_decl) |
2290 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2291 | 28.1k | } |
2292 | | |
2293 | | template<typename PType, typename RType> |
2294 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2295 | 0 | const std::shared_ptr<RType>& result) { |
2296 | 0 | return AddDoubleDouble(params[0], params[1], result); |
2297 | 0 | } |
2298 | | |
2299 | | template<typename PType, typename RType> |
2300 | | static Status ExecRaw(const std::vector<PType*>& params, |
2301 | 0 | RType *result) { |
2302 | 0 | return AddDoubleDouble(params[0], params[1], result); |
2303 | 0 | } |
2304 | | |
2305 | | template<typename PType, typename RType> |
2306 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2307 | 0 | RType *result) { |
2308 | 0 | return AddDoubleDouble(&(*params)[0], &(*params)[1], result); |
2309 | 0 | } |
2310 | | }; |
2311 | | |
2312 | | class OPERATOR_AddStringString_82 : public BFOperator { |
2313 | | public: |
2314 | | OPERATOR_AddStringString_82( |
2315 | | BFOpcode opcode, |
2316 | | BFOpcode overloaded_opcode, |
2317 | | const BFDecl *op_decl) |
2318 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2319 | 28.1k | } |
2320 | | |
2321 | | template<typename PType, typename RType> |
2322 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2323 | 0 | const std::shared_ptr<RType>& result) { |
2324 | 0 | return AddStringString(params[0], params[1], result); |
2325 | 0 | } |
2326 | | |
2327 | | template<typename PType, typename RType> |
2328 | | static Status ExecRaw(const std::vector<PType*>& params, |
2329 | 0 | RType *result) { |
2330 | 0 | return AddStringString(params[0], params[1], result); |
2331 | 0 | } |
2332 | | |
2333 | | template<typename PType, typename RType> |
2334 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2335 | 0 | RType *result) { |
2336 | 0 | return AddStringString(&(*params)[0], &(*params)[1], result); |
2337 | 0 | } |
2338 | | }; |
2339 | | |
2340 | | class OPERATOR_AddStringDouble_83 : public BFOperator { |
2341 | | public: |
2342 | | OPERATOR_AddStringDouble_83( |
2343 | | BFOpcode opcode, |
2344 | | BFOpcode overloaded_opcode, |
2345 | | const BFDecl *op_decl) |
2346 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2347 | 28.1k | } |
2348 | | |
2349 | | template<typename PType, typename RType> |
2350 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2351 | 0 | const std::shared_ptr<RType>& result) { |
2352 | 0 | return AddStringDouble(params[0], params[1], result); |
2353 | 0 | } |
2354 | | |
2355 | | template<typename PType, typename RType> |
2356 | | static Status ExecRaw(const std::vector<PType*>& params, |
2357 | 0 | RType *result) { |
2358 | 0 | return AddStringDouble(params[0], params[1], result); |
2359 | 0 | } |
2360 | | |
2361 | | template<typename PType, typename RType> |
2362 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2363 | 0 | RType *result) { |
2364 | 0 | return AddStringDouble(&(*params)[0], &(*params)[1], result); |
2365 | 0 | } |
2366 | | }; |
2367 | | |
2368 | | class OPERATOR_AddDoubleString_84 : public BFOperator { |
2369 | | public: |
2370 | | OPERATOR_AddDoubleString_84( |
2371 | | BFOpcode opcode, |
2372 | | BFOpcode overloaded_opcode, |
2373 | | const BFDecl *op_decl) |
2374 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2375 | 28.1k | } |
2376 | | |
2377 | | template<typename PType, typename RType> |
2378 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2379 | 0 | const std::shared_ptr<RType>& result) { |
2380 | 0 | return AddDoubleString(params[0], params[1], result); |
2381 | 0 | } |
2382 | | |
2383 | | template<typename PType, typename RType> |
2384 | | static Status ExecRaw(const std::vector<PType*>& params, |
2385 | 0 | RType *result) { |
2386 | 0 | return AddDoubleString(params[0], params[1], result); |
2387 | 0 | } |
2388 | | |
2389 | | template<typename PType, typename RType> |
2390 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2391 | 0 | RType *result) { |
2392 | 0 | return AddDoubleString(&(*params)[0], &(*params)[1], result); |
2393 | 0 | } |
2394 | | }; |
2395 | | |
2396 | | class OPERATOR_SubI64I64_85 : public BFOperator { |
2397 | | public: |
2398 | | OPERATOR_SubI64I64_85( |
2399 | | BFOpcode opcode, |
2400 | | BFOpcode overloaded_opcode, |
2401 | | const BFDecl *op_decl) |
2402 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2403 | 28.1k | } |
2404 | | |
2405 | | template<typename PType, typename RType> |
2406 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2407 | 0 | const std::shared_ptr<RType>& result) { |
2408 | 0 | return SubI64I64(params[0], params[1], result); |
2409 | 0 | } |
2410 | | |
2411 | | template<typename PType, typename RType> |
2412 | | static Status ExecRaw(const std::vector<PType*>& params, |
2413 | 0 | RType *result) { |
2414 | 0 | return SubI64I64(params[0], params[1], result); |
2415 | 0 | } |
2416 | | |
2417 | | template<typename PType, typename RType> |
2418 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2419 | 27 | RType *result) { |
2420 | 27 | return SubI64I64(&(*params)[0], &(*params)[1], result); |
2421 | 27 | } |
2422 | | }; |
2423 | | |
2424 | | class OPERATOR_SubDoubleDouble_86 : public BFOperator { |
2425 | | public: |
2426 | | OPERATOR_SubDoubleDouble_86( |
2427 | | BFOpcode opcode, |
2428 | | BFOpcode overloaded_opcode, |
2429 | | const BFDecl *op_decl) |
2430 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2431 | 28.1k | } |
2432 | | |
2433 | | template<typename PType, typename RType> |
2434 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2435 | 0 | const std::shared_ptr<RType>& result) { |
2436 | 0 | return SubDoubleDouble(params[0], params[1], result); |
2437 | 0 | } |
2438 | | |
2439 | | template<typename PType, typename RType> |
2440 | | static Status ExecRaw(const std::vector<PType*>& params, |
2441 | 0 | RType *result) { |
2442 | 0 | return SubDoubleDouble(params[0], params[1], result); |
2443 | 0 | } |
2444 | | |
2445 | | template<typename PType, typename RType> |
2446 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2447 | 0 | RType *result) { |
2448 | 0 | return SubDoubleDouble(&(*params)[0], &(*params)[1], result); |
2449 | 0 | } |
2450 | | }; |
2451 | | |
2452 | | class OPERATOR_ServerOperator_87 : public BFOperator { |
2453 | | public: |
2454 | | OPERATOR_ServerOperator_87( |
2455 | | BFOpcode opcode, |
2456 | | BFOpcode overloaded_opcode, |
2457 | | const BFDecl *op_decl) |
2458 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2459 | 28.1k | } |
2460 | | |
2461 | | template<typename PType, typename RType> |
2462 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2463 | 0 | const std::shared_ptr<RType>& result) { |
2464 | 0 | return ServerOperator(params[0], params[1], result); |
2465 | 0 | } |
2466 | | |
2467 | | template<typename PType, typename RType> |
2468 | | static Status ExecRaw(const std::vector<PType*>& params, |
2469 | 0 | RType *result) { |
2470 | 0 | return ServerOperator(params[0], params[1], result); |
2471 | 0 | } |
2472 | | |
2473 | | template<typename PType, typename RType> |
2474 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2475 | 0 | RType *result) { |
2476 | 0 | return ServerOperator(&(*params)[0], &(*params)[1], result); |
2477 | 0 | } |
2478 | | }; |
2479 | | |
2480 | | class OPERATOR_ServerOperator_88 : public BFOperator { |
2481 | | public: |
2482 | | OPERATOR_ServerOperator_88( |
2483 | | BFOpcode opcode, |
2484 | | BFOpcode overloaded_opcode, |
2485 | | const BFDecl *op_decl) |
2486 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2487 | 28.1k | } |
2488 | | |
2489 | | template<typename PType, typename RType> |
2490 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2491 | 0 | const std::shared_ptr<RType>& result) { |
2492 | 0 | return ServerOperator(params[0], params[1], result); |
2493 | 0 | } |
2494 | | |
2495 | | template<typename PType, typename RType> |
2496 | | static Status ExecRaw(const std::vector<PType*>& params, |
2497 | 0 | RType *result) { |
2498 | 0 | return ServerOperator(params[0], params[1], result); |
2499 | 0 | } |
2500 | | |
2501 | | template<typename PType, typename RType> |
2502 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2503 | 0 | RType *result) { |
2504 | 0 | return ServerOperator(&(*params)[0], &(*params)[1], result); |
2505 | 0 | } |
2506 | | }; |
2507 | | |
2508 | | class OPERATOR_ServerOperator_89 : public BFOperator { |
2509 | | public: |
2510 | | OPERATOR_ServerOperator_89( |
2511 | | BFOpcode opcode, |
2512 | | BFOpcode overloaded_opcode, |
2513 | | const BFDecl *op_decl) |
2514 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2515 | 28.1k | } |
2516 | | |
2517 | | template<typename PType, typename RType> |
2518 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2519 | 0 | const std::shared_ptr<RType>& result) { |
2520 | 0 | return ServerOperator(params[0], params[1], result); |
2521 | 0 | } |
2522 | | |
2523 | | template<typename PType, typename RType> |
2524 | | static Status ExecRaw(const std::vector<PType*>& params, |
2525 | 0 | RType *result) { |
2526 | 0 | return ServerOperator(params[0], params[1], result); |
2527 | 0 | } |
2528 | | |
2529 | | template<typename PType, typename RType> |
2530 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2531 | 0 | RType *result) { |
2532 | 0 | return ServerOperator(&(*params)[0], &(*params)[1], result); |
2533 | 0 | } |
2534 | | }; |
2535 | | |
2536 | | class OPERATOR_ServerOperator_90 : public BFOperator { |
2537 | | public: |
2538 | | OPERATOR_ServerOperator_90( |
2539 | | BFOpcode opcode, |
2540 | | BFOpcode overloaded_opcode, |
2541 | | const BFDecl *op_decl) |
2542 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2543 | 28.1k | } |
2544 | | |
2545 | | template<typename PType, typename RType> |
2546 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2547 | 0 | const std::shared_ptr<RType>& result) { |
2548 | 0 | return ServerOperator(params[0], params[1], result); |
2549 | 0 | } |
2550 | | |
2551 | | template<typename PType, typename RType> |
2552 | | static Status ExecRaw(const std::vector<PType*>& params, |
2553 | 0 | RType *result) { |
2554 | 0 | return ServerOperator(params[0], params[1], result); |
2555 | 0 | } |
2556 | | |
2557 | | template<typename PType, typename RType> |
2558 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2559 | 0 | RType *result) { |
2560 | 0 | return ServerOperator(&(*params)[0], &(*params)[1], result); |
2561 | 0 | } |
2562 | | }; |
2563 | | |
2564 | | class OPERATOR_ServerOperator_91 : public BFOperator { |
2565 | | public: |
2566 | | OPERATOR_ServerOperator_91( |
2567 | | BFOpcode opcode, |
2568 | | BFOpcode overloaded_opcode, |
2569 | | const BFDecl *op_decl) |
2570 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2571 | 28.1k | } |
2572 | | |
2573 | | template<typename PType, typename RType> |
2574 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2575 | 0 | const std::shared_ptr<RType>& result) { |
2576 | 0 | return ServerOperator(params[0], params[1], result); |
2577 | 0 | } |
2578 | | |
2579 | | template<typename PType, typename RType> |
2580 | | static Status ExecRaw(const std::vector<PType*>& params, |
2581 | 0 | RType *result) { |
2582 | 0 | return ServerOperator(params[0], params[1], result); |
2583 | 0 | } |
2584 | | |
2585 | | template<typename PType, typename RType> |
2586 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2587 | 0 | RType *result) { |
2588 | 0 | return ServerOperator(&(*params)[0], &(*params)[1], result); |
2589 | 0 | } |
2590 | | }; |
2591 | | |
2592 | | class OPERATOR_ServerOperator_92 : public BFOperator { |
2593 | | public: |
2594 | | OPERATOR_ServerOperator_92( |
2595 | | BFOpcode opcode, |
2596 | | BFOpcode overloaded_opcode, |
2597 | | const BFDecl *op_decl) |
2598 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2599 | 28.1k | } |
2600 | | |
2601 | | template<typename PType, typename RType> |
2602 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2603 | 0 | const std::shared_ptr<RType>& result) { |
2604 | 0 | return ServerOperator(params[0], params[1], result); |
2605 | 0 | } |
2606 | | |
2607 | | template<typename PType, typename RType> |
2608 | | static Status ExecRaw(const std::vector<PType*>& params, |
2609 | 0 | RType *result) { |
2610 | 0 | return ServerOperator(params[0], params[1], result); |
2611 | 0 | } |
2612 | | |
2613 | | template<typename PType, typename RType> |
2614 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2615 | 0 | RType *result) { |
2616 | 0 | return ServerOperator(&(*params)[0], &(*params)[1], result); |
2617 | 0 | } |
2618 | | }; |
2619 | | |
2620 | | class OPERATOR_ServerOperator_93 : public BFOperator { |
2621 | | public: |
2622 | | OPERATOR_ServerOperator_93( |
2623 | | BFOpcode opcode, |
2624 | | BFOpcode overloaded_opcode, |
2625 | | const BFDecl *op_decl) |
2626 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2627 | 28.1k | } |
2628 | | |
2629 | | template<typename PType, typename RType> |
2630 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2631 | 0 | const std::shared_ptr<RType>& result) { |
2632 | 0 | return ServerOperator(params[0], params[1], result); |
2633 | 0 | } |
2634 | | |
2635 | | template<typename PType, typename RType> |
2636 | | static Status ExecRaw(const std::vector<PType*>& params, |
2637 | 0 | RType *result) { |
2638 | 0 | return ServerOperator(params[0], params[1], result); |
2639 | 0 | } |
2640 | | |
2641 | | template<typename PType, typename RType> |
2642 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2643 | 0 | RType *result) { |
2644 | 0 | return ServerOperator(&(*params)[0], &(*params)[1], result); |
2645 | 0 | } |
2646 | | }; |
2647 | | |
2648 | | class OPERATOR_Token_94 : public BFOperator { |
2649 | | public: |
2650 | | OPERATOR_Token_94( |
2651 | | BFOpcode opcode, |
2652 | | BFOpcode overloaded_opcode, |
2653 | | const BFDecl *op_decl) |
2654 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2655 | 28.1k | } |
2656 | | |
2657 | | template<typename PType, typename RType> |
2658 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2659 | 0 | const std::shared_ptr<RType>& result) { |
2660 | 0 | return Token(params, result); |
2661 | 0 | } |
2662 | | |
2663 | | template<typename PType, typename RType> |
2664 | | static Status ExecRaw(const std::vector<PType*>& params, |
2665 | 0 | RType *result) { |
2666 | 0 | return Token(params, result); |
2667 | 0 | } |
2668 | | |
2669 | | template<typename PType, typename RType> |
2670 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2671 | 8 | RType *result) { |
2672 | 8 | const auto count = params->size(); |
2673 | 8 | std::vector<PType*> local_params(count); |
2674 | 21 | for (size_t i = 0; i < count; i++13 ) { |
2675 | 13 | local_params[i] = &(*params)[i]; |
2676 | 13 | } |
2677 | 8 | return Token(local_params, result); |
2678 | 8 | } |
2679 | | }; |
2680 | | |
2681 | | class OPERATOR_PartitionHash_95 : public BFOperator { |
2682 | | public: |
2683 | | OPERATOR_PartitionHash_95( |
2684 | | BFOpcode opcode, |
2685 | | BFOpcode overloaded_opcode, |
2686 | | const BFDecl *op_decl) |
2687 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2688 | 28.1k | } |
2689 | | |
2690 | | template<typename PType, typename RType> |
2691 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2692 | 0 | const std::shared_ptr<RType>& result) { |
2693 | 0 | return PartitionHash(params, result); |
2694 | 0 | } |
2695 | | |
2696 | | template<typename PType, typename RType> |
2697 | | static Status ExecRaw(const std::vector<PType*>& params, |
2698 | 0 | RType *result) { |
2699 | 0 | return PartitionHash(params, result); |
2700 | 0 | } |
2701 | | |
2702 | | template<typename PType, typename RType> |
2703 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2704 | 5 | RType *result) { |
2705 | 5 | const auto count = params->size(); |
2706 | 5 | std::vector<PType*> local_params(count); |
2707 | 15 | for (size_t i = 0; i < count; i++10 ) { |
2708 | 10 | local_params[i] = &(*params)[i]; |
2709 | 10 | } |
2710 | 5 | return PartitionHash(local_params, result); |
2711 | 5 | } |
2712 | | }; |
2713 | | |
2714 | | class OPERATOR_IncCounter_96 : public BFOperator { |
2715 | | public: |
2716 | | OPERATOR_IncCounter_96( |
2717 | | BFOpcode opcode, |
2718 | | BFOpcode overloaded_opcode, |
2719 | | const BFDecl *op_decl) |
2720 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2721 | 28.1k | } |
2722 | | |
2723 | | template<typename PType, typename RType> |
2724 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2725 | 0 | const std::shared_ptr<RType>& result) { |
2726 | 0 | return IncCounter(params[0], params[1], result); |
2727 | 0 | } |
2728 | | |
2729 | | template<typename PType, typename RType> |
2730 | | static Status ExecRaw(const std::vector<PType*>& params, |
2731 | 0 | RType *result) { |
2732 | 0 | return IncCounter(params[0], params[1], result); |
2733 | 0 | } |
2734 | | |
2735 | | template<typename PType, typename RType> |
2736 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2737 | 15 | RType *result) { |
2738 | 15 | return IncCounter(&(*params)[0], &(*params)[1], result); |
2739 | 15 | } |
2740 | | }; |
2741 | | |
2742 | | class OPERATOR_DecCounter_97 : public BFOperator { |
2743 | | public: |
2744 | | OPERATOR_DecCounter_97( |
2745 | | BFOpcode opcode, |
2746 | | BFOpcode overloaded_opcode, |
2747 | | const BFDecl *op_decl) |
2748 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2749 | 28.1k | } |
2750 | | |
2751 | | template<typename PType, typename RType> |
2752 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2753 | 0 | const std::shared_ptr<RType>& result) { |
2754 | 0 | return DecCounter(params[0], params[1], result); |
2755 | 0 | } |
2756 | | |
2757 | | template<typename PType, typename RType> |
2758 | | static Status ExecRaw(const std::vector<PType*>& params, |
2759 | 0 | RType *result) { |
2760 | 0 | return DecCounter(params[0], params[1], result); |
2761 | 0 | } |
2762 | | |
2763 | | template<typename PType, typename RType> |
2764 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2765 | 4 | RType *result) { |
2766 | 4 | return DecCounter(&(*params)[0], &(*params)[1], result); |
2767 | 4 | } |
2768 | | }; |
2769 | | |
2770 | | class OPERATOR_NowTimeUuid_98 : public BFOperator { |
2771 | | public: |
2772 | | OPERATOR_NowTimeUuid_98( |
2773 | | BFOpcode opcode, |
2774 | | BFOpcode overloaded_opcode, |
2775 | | const BFDecl *op_decl) |
2776 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2777 | 28.1k | } |
2778 | | |
2779 | | template<typename PType, typename RType> |
2780 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2781 | 0 | const std::shared_ptr<RType>& result) { |
2782 | 0 | return NowTimeUuid(result); |
2783 | 0 | } |
2784 | | |
2785 | | template<typename PType, typename RType> |
2786 | | static Status ExecRaw(const std::vector<PType*>& params, |
2787 | 0 | RType *result) { |
2788 | 0 | return NowTimeUuid(result); |
2789 | 0 | } |
2790 | | |
2791 | | template<typename PType, typename RType> |
2792 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2793 | 59 | RType *result) { |
2794 | 59 | return NowTimeUuid(result); |
2795 | 59 | } |
2796 | | }; |
2797 | | |
2798 | | class OPERATOR_ServerOperator_99 : public BFOperator { |
2799 | | public: |
2800 | | OPERATOR_ServerOperator_99( |
2801 | | BFOpcode opcode, |
2802 | | BFOpcode overloaded_opcode, |
2803 | | const BFDecl *op_decl) |
2804 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2805 | 28.1k | } |
2806 | | |
2807 | | template<typename PType, typename RType> |
2808 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2809 | 0 | const std::shared_ptr<RType>& result) { |
2810 | 0 | return ServerOperator(params[0], result); |
2811 | 0 | } |
2812 | | |
2813 | | template<typename PType, typename RType> |
2814 | | static Status ExecRaw(const std::vector<PType*>& params, |
2815 | 0 | RType *result) { |
2816 | 0 | return ServerOperator(params[0], result); |
2817 | 0 | } |
2818 | | |
2819 | | template<typename PType, typename RType> |
2820 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2821 | 0 | RType *result) { |
2822 | 0 | return ServerOperator(&(*params)[0], result); |
2823 | 0 | } |
2824 | | }; |
2825 | | |
2826 | | class OPERATOR_ServerOperator_100 : public BFOperator { |
2827 | | public: |
2828 | | OPERATOR_ServerOperator_100( |
2829 | | BFOpcode opcode, |
2830 | | BFOpcode overloaded_opcode, |
2831 | | const BFDecl *op_decl) |
2832 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2833 | 28.1k | } |
2834 | | |
2835 | | template<typename PType, typename RType> |
2836 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2837 | 0 | const std::shared_ptr<RType>& result) { |
2838 | 0 | return ServerOperator(params[0], result); |
2839 | 0 | } |
2840 | | |
2841 | | template<typename PType, typename RType> |
2842 | | static Status ExecRaw(const std::vector<PType*>& params, |
2843 | 0 | RType *result) { |
2844 | 0 | return ServerOperator(params[0], result); |
2845 | 0 | } |
2846 | | |
2847 | | template<typename PType, typename RType> |
2848 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2849 | 0 | RType *result) { |
2850 | 0 | return ServerOperator(&(*params)[0], result); |
2851 | 0 | } |
2852 | | }; |
2853 | | |
2854 | | class OPERATOR_ServerOperator_101 : public BFOperator { |
2855 | | public: |
2856 | | OPERATOR_ServerOperator_101( |
2857 | | BFOpcode opcode, |
2858 | | BFOpcode overloaded_opcode, |
2859 | | const BFDecl *op_decl) |
2860 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2861 | 28.1k | } |
2862 | | |
2863 | | template<typename PType, typename RType> |
2864 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2865 | 0 | const std::shared_ptr<RType>& result) { |
2866 | 0 | return ServerOperator(params[0], result); |
2867 | 0 | } |
2868 | | |
2869 | | template<typename PType, typename RType> |
2870 | | static Status ExecRaw(const std::vector<PType*>& params, |
2871 | 0 | RType *result) { |
2872 | 0 | return ServerOperator(params[0], result); |
2873 | 0 | } |
2874 | | |
2875 | | template<typename PType, typename RType> |
2876 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2877 | 0 | RType *result) { |
2878 | 0 | return ServerOperator(&(*params)[0], result); |
2879 | 0 | } |
2880 | | }; |
2881 | | |
2882 | | class OPERATOR_ServerOperator_102 : public BFOperator { |
2883 | | public: |
2884 | | OPERATOR_ServerOperator_102( |
2885 | | BFOpcode opcode, |
2886 | | BFOpcode overloaded_opcode, |
2887 | | const BFDecl *op_decl) |
2888 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2889 | 28.1k | } |
2890 | | |
2891 | | template<typename PType, typename RType> |
2892 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2893 | 0 | const std::shared_ptr<RType>& result) { |
2894 | 0 | return ServerOperator(params[0], result); |
2895 | 0 | } |
2896 | | |
2897 | | template<typename PType, typename RType> |
2898 | | static Status ExecRaw(const std::vector<PType*>& params, |
2899 | 0 | RType *result) { |
2900 | 0 | return ServerOperator(params[0], result); |
2901 | 0 | } |
2902 | | |
2903 | | template<typename PType, typename RType> |
2904 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2905 | 0 | RType *result) { |
2906 | 0 | return ServerOperator(&(*params)[0], result); |
2907 | 0 | } |
2908 | | }; |
2909 | | |
2910 | | class OPERATOR_ServerOperator_103 : public BFOperator { |
2911 | | public: |
2912 | | OPERATOR_ServerOperator_103( |
2913 | | BFOpcode opcode, |
2914 | | BFOpcode overloaded_opcode, |
2915 | | const BFDecl *op_decl) |
2916 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2917 | 28.1k | } |
2918 | | |
2919 | | template<typename PType, typename RType> |
2920 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2921 | 0 | const std::shared_ptr<RType>& result) { |
2922 | 0 | return ServerOperator(params[0], result); |
2923 | 0 | } |
2924 | | |
2925 | | template<typename PType, typename RType> |
2926 | | static Status ExecRaw(const std::vector<PType*>& params, |
2927 | 0 | RType *result) { |
2928 | 0 | return ServerOperator(params[0], result); |
2929 | 0 | } |
2930 | | |
2931 | | template<typename PType, typename RType> |
2932 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2933 | 0 | RType *result) { |
2934 | 0 | return ServerOperator(&(*params)[0], result); |
2935 | 0 | } |
2936 | | }; |
2937 | | |
2938 | | class OPERATOR_ServerOperator_104 : public BFOperator { |
2939 | | public: |
2940 | | OPERATOR_ServerOperator_104( |
2941 | | BFOpcode opcode, |
2942 | | BFOpcode overloaded_opcode, |
2943 | | const BFDecl *op_decl) |
2944 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2945 | 28.1k | } |
2946 | | |
2947 | | template<typename PType, typename RType> |
2948 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2949 | 0 | const std::shared_ptr<RType>& result) { |
2950 | 0 | return ServerOperator(params[0], result); |
2951 | 0 | } |
2952 | | |
2953 | | template<typename PType, typename RType> |
2954 | | static Status ExecRaw(const std::vector<PType*>& params, |
2955 | 0 | RType *result) { |
2956 | 0 | return ServerOperator(params[0], result); |
2957 | 0 | } |
2958 | | |
2959 | | template<typename PType, typename RType> |
2960 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2961 | 0 | RType *result) { |
2962 | 0 | return ServerOperator(&(*params)[0], result); |
2963 | 0 | } |
2964 | | }; |
2965 | | |
2966 | | class OPERATOR_ServerOperator_105 : public BFOperator { |
2967 | | public: |
2968 | | OPERATOR_ServerOperator_105( |
2969 | | BFOpcode opcode, |
2970 | | BFOpcode overloaded_opcode, |
2971 | | const BFDecl *op_decl) |
2972 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
2973 | 28.1k | } |
2974 | | |
2975 | | template<typename PType, typename RType> |
2976 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
2977 | 0 | const std::shared_ptr<RType>& result) { |
2978 | 0 | return ServerOperator(params[0], result); |
2979 | 0 | } |
2980 | | |
2981 | | template<typename PType, typename RType> |
2982 | | static Status ExecRaw(const std::vector<PType*>& params, |
2983 | 0 | RType *result) { |
2984 | 0 | return ServerOperator(params[0], result); |
2985 | 0 | } |
2986 | | |
2987 | | template<typename PType, typename RType> |
2988 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
2989 | 0 | RType *result) { |
2990 | 0 | return ServerOperator(&(*params)[0], result); |
2991 | 0 | } |
2992 | | }; |
2993 | | |
2994 | | class OPERATOR_ServerOperator_106 : public BFOperator { |
2995 | | public: |
2996 | | OPERATOR_ServerOperator_106( |
2997 | | BFOpcode opcode, |
2998 | | BFOpcode overloaded_opcode, |
2999 | | const BFDecl *op_decl) |
3000 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3001 | 28.1k | } |
3002 | | |
3003 | | template<typename PType, typename RType> |
3004 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3005 | 0 | const std::shared_ptr<RType>& result) { |
3006 | 0 | return ServerOperator(params[0], result); |
3007 | 0 | } |
3008 | | |
3009 | | template<typename PType, typename RType> |
3010 | | static Status ExecRaw(const std::vector<PType*>& params, |
3011 | 0 | RType *result) { |
3012 | 0 | return ServerOperator(params[0], result); |
3013 | 0 | } |
3014 | | |
3015 | | template<typename PType, typename RType> |
3016 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3017 | 0 | RType *result) { |
3018 | 0 | return ServerOperator(&(*params)[0], result); |
3019 | 0 | } |
3020 | | }; |
3021 | | |
3022 | | class OPERATOR_ServerOperator_107 : public BFOperator { |
3023 | | public: |
3024 | | OPERATOR_ServerOperator_107( |
3025 | | BFOpcode opcode, |
3026 | | BFOpcode overloaded_opcode, |
3027 | | const BFDecl *op_decl) |
3028 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3029 | 28.1k | } |
3030 | | |
3031 | | template<typename PType, typename RType> |
3032 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3033 | 0 | const std::shared_ptr<RType>& result) { |
3034 | 0 | return ServerOperator(params[0], result); |
3035 | 0 | } |
3036 | | |
3037 | | template<typename PType, typename RType> |
3038 | | static Status ExecRaw(const std::vector<PType*>& params, |
3039 | 0 | RType *result) { |
3040 | 0 | return ServerOperator(params[0], result); |
3041 | 0 | } |
3042 | | |
3043 | | template<typename PType, typename RType> |
3044 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3045 | 0 | RType *result) { |
3046 | 0 | return ServerOperator(&(*params)[0], result); |
3047 | 0 | } |
3048 | | }; |
3049 | | |
3050 | | class OPERATOR_ServerOperator_108 : public BFOperator { |
3051 | | public: |
3052 | | OPERATOR_ServerOperator_108( |
3053 | | BFOpcode opcode, |
3054 | | BFOpcode overloaded_opcode, |
3055 | | const BFDecl *op_decl) |
3056 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3057 | 28.1k | } |
3058 | | |
3059 | | template<typename PType, typename RType> |
3060 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3061 | 0 | const std::shared_ptr<RType>& result) { |
3062 | 0 | return ServerOperator(params[0], result); |
3063 | 0 | } |
3064 | | |
3065 | | template<typename PType, typename RType> |
3066 | | static Status ExecRaw(const std::vector<PType*>& params, |
3067 | 0 | RType *result) { |
3068 | 0 | return ServerOperator(params[0], result); |
3069 | 0 | } |
3070 | | |
3071 | | template<typename PType, typename RType> |
3072 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3073 | 0 | RType *result) { |
3074 | 0 | return ServerOperator(&(*params)[0], result); |
3075 | 0 | } |
3076 | | }; |
3077 | | |
3078 | | class OPERATOR_ServerOperator_109 : public BFOperator { |
3079 | | public: |
3080 | | OPERATOR_ServerOperator_109( |
3081 | | BFOpcode opcode, |
3082 | | BFOpcode overloaded_opcode, |
3083 | | const BFDecl *op_decl) |
3084 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3085 | 28.1k | } |
3086 | | |
3087 | | template<typename PType, typename RType> |
3088 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3089 | 0 | const std::shared_ptr<RType>& result) { |
3090 | 0 | return ServerOperator(params[0], result); |
3091 | 0 | } |
3092 | | |
3093 | | template<typename PType, typename RType> |
3094 | | static Status ExecRaw(const std::vector<PType*>& params, |
3095 | 0 | RType *result) { |
3096 | 0 | return ServerOperator(params[0], result); |
3097 | 0 | } |
3098 | | |
3099 | | template<typename PType, typename RType> |
3100 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3101 | 0 | RType *result) { |
3102 | 0 | return ServerOperator(&(*params)[0], result); |
3103 | 0 | } |
3104 | | }; |
3105 | | |
3106 | | class OPERATOR_ServerOperator_110 : public BFOperator { |
3107 | | public: |
3108 | | OPERATOR_ServerOperator_110( |
3109 | | BFOpcode opcode, |
3110 | | BFOpcode overloaded_opcode, |
3111 | | const BFDecl *op_decl) |
3112 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3113 | 28.1k | } |
3114 | | |
3115 | | template<typename PType, typename RType> |
3116 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3117 | 0 | const std::shared_ptr<RType>& result) { |
3118 | 0 | return ServerOperator(params[0], result); |
3119 | 0 | } |
3120 | | |
3121 | | template<typename PType, typename RType> |
3122 | | static Status ExecRaw(const std::vector<PType*>& params, |
3123 | 0 | RType *result) { |
3124 | 0 | return ServerOperator(params[0], result); |
3125 | 0 | } |
3126 | | |
3127 | | template<typename PType, typename RType> |
3128 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3129 | 0 | RType *result) { |
3130 | 0 | return ServerOperator(&(*params)[0], result); |
3131 | 0 | } |
3132 | | }; |
3133 | | |
3134 | | class OPERATOR_ServerOperator_111 : public BFOperator { |
3135 | | public: |
3136 | | OPERATOR_ServerOperator_111( |
3137 | | BFOpcode opcode, |
3138 | | BFOpcode overloaded_opcode, |
3139 | | const BFDecl *op_decl) |
3140 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3141 | 28.1k | } |
3142 | | |
3143 | | template<typename PType, typename RType> |
3144 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3145 | 0 | const std::shared_ptr<RType>& result) { |
3146 | 0 | return ServerOperator(params[0], result); |
3147 | 0 | } |
3148 | | |
3149 | | template<typename PType, typename RType> |
3150 | | static Status ExecRaw(const std::vector<PType*>& params, |
3151 | 0 | RType *result) { |
3152 | 0 | return ServerOperator(params[0], result); |
3153 | 0 | } |
3154 | | |
3155 | | template<typename PType, typename RType> |
3156 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3157 | 0 | RType *result) { |
3158 | 0 | return ServerOperator(&(*params)[0], result); |
3159 | 0 | } |
3160 | | }; |
3161 | | |
3162 | | class OPERATOR_ServerOperator_112 : public BFOperator { |
3163 | | public: |
3164 | | OPERATOR_ServerOperator_112( |
3165 | | BFOpcode opcode, |
3166 | | BFOpcode overloaded_opcode, |
3167 | | const BFDecl *op_decl) |
3168 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3169 | 28.1k | } |
3170 | | |
3171 | | template<typename PType, typename RType> |
3172 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3173 | 0 | const std::shared_ptr<RType>& result) { |
3174 | 0 | return ServerOperator(params[0], result); |
3175 | 0 | } |
3176 | | |
3177 | | template<typename PType, typename RType> |
3178 | | static Status ExecRaw(const std::vector<PType*>& params, |
3179 | 0 | RType *result) { |
3180 | 0 | return ServerOperator(params[0], result); |
3181 | 0 | } |
3182 | | |
3183 | | template<typename PType, typename RType> |
3184 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3185 | 0 | RType *result) { |
3186 | 0 | return ServerOperator(&(*params)[0], result); |
3187 | 0 | } |
3188 | | }; |
3189 | | |
3190 | | class OPERATOR_ServerOperator_113 : public BFOperator { |
3191 | | public: |
3192 | | OPERATOR_ServerOperator_113( |
3193 | | BFOpcode opcode, |
3194 | | BFOpcode overloaded_opcode, |
3195 | | const BFDecl *op_decl) |
3196 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3197 | 28.1k | } |
3198 | | |
3199 | | template<typename PType, typename RType> |
3200 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3201 | 0 | const std::shared_ptr<RType>& result) { |
3202 | 0 | return ServerOperator(params[0], result); |
3203 | 0 | } |
3204 | | |
3205 | | template<typename PType, typename RType> |
3206 | | static Status ExecRaw(const std::vector<PType*>& params, |
3207 | 0 | RType *result) { |
3208 | 0 | return ServerOperator(params[0], result); |
3209 | 0 | } |
3210 | | |
3211 | | template<typename PType, typename RType> |
3212 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3213 | 0 | RType *result) { |
3214 | 0 | return ServerOperator(&(*params)[0], result); |
3215 | 0 | } |
3216 | | }; |
3217 | | |
3218 | | class OPERATOR_ServerOperator_114 : public BFOperator { |
3219 | | public: |
3220 | | OPERATOR_ServerOperator_114( |
3221 | | BFOpcode opcode, |
3222 | | BFOpcode overloaded_opcode, |
3223 | | const BFDecl *op_decl) |
3224 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3225 | 28.1k | } |
3226 | | |
3227 | | template<typename PType, typename RType> |
3228 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3229 | 0 | const std::shared_ptr<RType>& result) { |
3230 | 0 | return ServerOperator(params[0], result); |
3231 | 0 | } |
3232 | | |
3233 | | template<typename PType, typename RType> |
3234 | | static Status ExecRaw(const std::vector<PType*>& params, |
3235 | 0 | RType *result) { |
3236 | 0 | return ServerOperator(params[0], result); |
3237 | 0 | } |
3238 | | |
3239 | | template<typename PType, typename RType> |
3240 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3241 | 0 | RType *result) { |
3242 | 0 | return ServerOperator(&(*params)[0], result); |
3243 | 0 | } |
3244 | | }; |
3245 | | |
3246 | | class OPERATOR_ServerOperator_115 : public BFOperator { |
3247 | | public: |
3248 | | OPERATOR_ServerOperator_115( |
3249 | | BFOpcode opcode, |
3250 | | BFOpcode overloaded_opcode, |
3251 | | const BFDecl *op_decl) |
3252 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3253 | 28.1k | } |
3254 | | |
3255 | | template<typename PType, typename RType> |
3256 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3257 | 0 | const std::shared_ptr<RType>& result) { |
3258 | 0 | return ServerOperator(params[0], result); |
3259 | 0 | } |
3260 | | |
3261 | | template<typename PType, typename RType> |
3262 | | static Status ExecRaw(const std::vector<PType*>& params, |
3263 | 0 | RType *result) { |
3264 | 0 | return ServerOperator(params[0], result); |
3265 | 0 | } |
3266 | | |
3267 | | template<typename PType, typename RType> |
3268 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3269 | 0 | RType *result) { |
3270 | 0 | return ServerOperator(&(*params)[0], result); |
3271 | 0 | } |
3272 | | }; |
3273 | | |
3274 | | class OPERATOR_ServerOperator_116 : public BFOperator { |
3275 | | public: |
3276 | | OPERATOR_ServerOperator_116( |
3277 | | BFOpcode opcode, |
3278 | | BFOpcode overloaded_opcode, |
3279 | | const BFDecl *op_decl) |
3280 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3281 | 28.1k | } |
3282 | | |
3283 | | template<typename PType, typename RType> |
3284 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3285 | 0 | const std::shared_ptr<RType>& result) { |
3286 | 0 | return ServerOperator(params[0], result); |
3287 | 0 | } |
3288 | | |
3289 | | template<typename PType, typename RType> |
3290 | | static Status ExecRaw(const std::vector<PType*>& params, |
3291 | 0 | RType *result) { |
3292 | 0 | return ServerOperator(params[0], result); |
3293 | 0 | } |
3294 | | |
3295 | | template<typename PType, typename RType> |
3296 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3297 | 0 | RType *result) { |
3298 | 0 | return ServerOperator(&(*params)[0], result); |
3299 | 0 | } |
3300 | | }; |
3301 | | |
3302 | | class OPERATOR_ServerOperator_117 : public BFOperator { |
3303 | | public: |
3304 | | OPERATOR_ServerOperator_117( |
3305 | | BFOpcode opcode, |
3306 | | BFOpcode overloaded_opcode, |
3307 | | const BFDecl *op_decl) |
3308 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3309 | 28.1k | } |
3310 | | |
3311 | | template<typename PType, typename RType> |
3312 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3313 | 0 | const std::shared_ptr<RType>& result) { |
3314 | 0 | return ServerOperator(params[0], result); |
3315 | 0 | } |
3316 | | |
3317 | | template<typename PType, typename RType> |
3318 | | static Status ExecRaw(const std::vector<PType*>& params, |
3319 | 0 | RType *result) { |
3320 | 0 | return ServerOperator(params[0], result); |
3321 | 0 | } |
3322 | | |
3323 | | template<typename PType, typename RType> |
3324 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3325 | 0 | RType *result) { |
3326 | 0 | return ServerOperator(&(*params)[0], result); |
3327 | 0 | } |
3328 | | }; |
3329 | | |
3330 | | class OPERATOR_ServerOperator_118 : public BFOperator { |
3331 | | public: |
3332 | | OPERATOR_ServerOperator_118( |
3333 | | BFOpcode opcode, |
3334 | | BFOpcode overloaded_opcode, |
3335 | | const BFDecl *op_decl) |
3336 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3337 | 28.1k | } |
3338 | | |
3339 | | template<typename PType, typename RType> |
3340 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3341 | 0 | const std::shared_ptr<RType>& result) { |
3342 | 0 | return ServerOperator(params[0], result); |
3343 | 0 | } |
3344 | | |
3345 | | template<typename PType, typename RType> |
3346 | | static Status ExecRaw(const std::vector<PType*>& params, |
3347 | 0 | RType *result) { |
3348 | 0 | return ServerOperator(params[0], result); |
3349 | 0 | } |
3350 | | |
3351 | | template<typename PType, typename RType> |
3352 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3353 | 0 | RType *result) { |
3354 | 0 | return ServerOperator(&(*params)[0], result); |
3355 | 0 | } |
3356 | | }; |
3357 | | |
3358 | | class OPERATOR_ServerOperator_119 : public BFOperator { |
3359 | | public: |
3360 | | OPERATOR_ServerOperator_119( |
3361 | | BFOpcode opcode, |
3362 | | BFOpcode overloaded_opcode, |
3363 | | const BFDecl *op_decl) |
3364 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3365 | 28.1k | } |
3366 | | |
3367 | | template<typename PType, typename RType> |
3368 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3369 | 0 | const std::shared_ptr<RType>& result) { |
3370 | 0 | return ServerOperator(params[0], result); |
3371 | 0 | } |
3372 | | |
3373 | | template<typename PType, typename RType> |
3374 | | static Status ExecRaw(const std::vector<PType*>& params, |
3375 | 0 | RType *result) { |
3376 | 0 | return ServerOperator(params[0], result); |
3377 | 0 | } |
3378 | | |
3379 | | template<typename PType, typename RType> |
3380 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3381 | 0 | RType *result) { |
3382 | 0 | return ServerOperator(&(*params)[0], result); |
3383 | 0 | } |
3384 | | }; |
3385 | | |
3386 | | class OPERATOR_ConvertVarintToI8_120 : public BFOperator { |
3387 | | public: |
3388 | | OPERATOR_ConvertVarintToI8_120( |
3389 | | BFOpcode opcode, |
3390 | | BFOpcode overloaded_opcode, |
3391 | | const BFDecl *op_decl) |
3392 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3393 | 28.1k | } |
3394 | | |
3395 | | template<typename PType, typename RType> |
3396 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3397 | 0 | const std::shared_ptr<RType>& result) { |
3398 | 0 | return ConvertVarintToI8(params[0], result); |
3399 | 0 | } |
3400 | | |
3401 | | template<typename PType, typename RType> |
3402 | | static Status ExecRaw(const std::vector<PType*>& params, |
3403 | 0 | RType *result) { |
3404 | 0 | return ConvertVarintToI8(params[0], result); |
3405 | 0 | } |
3406 | | |
3407 | | template<typename PType, typename RType> |
3408 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3409 | 1 | RType *result) { |
3410 | 1 | return ConvertVarintToI8(&(*params)[0], result); |
3411 | 1 | } |
3412 | | }; |
3413 | | |
3414 | | class OPERATOR_ConvertVarintToI16_121 : public BFOperator { |
3415 | | public: |
3416 | | OPERATOR_ConvertVarintToI16_121( |
3417 | | BFOpcode opcode, |
3418 | | BFOpcode overloaded_opcode, |
3419 | | const BFDecl *op_decl) |
3420 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3421 | 28.1k | } |
3422 | | |
3423 | | template<typename PType, typename RType> |
3424 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3425 | 0 | const std::shared_ptr<RType>& result) { |
3426 | 0 | return ConvertVarintToI16(params[0], result); |
3427 | 0 | } |
3428 | | |
3429 | | template<typename PType, typename RType> |
3430 | | static Status ExecRaw(const std::vector<PType*>& params, |
3431 | 0 | RType *result) { |
3432 | 0 | return ConvertVarintToI16(params[0], result); |
3433 | 0 | } |
3434 | | |
3435 | | template<typename PType, typename RType> |
3436 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3437 | 1 | RType *result) { |
3438 | 1 | return ConvertVarintToI16(&(*params)[0], result); |
3439 | 1 | } |
3440 | | }; |
3441 | | |
3442 | | class OPERATOR_ConvertVarintToI32_122 : public BFOperator { |
3443 | | public: |
3444 | | OPERATOR_ConvertVarintToI32_122( |
3445 | | BFOpcode opcode, |
3446 | | BFOpcode overloaded_opcode, |
3447 | | const BFDecl *op_decl) |
3448 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3449 | 28.1k | } |
3450 | | |
3451 | | template<typename PType, typename RType> |
3452 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3453 | 0 | const std::shared_ptr<RType>& result) { |
3454 | 0 | return ConvertVarintToI32(params[0], result); |
3455 | 0 | } |
3456 | | |
3457 | | template<typename PType, typename RType> |
3458 | | static Status ExecRaw(const std::vector<PType*>& params, |
3459 | 0 | RType *result) { |
3460 | 0 | return ConvertVarintToI32(params[0], result); |
3461 | 0 | } |
3462 | | |
3463 | | template<typename PType, typename RType> |
3464 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3465 | 2 | RType *result) { |
3466 | 2 | return ConvertVarintToI32(&(*params)[0], result); |
3467 | 2 | } |
3468 | | }; |
3469 | | |
3470 | | class OPERATOR_ConvertVarintToI64_123 : public BFOperator { |
3471 | | public: |
3472 | | OPERATOR_ConvertVarintToI64_123( |
3473 | | BFOpcode opcode, |
3474 | | BFOpcode overloaded_opcode, |
3475 | | const BFDecl *op_decl) |
3476 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3477 | 28.1k | } |
3478 | | |
3479 | | template<typename PType, typename RType> |
3480 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3481 | 0 | const std::shared_ptr<RType>& result) { |
3482 | 0 | return ConvertVarintToI64(params[0], result); |
3483 | 0 | } |
3484 | | |
3485 | | template<typename PType, typename RType> |
3486 | | static Status ExecRaw(const std::vector<PType*>& params, |
3487 | 0 | RType *result) { |
3488 | 0 | return ConvertVarintToI64(params[0], result); |
3489 | 0 | } |
3490 | | |
3491 | | template<typename PType, typename RType> |
3492 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3493 | 10 | RType *result) { |
3494 | 10 | return ConvertVarintToI64(&(*params)[0], result); |
3495 | 10 | } |
3496 | | }; |
3497 | | |
3498 | | class OPERATOR_ConvertVarintToFloat_124 : public BFOperator { |
3499 | | public: |
3500 | | OPERATOR_ConvertVarintToFloat_124( |
3501 | | BFOpcode opcode, |
3502 | | BFOpcode overloaded_opcode, |
3503 | | const BFDecl *op_decl) |
3504 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3505 | 28.1k | } |
3506 | | |
3507 | | template<typename PType, typename RType> |
3508 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3509 | 0 | const std::shared_ptr<RType>& result) { |
3510 | 0 | return ConvertVarintToFloat(params[0], result); |
3511 | 0 | } |
3512 | | |
3513 | | template<typename PType, typename RType> |
3514 | | static Status ExecRaw(const std::vector<PType*>& params, |
3515 | 0 | RType *result) { |
3516 | 0 | return ConvertVarintToFloat(params[0], result); |
3517 | 0 | } |
3518 | | |
3519 | | template<typename PType, typename RType> |
3520 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3521 | 0 | RType *result) { |
3522 | 0 | return ConvertVarintToFloat(&(*params)[0], result); |
3523 | 0 | } |
3524 | | }; |
3525 | | |
3526 | | class OPERATOR_ConvertVarintToDouble_125 : public BFOperator { |
3527 | | public: |
3528 | | OPERATOR_ConvertVarintToDouble_125( |
3529 | | BFOpcode opcode, |
3530 | | BFOpcode overloaded_opcode, |
3531 | | const BFDecl *op_decl) |
3532 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3533 | 28.1k | } |
3534 | | |
3535 | | template<typename PType, typename RType> |
3536 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3537 | 0 | const std::shared_ptr<RType>& result) { |
3538 | 0 | return ConvertVarintToDouble(params[0], result); |
3539 | 0 | } |
3540 | | |
3541 | | template<typename PType, typename RType> |
3542 | | static Status ExecRaw(const std::vector<PType*>& params, |
3543 | 0 | RType *result) { |
3544 | 0 | return ConvertVarintToDouble(params[0], result); |
3545 | 0 | } |
3546 | | |
3547 | | template<typename PType, typename RType> |
3548 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3549 | 0 | RType *result) { |
3550 | 0 | return ConvertVarintToDouble(&(*params)[0], result); |
3551 | 0 | } |
3552 | | }; |
3553 | | |
3554 | | class OPERATOR_ConvertI8ToVarint_126 : public BFOperator { |
3555 | | public: |
3556 | | OPERATOR_ConvertI8ToVarint_126( |
3557 | | BFOpcode opcode, |
3558 | | BFOpcode overloaded_opcode, |
3559 | | const BFDecl *op_decl) |
3560 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3561 | 28.1k | } |
3562 | | |
3563 | | template<typename PType, typename RType> |
3564 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3565 | 0 | const std::shared_ptr<RType>& result) { |
3566 | 0 | return ConvertI8ToVarint(params[0], result); |
3567 | 0 | } |
3568 | | |
3569 | | template<typename PType, typename RType> |
3570 | | static Status ExecRaw(const std::vector<PType*>& params, |
3571 | 0 | RType *result) { |
3572 | 0 | return ConvertI8ToVarint(params[0], result); |
3573 | 0 | } |
3574 | | |
3575 | | template<typename PType, typename RType> |
3576 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3577 | 0 | RType *result) { |
3578 | 0 | return ConvertI8ToVarint(&(*params)[0], result); |
3579 | 0 | } |
3580 | | }; |
3581 | | |
3582 | | class OPERATOR_ConvertI16ToVarint_127 : public BFOperator { |
3583 | | public: |
3584 | | OPERATOR_ConvertI16ToVarint_127( |
3585 | | BFOpcode opcode, |
3586 | | BFOpcode overloaded_opcode, |
3587 | | const BFDecl *op_decl) |
3588 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3589 | 28.1k | } |
3590 | | |
3591 | | template<typename PType, typename RType> |
3592 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3593 | 0 | const std::shared_ptr<RType>& result) { |
3594 | 0 | return ConvertI16ToVarint(params[0], result); |
3595 | 0 | } |
3596 | | |
3597 | | template<typename PType, typename RType> |
3598 | | static Status ExecRaw(const std::vector<PType*>& params, |
3599 | 0 | RType *result) { |
3600 | 0 | return ConvertI16ToVarint(params[0], result); |
3601 | 0 | } |
3602 | | |
3603 | | template<typename PType, typename RType> |
3604 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3605 | 0 | RType *result) { |
3606 | 0 | return ConvertI16ToVarint(&(*params)[0], result); |
3607 | 0 | } |
3608 | | }; |
3609 | | |
3610 | | class OPERATOR_ConvertI32ToVarint_128 : public BFOperator { |
3611 | | public: |
3612 | | OPERATOR_ConvertI32ToVarint_128( |
3613 | | BFOpcode opcode, |
3614 | | BFOpcode overloaded_opcode, |
3615 | | const BFDecl *op_decl) |
3616 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3617 | 28.1k | } |
3618 | | |
3619 | | template<typename PType, typename RType> |
3620 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3621 | 0 | const std::shared_ptr<RType>& result) { |
3622 | 0 | return ConvertI32ToVarint(params[0], result); |
3623 | 0 | } |
3624 | | |
3625 | | template<typename PType, typename RType> |
3626 | | static Status ExecRaw(const std::vector<PType*>& params, |
3627 | 0 | RType *result) { |
3628 | 0 | return ConvertI32ToVarint(params[0], result); |
3629 | 0 | } |
3630 | | |
3631 | | template<typename PType, typename RType> |
3632 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3633 | 0 | RType *result) { |
3634 | 0 | return ConvertI32ToVarint(&(*params)[0], result); |
3635 | 0 | } |
3636 | | }; |
3637 | | |
3638 | | class OPERATOR_ConvertI64ToVarint_129 : public BFOperator { |
3639 | | public: |
3640 | | OPERATOR_ConvertI64ToVarint_129( |
3641 | | BFOpcode opcode, |
3642 | | BFOpcode overloaded_opcode, |
3643 | | const BFDecl *op_decl) |
3644 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3645 | 28.1k | } |
3646 | | |
3647 | | template<typename PType, typename RType> |
3648 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3649 | 0 | const std::shared_ptr<RType>& result) { |
3650 | 0 | return ConvertI64ToVarint(params[0], result); |
3651 | 0 | } |
3652 | | |
3653 | | template<typename PType, typename RType> |
3654 | | static Status ExecRaw(const std::vector<PType*>& params, |
3655 | 0 | RType *result) { |
3656 | 0 | return ConvertI64ToVarint(params[0], result); |
3657 | 0 | } |
3658 | | |
3659 | | template<typename PType, typename RType> |
3660 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3661 | 0 | RType *result) { |
3662 | 0 | return ConvertI64ToVarint(&(*params)[0], result); |
3663 | 0 | } |
3664 | | }; |
3665 | | |
3666 | | class OPERATOR_ConvertToI16_130 : public BFOperator { |
3667 | | public: |
3668 | | OPERATOR_ConvertToI16_130( |
3669 | | BFOpcode opcode, |
3670 | | BFOpcode overloaded_opcode, |
3671 | | const BFDecl *op_decl) |
3672 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3673 | 28.1k | } |
3674 | | |
3675 | | template<typename PType, typename RType> |
3676 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3677 | 0 | const std::shared_ptr<RType>& result) { |
3678 | 0 | return ConvertToI16(params[0], result); |
3679 | 0 | } |
3680 | | |
3681 | | template<typename PType, typename RType> |
3682 | | static Status ExecRaw(const std::vector<PType*>& params, |
3683 | 0 | RType *result) { |
3684 | 0 | return ConvertToI16(params[0], result); |
3685 | 0 | } |
3686 | | |
3687 | | template<typename PType, typename RType> |
3688 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3689 | 9 | RType *result) { |
3690 | 9 | return ConvertToI16(&(*params)[0], result); |
3691 | 9 | } |
3692 | | }; |
3693 | | |
3694 | | class OPERATOR_ConvertToI32_131 : public BFOperator { |
3695 | | public: |
3696 | | OPERATOR_ConvertToI32_131( |
3697 | | BFOpcode opcode, |
3698 | | BFOpcode overloaded_opcode, |
3699 | | const BFDecl *op_decl) |
3700 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3701 | 28.1k | } |
3702 | | |
3703 | | template<typename PType, typename RType> |
3704 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3705 | 0 | const std::shared_ptr<RType>& result) { |
3706 | 0 | return ConvertToI32(params[0], result); |
3707 | 0 | } |
3708 | | |
3709 | | template<typename PType, typename RType> |
3710 | | static Status ExecRaw(const std::vector<PType*>& params, |
3711 | 0 | RType *result) { |
3712 | 0 | return ConvertToI32(params[0], result); |
3713 | 0 | } |
3714 | | |
3715 | | template<typename PType, typename RType> |
3716 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3717 | 50 | RType *result) { |
3718 | 50 | return ConvertToI32(&(*params)[0], result); |
3719 | 50 | } |
3720 | | }; |
3721 | | |
3722 | | class OPERATOR_ConvertToI64_132 : public BFOperator { |
3723 | | public: |
3724 | | OPERATOR_ConvertToI64_132( |
3725 | | BFOpcode opcode, |
3726 | | BFOpcode overloaded_opcode, |
3727 | | const BFDecl *op_decl) |
3728 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3729 | 28.1k | } |
3730 | | |
3731 | | template<typename PType, typename RType> |
3732 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3733 | 0 | const std::shared_ptr<RType>& result) { |
3734 | 0 | return ConvertToI64(params[0], result); |
3735 | 0 | } |
3736 | | |
3737 | | template<typename PType, typename RType> |
3738 | | static Status ExecRaw(const std::vector<PType*>& params, |
3739 | 0 | RType *result) { |
3740 | 0 | return ConvertToI64(params[0], result); |
3741 | 0 | } |
3742 | | |
3743 | | template<typename PType, typename RType> |
3744 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3745 | 80 | RType *result) { |
3746 | 80 | return ConvertToI64(&(*params)[0], result); |
3747 | 80 | } |
3748 | | }; |
3749 | | |
3750 | | class OPERATOR_ConvertToDouble_133 : public BFOperator { |
3751 | | public: |
3752 | | OPERATOR_ConvertToDouble_133( |
3753 | | BFOpcode opcode, |
3754 | | BFOpcode overloaded_opcode, |
3755 | | const BFDecl *op_decl) |
3756 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3757 | 28.1k | } |
3758 | | |
3759 | | template<typename PType, typename RType> |
3760 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3761 | 0 | const std::shared_ptr<RType>& result) { |
3762 | 0 | return ConvertToDouble(params[0], result); |
3763 | 0 | } |
3764 | | |
3765 | | template<typename PType, typename RType> |
3766 | | static Status ExecRaw(const std::vector<PType*>& params, |
3767 | 0 | RType *result) { |
3768 | 0 | return ConvertToDouble(params[0], result); |
3769 | 0 | } |
3770 | | |
3771 | | template<typename PType, typename RType> |
3772 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3773 | 22 | RType *result) { |
3774 | 22 | return ConvertToDouble(&(*params)[0], result); |
3775 | 22 | } |
3776 | | }; |
3777 | | |
3778 | | class OPERATOR_ConvertToFloat_134 : public BFOperator { |
3779 | | public: |
3780 | | OPERATOR_ConvertToFloat_134( |
3781 | | BFOpcode opcode, |
3782 | | BFOpcode overloaded_opcode, |
3783 | | const BFDecl *op_decl) |
3784 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3785 | 28.1k | } |
3786 | | |
3787 | | template<typename PType, typename RType> |
3788 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3789 | 0 | const std::shared_ptr<RType>& result) { |
3790 | 0 | return ConvertToFloat(params[0], result); |
3791 | 0 | } |
3792 | | |
3793 | | template<typename PType, typename RType> |
3794 | | static Status ExecRaw(const std::vector<PType*>& params, |
3795 | 0 | RType *result) { |
3796 | 0 | return ConvertToFloat(params[0], result); |
3797 | 0 | } |
3798 | | |
3799 | | template<typename PType, typename RType> |
3800 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3801 | 13 | RType *result) { |
3802 | 13 | return ConvertToFloat(&(*params)[0], result); |
3803 | 13 | } |
3804 | | }; |
3805 | | |
3806 | | class OPERATOR_ConvertToDecimal_135 : public BFOperator { |
3807 | | public: |
3808 | | OPERATOR_ConvertToDecimal_135( |
3809 | | BFOpcode opcode, |
3810 | | BFOpcode overloaded_opcode, |
3811 | | const BFDecl *op_decl) |
3812 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3813 | 28.1k | } |
3814 | | |
3815 | | template<typename PType, typename RType> |
3816 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3817 | 0 | const std::shared_ptr<RType>& result) { |
3818 | 0 | return ConvertToDecimal(params[0], result); |
3819 | 0 | } |
3820 | | |
3821 | | template<typename PType, typename RType> |
3822 | | static Status ExecRaw(const std::vector<PType*>& params, |
3823 | 0 | RType *result) { |
3824 | 0 | return ConvertToDecimal(params[0], result); |
3825 | 0 | } |
3826 | | |
3827 | | template<typename PType, typename RType> |
3828 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3829 | 16 | RType *result) { |
3830 | 16 | return ConvertToDecimal(&(*params)[0], result); |
3831 | 16 | } |
3832 | | }; |
3833 | | |
3834 | | class OPERATOR_ConvertToString_136 : public BFOperator { |
3835 | | public: |
3836 | | OPERATOR_ConvertToString_136( |
3837 | | BFOpcode opcode, |
3838 | | BFOpcode overloaded_opcode, |
3839 | | const BFDecl *op_decl) |
3840 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3841 | 28.1k | } |
3842 | | |
3843 | | template<typename PType, typename RType> |
3844 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3845 | 0 | const std::shared_ptr<RType>& result) { |
3846 | 0 | return ConvertToString(params[0], result); |
3847 | 0 | } |
3848 | | |
3849 | | template<typename PType, typename RType> |
3850 | | static Status ExecRaw(const std::vector<PType*>& params, |
3851 | 0 | RType *result) { |
3852 | 0 | return ConvertToString(params[0], result); |
3853 | 0 | } |
3854 | | |
3855 | | template<typename PType, typename RType> |
3856 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3857 | 38 | RType *result) { |
3858 | 38 | return ConvertToString(&(*params)[0], result); |
3859 | 38 | } |
3860 | | }; |
3861 | | |
3862 | | class OPERATOR_ConvertToTimestamp_137 : public BFOperator { |
3863 | | public: |
3864 | | OPERATOR_ConvertToTimestamp_137( |
3865 | | BFOpcode opcode, |
3866 | | BFOpcode overloaded_opcode, |
3867 | | const BFDecl *op_decl) |
3868 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3869 | 28.1k | } |
3870 | | |
3871 | | template<typename PType, typename RType> |
3872 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3873 | 0 | const std::shared_ptr<RType>& result) { |
3874 | 0 | return ConvertToTimestamp(params[0], result); |
3875 | 0 | } |
3876 | | |
3877 | | template<typename PType, typename RType> |
3878 | | static Status ExecRaw(const std::vector<PType*>& params, |
3879 | 0 | RType *result) { |
3880 | 0 | return ConvertToTimestamp(params[0], result); |
3881 | 0 | } |
3882 | | |
3883 | | template<typename PType, typename RType> |
3884 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3885 | 3 | RType *result) { |
3886 | 3 | return ConvertToTimestamp(&(*params)[0], result); |
3887 | 3 | } |
3888 | | }; |
3889 | | |
3890 | | class OPERATOR_ConvertToDate_138 : public BFOperator { |
3891 | | public: |
3892 | | OPERATOR_ConvertToDate_138( |
3893 | | BFOpcode opcode, |
3894 | | BFOpcode overloaded_opcode, |
3895 | | const BFDecl *op_decl) |
3896 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3897 | 28.1k | } |
3898 | | |
3899 | | template<typename PType, typename RType> |
3900 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3901 | 0 | const std::shared_ptr<RType>& result) { |
3902 | 0 | return ConvertToDate(params[0], result); |
3903 | 0 | } |
3904 | | |
3905 | | template<typename PType, typename RType> |
3906 | | static Status ExecRaw(const std::vector<PType*>& params, |
3907 | 0 | RType *result) { |
3908 | 0 | return ConvertToDate(params[0], result); |
3909 | 0 | } |
3910 | | |
3911 | | template<typename PType, typename RType> |
3912 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3913 | 1 | RType *result) { |
3914 | 1 | return ConvertToDate(&(*params)[0], result); |
3915 | 1 | } |
3916 | | }; |
3917 | | |
3918 | | class OPERATOR_NowDate_139 : public BFOperator { |
3919 | | public: |
3920 | | OPERATOR_NowDate_139( |
3921 | | BFOpcode opcode, |
3922 | | BFOpcode overloaded_opcode, |
3923 | | const BFDecl *op_decl) |
3924 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3925 | 28.1k | } |
3926 | | |
3927 | | template<typename PType, typename RType> |
3928 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3929 | 0 | const std::shared_ptr<RType>& result) { |
3930 | 0 | return NowDate(result); |
3931 | 0 | } |
3932 | | |
3933 | | template<typename PType, typename RType> |
3934 | | static Status ExecRaw(const std::vector<PType*>& params, |
3935 | 0 | RType *result) { |
3936 | 0 | return NowDate(result); |
3937 | 0 | } |
3938 | | |
3939 | | template<typename PType, typename RType> |
3940 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3941 | 1 | RType *result) { |
3942 | 1 | return NowDate(result); |
3943 | 1 | } |
3944 | | }; |
3945 | | |
3946 | | class OPERATOR_NowTime_140 : public BFOperator { |
3947 | | public: |
3948 | | OPERATOR_NowTime_140( |
3949 | | BFOpcode opcode, |
3950 | | BFOpcode overloaded_opcode, |
3951 | | const BFDecl *op_decl) |
3952 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3953 | 28.1k | } |
3954 | | |
3955 | | template<typename PType, typename RType> |
3956 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3957 | 0 | const std::shared_ptr<RType>& result) { |
3958 | 0 | return NowTime(result); |
3959 | 0 | } |
3960 | | |
3961 | | template<typename PType, typename RType> |
3962 | | static Status ExecRaw(const std::vector<PType*>& params, |
3963 | 0 | RType *result) { |
3964 | 0 | return NowTime(result); |
3965 | 0 | } |
3966 | | |
3967 | | template<typename PType, typename RType> |
3968 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3969 | 1 | RType *result) { |
3970 | 1 | return NowTime(result); |
3971 | 1 | } |
3972 | | }; |
3973 | | |
3974 | | class OPERATOR_NowTimestamp_141 : public BFOperator { |
3975 | | public: |
3976 | | OPERATOR_NowTimestamp_141( |
3977 | | BFOpcode opcode, |
3978 | | BFOpcode overloaded_opcode, |
3979 | | const BFDecl *op_decl) |
3980 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
3981 | 28.1k | } |
3982 | | |
3983 | | template<typename PType, typename RType> |
3984 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
3985 | 0 | const std::shared_ptr<RType>& result) { |
3986 | 0 | return NowTimestamp(result); |
3987 | 0 | } |
3988 | | |
3989 | | template<typename PType, typename RType> |
3990 | | static Status ExecRaw(const std::vector<PType*>& params, |
3991 | 0 | RType *result) { |
3992 | 0 | return NowTimestamp(result); |
3993 | 0 | } |
3994 | | |
3995 | | template<typename PType, typename RType> |
3996 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
3997 | 1 | RType *result) { |
3998 | 1 | return NowTimestamp(result); |
3999 | 1 | } |
4000 | | }; |
4001 | | |
4002 | | class OPERATOR_NowTimeUuid_142 : public BFOperator { |
4003 | | public: |
4004 | | OPERATOR_NowTimeUuid_142( |
4005 | | BFOpcode opcode, |
4006 | | BFOpcode overloaded_opcode, |
4007 | | const BFDecl *op_decl) |
4008 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4009 | 28.1k | } |
4010 | | |
4011 | | template<typename PType, typename RType> |
4012 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4013 | 0 | const std::shared_ptr<RType>& result) { |
4014 | 0 | return NowTimeUuid(result); |
4015 | 0 | } |
4016 | | |
4017 | | template<typename PType, typename RType> |
4018 | | static Status ExecRaw(const std::vector<PType*>& params, |
4019 | 0 | RType *result) { |
4020 | 0 | return NowTimeUuid(result); |
4021 | 0 | } |
4022 | | |
4023 | | template<typename PType, typename RType> |
4024 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4025 | 0 | RType *result) { |
4026 | 0 | return NowTimeUuid(result); |
4027 | 0 | } |
4028 | | }; |
4029 | | |
4030 | | class OPERATOR_GetUuid_143 : public BFOperator { |
4031 | | public: |
4032 | | OPERATOR_GetUuid_143( |
4033 | | BFOpcode opcode, |
4034 | | BFOpcode overloaded_opcode, |
4035 | | const BFDecl *op_decl) |
4036 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4037 | 28.1k | } |
4038 | | |
4039 | | template<typename PType, typename RType> |
4040 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4041 | 0 | const std::shared_ptr<RType>& result) { |
4042 | 0 | return GetUuid(result); |
4043 | 0 | } |
4044 | | |
4045 | | template<typename PType, typename RType> |
4046 | | static Status ExecRaw(const std::vector<PType*>& params, |
4047 | 0 | RType *result) { |
4048 | 0 | return GetUuid(result); |
4049 | 0 | } |
4050 | | |
4051 | | template<typename PType, typename RType> |
4052 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4053 | 7 | RType *result) { |
4054 | 7 | return GetUuid(result); |
4055 | 7 | } |
4056 | | }; |
4057 | | |
4058 | | class OPERATOR_ToJson_144 : public BFOperator { |
4059 | | public: |
4060 | | OPERATOR_ToJson_144( |
4061 | | BFOpcode opcode, |
4062 | | BFOpcode overloaded_opcode, |
4063 | | const BFDecl *op_decl) |
4064 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4065 | 28.1k | } |
4066 | | |
4067 | | template<typename PType, typename RType> |
4068 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4069 | 0 | const std::shared_ptr<RType>& result) { |
4070 | 0 | return ToJson(params[0], result); |
4071 | 0 | } |
4072 | | |
4073 | | template<typename PType, typename RType> |
4074 | | static Status ExecRaw(const std::vector<PType*>& params, |
4075 | 0 | RType *result) { |
4076 | 0 | return ToJson(params[0], result); |
4077 | 0 | } |
4078 | | |
4079 | | template<typename PType, typename RType> |
4080 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4081 | 37 | RType *result) { |
4082 | 37 | return ToJson(&(*params)[0], result); |
4083 | 37 | } |
4084 | | }; |
4085 | | |
4086 | | class OPERATOR_ServerOperator_145 : public BFOperator { |
4087 | | public: |
4088 | | OPERATOR_ServerOperator_145( |
4089 | | BFOpcode opcode, |
4090 | | BFOpcode overloaded_opcode, |
4091 | | const BFDecl *op_decl) |
4092 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4093 | 28.1k | } |
4094 | | |
4095 | | template<typename PType, typename RType> |
4096 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4097 | 0 | const std::shared_ptr<RType>& result) { |
4098 | 0 | return ServerOperator(params[0], result); |
4099 | 0 | } |
4100 | | |
4101 | | template<typename PType, typename RType> |
4102 | | static Status ExecRaw(const std::vector<PType*>& params, |
4103 | 0 | RType *result) { |
4104 | 0 | return ServerOperator(params[0], result); |
4105 | 0 | } |
4106 | | |
4107 | | template<typename PType, typename RType> |
4108 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4109 | 0 | RType *result) { |
4110 | 0 | return ServerOperator(&(*params)[0], result); |
4111 | 0 | } |
4112 | | }; |
4113 | | |
4114 | | class OPERATOR_ServerOperator_146 : public BFOperator { |
4115 | | public: |
4116 | | OPERATOR_ServerOperator_146( |
4117 | | BFOpcode opcode, |
4118 | | BFOpcode overloaded_opcode, |
4119 | | const BFDecl *op_decl) |
4120 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4121 | 28.1k | } |
4122 | | |
4123 | | template<typename PType, typename RType> |
4124 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4125 | 0 | const std::shared_ptr<RType>& result) { |
4126 | 0 | return ServerOperator(params[0], result); |
4127 | 0 | } |
4128 | | |
4129 | | template<typename PType, typename RType> |
4130 | | static Status ExecRaw(const std::vector<PType*>& params, |
4131 | 0 | RType *result) { |
4132 | 0 | return ServerOperator(params[0], result); |
4133 | 0 | } |
4134 | | |
4135 | | template<typename PType, typename RType> |
4136 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4137 | 0 | RType *result) { |
4138 | 0 | return ServerOperator(&(*params)[0], result); |
4139 | 0 | } |
4140 | | }; |
4141 | | |
4142 | | class OPERATOR_ServerOperator_147 : public BFOperator { |
4143 | | public: |
4144 | | OPERATOR_ServerOperator_147( |
4145 | | BFOpcode opcode, |
4146 | | BFOpcode overloaded_opcode, |
4147 | | const BFDecl *op_decl) |
4148 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4149 | 28.1k | } |
4150 | | |
4151 | | template<typename PType, typename RType> |
4152 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4153 | 0 | const std::shared_ptr<RType>& result) { |
4154 | 0 | return ServerOperator(params[0], result); |
4155 | 0 | } |
4156 | | |
4157 | | template<typename PType, typename RType> |
4158 | | static Status ExecRaw(const std::vector<PType*>& params, |
4159 | 0 | RType *result) { |
4160 | 0 | return ServerOperator(params[0], result); |
4161 | 0 | } |
4162 | | |
4163 | | template<typename PType, typename RType> |
4164 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4165 | 0 | RType *result) { |
4166 | 0 | return ServerOperator(&(*params)[0], result); |
4167 | 0 | } |
4168 | | }; |
4169 | | |
4170 | | class OPERATOR_ServerOperator_148 : public BFOperator { |
4171 | | public: |
4172 | | OPERATOR_ServerOperator_148( |
4173 | | BFOpcode opcode, |
4174 | | BFOpcode overloaded_opcode, |
4175 | | const BFDecl *op_decl) |
4176 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4177 | 28.1k | } |
4178 | | |
4179 | | template<typename PType, typename RType> |
4180 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4181 | 0 | const std::shared_ptr<RType>& result) { |
4182 | 0 | return ServerOperator(params[0], result); |
4183 | 0 | } |
4184 | | |
4185 | | template<typename PType, typename RType> |
4186 | | static Status ExecRaw(const std::vector<PType*>& params, |
4187 | 0 | RType *result) { |
4188 | 0 | return ServerOperator(params[0], result); |
4189 | 0 | } |
4190 | | |
4191 | | template<typename PType, typename RType> |
4192 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4193 | 0 | RType *result) { |
4194 | 0 | return ServerOperator(&(*params)[0], result); |
4195 | 0 | } |
4196 | | }; |
4197 | | |
4198 | | class OPERATOR_ServerOperator_149 : public BFOperator { |
4199 | | public: |
4200 | | OPERATOR_ServerOperator_149( |
4201 | | BFOpcode opcode, |
4202 | | BFOpcode overloaded_opcode, |
4203 | | const BFDecl *op_decl) |
4204 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4205 | 28.1k | } |
4206 | | |
4207 | | template<typename PType, typename RType> |
4208 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4209 | 0 | const std::shared_ptr<RType>& result) { |
4210 | 0 | return ServerOperator(params[0], result); |
4211 | 0 | } |
4212 | | |
4213 | | template<typename PType, typename RType> |
4214 | | static Status ExecRaw(const std::vector<PType*>& params, |
4215 | 0 | RType *result) { |
4216 | 0 | return ServerOperator(params[0], result); |
4217 | 0 | } |
4218 | | |
4219 | | template<typename PType, typename RType> |
4220 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4221 | 0 | RType *result) { |
4222 | 0 | return ServerOperator(&(*params)[0], result); |
4223 | 0 | } |
4224 | | }; |
4225 | | |
4226 | | class OPERATOR_ServerOperator_150 : public BFOperator { |
4227 | | public: |
4228 | | OPERATOR_ServerOperator_150( |
4229 | | BFOpcode opcode, |
4230 | | BFOpcode overloaded_opcode, |
4231 | | const BFDecl *op_decl) |
4232 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4233 | 28.1k | } |
4234 | | |
4235 | | template<typename PType, typename RType> |
4236 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4237 | 0 | const std::shared_ptr<RType>& result) { |
4238 | 0 | return ServerOperator(params[0], result); |
4239 | 0 | } |
4240 | | |
4241 | | template<typename PType, typename RType> |
4242 | | static Status ExecRaw(const std::vector<PType*>& params, |
4243 | 0 | RType *result) { |
4244 | 0 | return ServerOperator(params[0], result); |
4245 | 0 | } |
4246 | | |
4247 | | template<typename PType, typename RType> |
4248 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4249 | 0 | RType *result) { |
4250 | 0 | return ServerOperator(&(*params)[0], result); |
4251 | 0 | } |
4252 | | }; |
4253 | | |
4254 | | class OPERATOR_MapConstructor_151 : public BFOperator { |
4255 | | public: |
4256 | | OPERATOR_MapConstructor_151( |
4257 | | BFOpcode opcode, |
4258 | | BFOpcode overloaded_opcode, |
4259 | | const BFDecl *op_decl) |
4260 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4261 | 28.1k | } |
4262 | | |
4263 | | template<typename PType, typename RType> |
4264 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4265 | 0 | const std::shared_ptr<RType>& result) { |
4266 | 0 | return MapConstructor(params, result); |
4267 | 0 | } |
4268 | | |
4269 | | template<typename PType, typename RType> |
4270 | | static Status ExecRaw(const std::vector<PType*>& params, |
4271 | 0 | RType *result) { |
4272 | 0 | return MapConstructor(params, result); |
4273 | 0 | } |
4274 | | |
4275 | | template<typename PType, typename RType> |
4276 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4277 | 2 | RType *result) { |
4278 | 2 | const auto count = params->size(); |
4279 | 2 | std::vector<PType*> local_params(count); |
4280 | 14 | for (size_t i = 0; i < count; i++12 ) { |
4281 | 12 | local_params[i] = &(*params)[i]; |
4282 | 12 | } |
4283 | 2 | return MapConstructor(local_params, result); |
4284 | 2 | } |
4285 | | }; |
4286 | | |
4287 | | class OPERATOR_SetConstructor_152 : public BFOperator { |
4288 | | public: |
4289 | | OPERATOR_SetConstructor_152( |
4290 | | BFOpcode opcode, |
4291 | | BFOpcode overloaded_opcode, |
4292 | | const BFDecl *op_decl) |
4293 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4294 | 28.1k | } |
4295 | | |
4296 | | template<typename PType, typename RType> |
4297 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4298 | 0 | const std::shared_ptr<RType>& result) { |
4299 | 0 | return SetConstructor(params, result); |
4300 | 0 | } |
4301 | | |
4302 | | template<typename PType, typename RType> |
4303 | | static Status ExecRaw(const std::vector<PType*>& params, |
4304 | 0 | RType *result) { |
4305 | 0 | return SetConstructor(params, result); |
4306 | 0 | } |
4307 | | |
4308 | | template<typename PType, typename RType> |
4309 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4310 | 1 | RType *result) { |
4311 | 1 | const auto count = params->size(); |
4312 | 1 | std::vector<PType*> local_params(count); |
4313 | 4 | for (size_t i = 0; i < count; i++3 ) { |
4314 | 3 | local_params[i] = &(*params)[i]; |
4315 | 3 | } |
4316 | 1 | return SetConstructor(local_params, result); |
4317 | 1 | } |
4318 | | }; |
4319 | | |
4320 | | class OPERATOR_ListConstructor_153 : public BFOperator { |
4321 | | public: |
4322 | | OPERATOR_ListConstructor_153( |
4323 | | BFOpcode opcode, |
4324 | | BFOpcode overloaded_opcode, |
4325 | | const BFDecl *op_decl) |
4326 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4327 | 28.1k | } |
4328 | | |
4329 | | template<typename PType, typename RType> |
4330 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4331 | 0 | const std::shared_ptr<RType>& result) { |
4332 | 0 | return ListConstructor(params, result); |
4333 | 0 | } |
4334 | | |
4335 | | template<typename PType, typename RType> |
4336 | | static Status ExecRaw(const std::vector<PType*>& params, |
4337 | 0 | RType *result) { |
4338 | 0 | return ListConstructor(params, result); |
4339 | 0 | } |
4340 | | |
4341 | | template<typename PType, typename RType> |
4342 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4343 | 3 | RType *result) { |
4344 | 3 | const auto count = params->size(); |
4345 | 3 | std::vector<PType*> local_params(count); |
4346 | 12 | for (size_t i = 0; i < count; i++9 ) { |
4347 | 9 | local_params[i] = &(*params)[i]; |
4348 | 9 | } |
4349 | 3 | return ListConstructor(local_params, result); |
4350 | 3 | } |
4351 | | }; |
4352 | | |
4353 | | class OPERATOR_MapConstructor_154 : public BFOperator { |
4354 | | public: |
4355 | | OPERATOR_MapConstructor_154( |
4356 | | BFOpcode opcode, |
4357 | | BFOpcode overloaded_opcode, |
4358 | | const BFDecl *op_decl) |
4359 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4360 | 28.1k | } |
4361 | | |
4362 | | template<typename PType, typename RType> |
4363 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4364 | 0 | const std::shared_ptr<RType>& result) { |
4365 | 0 | return MapConstructor(params, result); |
4366 | 0 | } |
4367 | | |
4368 | | template<typename PType, typename RType> |
4369 | | static Status ExecRaw(const std::vector<PType*>& params, |
4370 | 0 | RType *result) { |
4371 | 0 | return MapConstructor(params, result); |
4372 | 0 | } |
4373 | | |
4374 | | template<typename PType, typename RType> |
4375 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4376 | 3 | RType *result) { |
4377 | 3 | const auto count = params->size(); |
4378 | 3 | std::vector<PType*> local_params(count); |
4379 | 23 | for (size_t i = 0; i < count; i++20 ) { |
4380 | 20 | local_params[i] = &(*params)[i]; |
4381 | 20 | } |
4382 | 3 | return MapConstructor(local_params, result); |
4383 | 3 | } |
4384 | | }; |
4385 | | |
4386 | | class OPERATOR_MapFrozen_155 : public BFOperator { |
4387 | | public: |
4388 | | OPERATOR_MapFrozen_155( |
4389 | | BFOpcode opcode, |
4390 | | BFOpcode overloaded_opcode, |
4391 | | const BFDecl *op_decl) |
4392 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4393 | 28.1k | } |
4394 | | |
4395 | | template<typename PType, typename RType> |
4396 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4397 | 0 | const std::shared_ptr<RType>& result) { |
4398 | 0 | return MapFrozen(params, result); |
4399 | 0 | } |
4400 | | |
4401 | | template<typename PType, typename RType> |
4402 | | static Status ExecRaw(const std::vector<PType*>& params, |
4403 | 0 | RType *result) { |
4404 | 0 | return MapFrozen(params, result); |
4405 | 0 | } |
4406 | | |
4407 | | template<typename PType, typename RType> |
4408 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4409 | 0 | RType *result) { |
4410 | 0 | const auto count = params->size(); |
4411 | 0 | std::vector<PType*> local_params(count); |
4412 | 0 | for (size_t i = 0; i < count; i++) { |
4413 | 0 | local_params[i] = &(*params)[i]; |
4414 | 0 | } |
4415 | 0 | return MapFrozen(local_params, result); |
4416 | 0 | } |
4417 | | }; |
4418 | | |
4419 | | class OPERATOR_SetFrozen_156 : public BFOperator { |
4420 | | public: |
4421 | | OPERATOR_SetFrozen_156( |
4422 | | BFOpcode opcode, |
4423 | | BFOpcode overloaded_opcode, |
4424 | | const BFDecl *op_decl) |
4425 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4426 | 28.1k | } |
4427 | | |
4428 | | template<typename PType, typename RType> |
4429 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4430 | 0 | const std::shared_ptr<RType>& result) { |
4431 | 0 | return SetFrozen(params, result); |
4432 | 0 | } |
4433 | | |
4434 | | template<typename PType, typename RType> |
4435 | | static Status ExecRaw(const std::vector<PType*>& params, |
4436 | 0 | RType *result) { |
4437 | 0 | return SetFrozen(params, result); |
4438 | 0 | } |
4439 | | |
4440 | | template<typename PType, typename RType> |
4441 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4442 | 0 | RType *result) { |
4443 | 0 | const auto count = params->size(); |
4444 | 0 | std::vector<PType*> local_params(count); |
4445 | 0 | for (size_t i = 0; i < count; i++) { |
4446 | 0 | local_params[i] = &(*params)[i]; |
4447 | 0 | } |
4448 | 0 | return SetFrozen(local_params, result); |
4449 | 0 | } |
4450 | | }; |
4451 | | |
4452 | | class OPERATOR_ListFrozen_157 : public BFOperator { |
4453 | | public: |
4454 | | OPERATOR_ListFrozen_157( |
4455 | | BFOpcode opcode, |
4456 | | BFOpcode overloaded_opcode, |
4457 | | const BFDecl *op_decl) |
4458 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4459 | 28.1k | } |
4460 | | |
4461 | | template<typename PType, typename RType> |
4462 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4463 | 0 | const std::shared_ptr<RType>& result) { |
4464 | 0 | return ListFrozen(params, result); |
4465 | 0 | } |
4466 | | |
4467 | | template<typename PType, typename RType> |
4468 | | static Status ExecRaw(const std::vector<PType*>& params, |
4469 | 0 | RType *result) { |
4470 | 0 | return ListFrozen(params, result); |
4471 | 0 | } |
4472 | | |
4473 | | template<typename PType, typename RType> |
4474 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4475 | 0 | RType *result) { |
4476 | 0 | const auto count = params->size(); |
4477 | 0 | std::vector<PType*> local_params(count); |
4478 | 0 | for (size_t i = 0; i < count; i++) { |
4479 | 0 | local_params[i] = &(*params)[i]; |
4480 | 0 | } |
4481 | 0 | return ListFrozen(local_params, result); |
4482 | 0 | } |
4483 | | }; |
4484 | | |
4485 | | class OPERATOR_ListFrozen_158 : public BFOperator { |
4486 | | public: |
4487 | | OPERATOR_ListFrozen_158( |
4488 | | BFOpcode opcode, |
4489 | | BFOpcode overloaded_opcode, |
4490 | | const BFDecl *op_decl) |
4491 | 28.1k | : BFOperator(opcode, overloaded_opcode, op_decl) { |
4492 | 28.1k | } |
4493 | | |
4494 | | template<typename PType, typename RType> |
4495 | | static Status Exec(const std::vector<std::shared_ptr<PType>>& params, |
4496 | 0 | const std::shared_ptr<RType>& result) { |
4497 | 0 | return ListFrozen(params, result); |
4498 | 0 | } |
4499 | | |
4500 | | template<typename PType, typename RType> |
4501 | | static Status ExecRaw(const std::vector<PType*>& params, |
4502 | 0 | RType *result) { |
4503 | 0 | return ListFrozen(params, result); |
4504 | 0 | } |
4505 | | |
4506 | | template<typename PType, typename RType> |
4507 | | static Status ExecRefAndRaw(std::vector<PType> *params, |
4508 | 1 | RType *result) { |
4509 | 1 | const auto count = params->size(); |
4510 | 1 | std::vector<PType*> local_params(count); |
4511 | 4 | for (size_t i = 0; i < count; i++3 ) { |
4512 | 3 | local_params[i] = &(*params)[i]; |
4513 | 3 | } |
4514 | 1 | return ListFrozen(local_params, result); |
4515 | 1 | } |
4516 | | }; |
4517 | | |
4518 | | |
4519 | | extern const std::vector<BFOperator::SharedPtr> kBFOperators; |
4520 | | |
4521 | | |
4522 | | } // namespace bfql |
4523 | | } // namespace yb |
4524 | | #endif |