Mercurial > hg > sv-dependency-builds
comparison win64-msvc/include/capnp/schema.capnp.h @ 47:d93140aac40b
Current Capnp libs and headers from git
author | Chris Cannam |
---|---|
date | Thu, 20 Oct 2016 18:15:38 +0100 |
parents | |
children | 0f2d93caa50c |
comparison
equal
deleted
inserted
replaced
46:efe5b9f38b13 | 47:d93140aac40b |
---|---|
1 // Generated by Cap'n Proto compiler, DO NOT EDIT | |
2 // source: schema.capnp | |
3 | |
4 #ifndef CAPNP_INCLUDED_a93fc509624c72d9_ | |
5 #define CAPNP_INCLUDED_a93fc509624c72d9_ | |
6 | |
7 #include <capnp/generated-header-support.h> | |
8 | |
9 #if CAPNP_VERSION != 6000 | |
10 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." | |
11 #endif | |
12 | |
13 | |
14 namespace capnp { | |
15 namespace schemas { | |
16 | |
17 CAPNP_DECLARE_SCHEMA(e682ab4cf923a417); | |
18 CAPNP_DECLARE_SCHEMA(b9521bccf10fa3b1); | |
19 CAPNP_DECLARE_SCHEMA(debf55bbfa0fc242); | |
20 CAPNP_DECLARE_SCHEMA(9ea0b19b37fb4435); | |
21 CAPNP_DECLARE_SCHEMA(b54ab3364333f598); | |
22 CAPNP_DECLARE_SCHEMA(e82753cff0c2218f); | |
23 CAPNP_DECLARE_SCHEMA(b18aa5ac7a0d9420); | |
24 CAPNP_DECLARE_SCHEMA(ec1619d4400a0290); | |
25 CAPNP_DECLARE_SCHEMA(9aad50a41f4af45f); | |
26 CAPNP_DECLARE_SCHEMA(97b14cbe7cfec712); | |
27 CAPNP_DECLARE_SCHEMA(c42305476bb4746f); | |
28 CAPNP_DECLARE_SCHEMA(cafccddb68db1d11); | |
29 CAPNP_DECLARE_SCHEMA(bb90d5c287870be6); | |
30 CAPNP_DECLARE_SCHEMA(978a7cebdc549a4d); | |
31 CAPNP_DECLARE_SCHEMA(a9962a9ed0a4d7f8); | |
32 CAPNP_DECLARE_SCHEMA(9500cce23b334d80); | |
33 CAPNP_DECLARE_SCHEMA(d07378ede1f9cc60); | |
34 CAPNP_DECLARE_SCHEMA(87e739250a60ea97); | |
35 CAPNP_DECLARE_SCHEMA(9e0e78711a7f87a9); | |
36 CAPNP_DECLARE_SCHEMA(ac3a6f60ef4cc6d3); | |
37 CAPNP_DECLARE_SCHEMA(ed8bca69f7fb0cbf); | |
38 CAPNP_DECLARE_SCHEMA(c2573fe8a23e49f1); | |
39 CAPNP_DECLARE_SCHEMA(8e3b5f79fe593656); | |
40 CAPNP_DECLARE_SCHEMA(9dd1f724f4614a85); | |
41 CAPNP_DECLARE_SCHEMA(baefc9120c56e274); | |
42 CAPNP_DECLARE_SCHEMA(903455f06065422b); | |
43 CAPNP_DECLARE_SCHEMA(abd73485a9636bc9); | |
44 CAPNP_DECLARE_SCHEMA(c863cd16969ee7fc); | |
45 CAPNP_DECLARE_SCHEMA(ce23dcd2d7b00c9b); | |
46 CAPNP_DECLARE_SCHEMA(f1c8950dab257542); | |
47 CAPNP_DECLARE_SCHEMA(d1958f7dba521926); | |
48 enum class ElementSize_d1958f7dba521926: uint16_t { | |
49 EMPTY, | |
50 BIT, | |
51 BYTE, | |
52 TWO_BYTES, | |
53 FOUR_BYTES, | |
54 EIGHT_BYTES, | |
55 POINTER, | |
56 INLINE_COMPOSITE, | |
57 }; | |
58 CAPNP_DECLARE_ENUM(ElementSize, d1958f7dba521926); | |
59 CAPNP_DECLARE_SCHEMA(bfc546f6210ad7ce); | |
60 CAPNP_DECLARE_SCHEMA(cfea0eb02e810062); | |
61 CAPNP_DECLARE_SCHEMA(ae504193122357e5); | |
62 | |
63 } // namespace schemas | |
64 } // namespace capnp | |
65 | |
66 namespace capnp { | |
67 namespace schema { | |
68 | |
69 struct Node { | |
70 Node() = delete; | |
71 | |
72 class Reader; | |
73 class Builder; | |
74 class Pipeline; | |
75 enum Which: uint16_t { | |
76 FILE, | |
77 STRUCT, | |
78 ENUM, | |
79 INTERFACE, | |
80 CONST, | |
81 ANNOTATION, | |
82 }; | |
83 struct Parameter; | |
84 struct NestedNode; | |
85 struct Struct; | |
86 struct Enum; | |
87 struct Interface; | |
88 struct Const; | |
89 struct Annotation; | |
90 | |
91 struct _capnpPrivate { | |
92 CAPNP_DECLARE_STRUCT_HEADER(e682ab4cf923a417, 5, 6) | |
93 #if !CAPNP_LITE | |
94 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
95 #endif // !CAPNP_LITE | |
96 }; | |
97 }; | |
98 | |
99 struct Node::Parameter { | |
100 Parameter() = delete; | |
101 | |
102 class Reader; | |
103 class Builder; | |
104 class Pipeline; | |
105 | |
106 struct _capnpPrivate { | |
107 CAPNP_DECLARE_STRUCT_HEADER(b9521bccf10fa3b1, 0, 1) | |
108 #if !CAPNP_LITE | |
109 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
110 #endif // !CAPNP_LITE | |
111 }; | |
112 }; | |
113 | |
114 struct Node::NestedNode { | |
115 NestedNode() = delete; | |
116 | |
117 class Reader; | |
118 class Builder; | |
119 class Pipeline; | |
120 | |
121 struct _capnpPrivate { | |
122 CAPNP_DECLARE_STRUCT_HEADER(debf55bbfa0fc242, 1, 1) | |
123 #if !CAPNP_LITE | |
124 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
125 #endif // !CAPNP_LITE | |
126 }; | |
127 }; | |
128 | |
129 struct Node::Struct { | |
130 Struct() = delete; | |
131 | |
132 class Reader; | |
133 class Builder; | |
134 class Pipeline; | |
135 | |
136 struct _capnpPrivate { | |
137 CAPNP_DECLARE_STRUCT_HEADER(9ea0b19b37fb4435, 5, 6) | |
138 #if !CAPNP_LITE | |
139 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
140 #endif // !CAPNP_LITE | |
141 }; | |
142 }; | |
143 | |
144 struct Node::Enum { | |
145 Enum() = delete; | |
146 | |
147 class Reader; | |
148 class Builder; | |
149 class Pipeline; | |
150 | |
151 struct _capnpPrivate { | |
152 CAPNP_DECLARE_STRUCT_HEADER(b54ab3364333f598, 5, 6) | |
153 #if !CAPNP_LITE | |
154 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
155 #endif // !CAPNP_LITE | |
156 }; | |
157 }; | |
158 | |
159 struct Node::Interface { | |
160 Interface() = delete; | |
161 | |
162 class Reader; | |
163 class Builder; | |
164 class Pipeline; | |
165 | |
166 struct _capnpPrivate { | |
167 CAPNP_DECLARE_STRUCT_HEADER(e82753cff0c2218f, 5, 6) | |
168 #if !CAPNP_LITE | |
169 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
170 #endif // !CAPNP_LITE | |
171 }; | |
172 }; | |
173 | |
174 struct Node::Const { | |
175 Const() = delete; | |
176 | |
177 class Reader; | |
178 class Builder; | |
179 class Pipeline; | |
180 | |
181 struct _capnpPrivate { | |
182 CAPNP_DECLARE_STRUCT_HEADER(b18aa5ac7a0d9420, 5, 6) | |
183 #if !CAPNP_LITE | |
184 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
185 #endif // !CAPNP_LITE | |
186 }; | |
187 }; | |
188 | |
189 struct Node::Annotation { | |
190 Annotation() = delete; | |
191 | |
192 class Reader; | |
193 class Builder; | |
194 class Pipeline; | |
195 | |
196 struct _capnpPrivate { | |
197 CAPNP_DECLARE_STRUCT_HEADER(ec1619d4400a0290, 5, 6) | |
198 #if !CAPNP_LITE | |
199 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
200 #endif // !CAPNP_LITE | |
201 }; | |
202 }; | |
203 | |
204 struct Field { | |
205 Field() = delete; | |
206 | |
207 class Reader; | |
208 class Builder; | |
209 class Pipeline; | |
210 enum Which: uint16_t { | |
211 SLOT, | |
212 GROUP, | |
213 }; | |
214 static constexpr ::uint16_t NO_DISCRIMINANT = 65535u; | |
215 struct Slot; | |
216 struct Group; | |
217 struct Ordinal; | |
218 | |
219 struct _capnpPrivate { | |
220 CAPNP_DECLARE_STRUCT_HEADER(9aad50a41f4af45f, 3, 4) | |
221 #if !CAPNP_LITE | |
222 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
223 #endif // !CAPNP_LITE | |
224 }; | |
225 }; | |
226 | |
227 struct Field::Slot { | |
228 Slot() = delete; | |
229 | |
230 class Reader; | |
231 class Builder; | |
232 class Pipeline; | |
233 | |
234 struct _capnpPrivate { | |
235 CAPNP_DECLARE_STRUCT_HEADER(c42305476bb4746f, 3, 4) | |
236 #if !CAPNP_LITE | |
237 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
238 #endif // !CAPNP_LITE | |
239 }; | |
240 }; | |
241 | |
242 struct Field::Group { | |
243 Group() = delete; | |
244 | |
245 class Reader; | |
246 class Builder; | |
247 class Pipeline; | |
248 | |
249 struct _capnpPrivate { | |
250 CAPNP_DECLARE_STRUCT_HEADER(cafccddb68db1d11, 3, 4) | |
251 #if !CAPNP_LITE | |
252 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
253 #endif // !CAPNP_LITE | |
254 }; | |
255 }; | |
256 | |
257 struct Field::Ordinal { | |
258 Ordinal() = delete; | |
259 | |
260 class Reader; | |
261 class Builder; | |
262 class Pipeline; | |
263 enum Which: uint16_t { | |
264 IMPLICIT, | |
265 EXPLICIT, | |
266 }; | |
267 | |
268 struct _capnpPrivate { | |
269 CAPNP_DECLARE_STRUCT_HEADER(bb90d5c287870be6, 3, 4) | |
270 #if !CAPNP_LITE | |
271 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
272 #endif // !CAPNP_LITE | |
273 }; | |
274 }; | |
275 | |
276 struct Enumerant { | |
277 Enumerant() = delete; | |
278 | |
279 class Reader; | |
280 class Builder; | |
281 class Pipeline; | |
282 | |
283 struct _capnpPrivate { | |
284 CAPNP_DECLARE_STRUCT_HEADER(978a7cebdc549a4d, 1, 2) | |
285 #if !CAPNP_LITE | |
286 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
287 #endif // !CAPNP_LITE | |
288 }; | |
289 }; | |
290 | |
291 struct Superclass { | |
292 Superclass() = delete; | |
293 | |
294 class Reader; | |
295 class Builder; | |
296 class Pipeline; | |
297 | |
298 struct _capnpPrivate { | |
299 CAPNP_DECLARE_STRUCT_HEADER(a9962a9ed0a4d7f8, 1, 1) | |
300 #if !CAPNP_LITE | |
301 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
302 #endif // !CAPNP_LITE | |
303 }; | |
304 }; | |
305 | |
306 struct Method { | |
307 Method() = delete; | |
308 | |
309 class Reader; | |
310 class Builder; | |
311 class Pipeline; | |
312 | |
313 struct _capnpPrivate { | |
314 CAPNP_DECLARE_STRUCT_HEADER(9500cce23b334d80, 3, 5) | |
315 #if !CAPNP_LITE | |
316 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
317 #endif // !CAPNP_LITE | |
318 }; | |
319 }; | |
320 | |
321 struct Type { | |
322 Type() = delete; | |
323 | |
324 class Reader; | |
325 class Builder; | |
326 class Pipeline; | |
327 enum Which: uint16_t { | |
328 VOID, | |
329 BOOL, | |
330 INT8, | |
331 INT16, | |
332 INT32, | |
333 INT64, | |
334 UINT8, | |
335 UINT16, | |
336 UINT32, | |
337 UINT64, | |
338 FLOAT32, | |
339 FLOAT64, | |
340 TEXT, | |
341 DATA, | |
342 LIST, | |
343 ENUM, | |
344 STRUCT, | |
345 INTERFACE, | |
346 ANY_POINTER, | |
347 }; | |
348 struct List; | |
349 struct Enum; | |
350 struct Struct; | |
351 struct Interface; | |
352 struct AnyPointer; | |
353 | |
354 struct _capnpPrivate { | |
355 CAPNP_DECLARE_STRUCT_HEADER(d07378ede1f9cc60, 3, 1) | |
356 #if !CAPNP_LITE | |
357 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
358 #endif // !CAPNP_LITE | |
359 }; | |
360 }; | |
361 | |
362 struct Type::List { | |
363 List() = delete; | |
364 | |
365 class Reader; | |
366 class Builder; | |
367 class Pipeline; | |
368 | |
369 struct _capnpPrivate { | |
370 CAPNP_DECLARE_STRUCT_HEADER(87e739250a60ea97, 3, 1) | |
371 #if !CAPNP_LITE | |
372 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
373 #endif // !CAPNP_LITE | |
374 }; | |
375 }; | |
376 | |
377 struct Type::Enum { | |
378 Enum() = delete; | |
379 | |
380 class Reader; | |
381 class Builder; | |
382 class Pipeline; | |
383 | |
384 struct _capnpPrivate { | |
385 CAPNP_DECLARE_STRUCT_HEADER(9e0e78711a7f87a9, 3, 1) | |
386 #if !CAPNP_LITE | |
387 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
388 #endif // !CAPNP_LITE | |
389 }; | |
390 }; | |
391 | |
392 struct Type::Struct { | |
393 Struct() = delete; | |
394 | |
395 class Reader; | |
396 class Builder; | |
397 class Pipeline; | |
398 | |
399 struct _capnpPrivate { | |
400 CAPNP_DECLARE_STRUCT_HEADER(ac3a6f60ef4cc6d3, 3, 1) | |
401 #if !CAPNP_LITE | |
402 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
403 #endif // !CAPNP_LITE | |
404 }; | |
405 }; | |
406 | |
407 struct Type::Interface { | |
408 Interface() = delete; | |
409 | |
410 class Reader; | |
411 class Builder; | |
412 class Pipeline; | |
413 | |
414 struct _capnpPrivate { | |
415 CAPNP_DECLARE_STRUCT_HEADER(ed8bca69f7fb0cbf, 3, 1) | |
416 #if !CAPNP_LITE | |
417 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
418 #endif // !CAPNP_LITE | |
419 }; | |
420 }; | |
421 | |
422 struct Type::AnyPointer { | |
423 AnyPointer() = delete; | |
424 | |
425 class Reader; | |
426 class Builder; | |
427 class Pipeline; | |
428 enum Which: uint16_t { | |
429 UNCONSTRAINED, | |
430 PARAMETER, | |
431 IMPLICIT_METHOD_PARAMETER, | |
432 }; | |
433 struct Unconstrained; | |
434 struct Parameter; | |
435 struct ImplicitMethodParameter; | |
436 | |
437 struct _capnpPrivate { | |
438 CAPNP_DECLARE_STRUCT_HEADER(c2573fe8a23e49f1, 3, 1) | |
439 #if !CAPNP_LITE | |
440 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
441 #endif // !CAPNP_LITE | |
442 }; | |
443 }; | |
444 | |
445 struct Type::AnyPointer::Unconstrained { | |
446 Unconstrained() = delete; | |
447 | |
448 class Reader; | |
449 class Builder; | |
450 class Pipeline; | |
451 enum Which: uint16_t { | |
452 ANY_KIND, | |
453 STRUCT, | |
454 LIST, | |
455 CAPABILITY, | |
456 }; | |
457 | |
458 struct _capnpPrivate { | |
459 CAPNP_DECLARE_STRUCT_HEADER(8e3b5f79fe593656, 3, 1) | |
460 #if !CAPNP_LITE | |
461 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
462 #endif // !CAPNP_LITE | |
463 }; | |
464 }; | |
465 | |
466 struct Type::AnyPointer::Parameter { | |
467 Parameter() = delete; | |
468 | |
469 class Reader; | |
470 class Builder; | |
471 class Pipeline; | |
472 | |
473 struct _capnpPrivate { | |
474 CAPNP_DECLARE_STRUCT_HEADER(9dd1f724f4614a85, 3, 1) | |
475 #if !CAPNP_LITE | |
476 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
477 #endif // !CAPNP_LITE | |
478 }; | |
479 }; | |
480 | |
481 struct Type::AnyPointer::ImplicitMethodParameter { | |
482 ImplicitMethodParameter() = delete; | |
483 | |
484 class Reader; | |
485 class Builder; | |
486 class Pipeline; | |
487 | |
488 struct _capnpPrivate { | |
489 CAPNP_DECLARE_STRUCT_HEADER(baefc9120c56e274, 3, 1) | |
490 #if !CAPNP_LITE | |
491 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
492 #endif // !CAPNP_LITE | |
493 }; | |
494 }; | |
495 | |
496 struct Brand { | |
497 Brand() = delete; | |
498 | |
499 class Reader; | |
500 class Builder; | |
501 class Pipeline; | |
502 struct Scope; | |
503 struct Binding; | |
504 | |
505 struct _capnpPrivate { | |
506 CAPNP_DECLARE_STRUCT_HEADER(903455f06065422b, 0, 1) | |
507 #if !CAPNP_LITE | |
508 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
509 #endif // !CAPNP_LITE | |
510 }; | |
511 }; | |
512 | |
513 struct Brand::Scope { | |
514 Scope() = delete; | |
515 | |
516 class Reader; | |
517 class Builder; | |
518 class Pipeline; | |
519 enum Which: uint16_t { | |
520 BIND, | |
521 INHERIT, | |
522 }; | |
523 | |
524 struct _capnpPrivate { | |
525 CAPNP_DECLARE_STRUCT_HEADER(abd73485a9636bc9, 2, 1) | |
526 #if !CAPNP_LITE | |
527 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
528 #endif // !CAPNP_LITE | |
529 }; | |
530 }; | |
531 | |
532 struct Brand::Binding { | |
533 Binding() = delete; | |
534 | |
535 class Reader; | |
536 class Builder; | |
537 class Pipeline; | |
538 enum Which: uint16_t { | |
539 UNBOUND, | |
540 TYPE, | |
541 }; | |
542 | |
543 struct _capnpPrivate { | |
544 CAPNP_DECLARE_STRUCT_HEADER(c863cd16969ee7fc, 1, 1) | |
545 #if !CAPNP_LITE | |
546 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
547 #endif // !CAPNP_LITE | |
548 }; | |
549 }; | |
550 | |
551 struct Value { | |
552 Value() = delete; | |
553 | |
554 class Reader; | |
555 class Builder; | |
556 class Pipeline; | |
557 enum Which: uint16_t { | |
558 VOID, | |
559 BOOL, | |
560 INT8, | |
561 INT16, | |
562 INT32, | |
563 INT64, | |
564 UINT8, | |
565 UINT16, | |
566 UINT32, | |
567 UINT64, | |
568 FLOAT32, | |
569 FLOAT64, | |
570 TEXT, | |
571 DATA, | |
572 LIST, | |
573 ENUM, | |
574 STRUCT, | |
575 INTERFACE, | |
576 ANY_POINTER, | |
577 }; | |
578 | |
579 struct _capnpPrivate { | |
580 CAPNP_DECLARE_STRUCT_HEADER(ce23dcd2d7b00c9b, 2, 1) | |
581 #if !CAPNP_LITE | |
582 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
583 #endif // !CAPNP_LITE | |
584 }; | |
585 }; | |
586 | |
587 struct Annotation { | |
588 Annotation() = delete; | |
589 | |
590 class Reader; | |
591 class Builder; | |
592 class Pipeline; | |
593 | |
594 struct _capnpPrivate { | |
595 CAPNP_DECLARE_STRUCT_HEADER(f1c8950dab257542, 1, 2) | |
596 #if !CAPNP_LITE | |
597 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
598 #endif // !CAPNP_LITE | |
599 }; | |
600 }; | |
601 | |
602 typedef ::capnp::schemas::ElementSize_d1958f7dba521926 ElementSize; | |
603 | |
604 struct CodeGeneratorRequest { | |
605 CodeGeneratorRequest() = delete; | |
606 | |
607 class Reader; | |
608 class Builder; | |
609 class Pipeline; | |
610 struct RequestedFile; | |
611 | |
612 struct _capnpPrivate { | |
613 CAPNP_DECLARE_STRUCT_HEADER(bfc546f6210ad7ce, 0, 2) | |
614 #if !CAPNP_LITE | |
615 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
616 #endif // !CAPNP_LITE | |
617 }; | |
618 }; | |
619 | |
620 struct CodeGeneratorRequest::RequestedFile { | |
621 RequestedFile() = delete; | |
622 | |
623 class Reader; | |
624 class Builder; | |
625 class Pipeline; | |
626 struct Import; | |
627 | |
628 struct _capnpPrivate { | |
629 CAPNP_DECLARE_STRUCT_HEADER(cfea0eb02e810062, 1, 2) | |
630 #if !CAPNP_LITE | |
631 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
632 #endif // !CAPNP_LITE | |
633 }; | |
634 }; | |
635 | |
636 struct CodeGeneratorRequest::RequestedFile::Import { | |
637 Import() = delete; | |
638 | |
639 class Reader; | |
640 class Builder; | |
641 class Pipeline; | |
642 | |
643 struct _capnpPrivate { | |
644 CAPNP_DECLARE_STRUCT_HEADER(ae504193122357e5, 1, 1) | |
645 #if !CAPNP_LITE | |
646 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
647 #endif // !CAPNP_LITE | |
648 }; | |
649 }; | |
650 | |
651 // ======================================================================================= | |
652 | |
653 class Node::Reader { | |
654 public: | |
655 typedef Node Reads; | |
656 | |
657 Reader() = default; | |
658 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
659 | |
660 inline ::capnp::MessageSize totalSize() const { | |
661 return _reader.totalSize().asPublic(); | |
662 } | |
663 | |
664 #if !CAPNP_LITE | |
665 inline ::kj::StringTree toString() const { | |
666 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
667 } | |
668 #endif // !CAPNP_LITE | |
669 | |
670 inline Which which() const; | |
671 inline ::uint64_t getId() const; | |
672 | |
673 inline bool hasDisplayName() const; | |
674 inline ::capnp::Text::Reader getDisplayName() const; | |
675 | |
676 inline ::uint32_t getDisplayNamePrefixLength() const; | |
677 | |
678 inline ::uint64_t getScopeId() const; | |
679 | |
680 inline bool hasNestedNodes() const; | |
681 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader getNestedNodes() const; | |
682 | |
683 inline bool hasAnnotations() const; | |
684 inline ::capnp::List< ::capnp::schema::Annotation>::Reader getAnnotations() const; | |
685 | |
686 inline bool isFile() const; | |
687 inline ::capnp::Void getFile() const; | |
688 | |
689 inline bool isStruct() const; | |
690 inline typename Struct::Reader getStruct() const; | |
691 | |
692 inline bool isEnum() const; | |
693 inline typename Enum::Reader getEnum() const; | |
694 | |
695 inline bool isInterface() const; | |
696 inline typename Interface::Reader getInterface() const; | |
697 | |
698 inline bool isConst() const; | |
699 inline typename Const::Reader getConst() const; | |
700 | |
701 inline bool isAnnotation() const; | |
702 inline typename Annotation::Reader getAnnotation() const; | |
703 | |
704 inline bool hasParameters() const; | |
705 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader getParameters() const; | |
706 | |
707 inline bool getIsGeneric() const; | |
708 | |
709 private: | |
710 ::capnp::_::StructReader _reader; | |
711 template <typename, ::capnp::Kind> | |
712 friend struct ::capnp::ToDynamic_; | |
713 template <typename, ::capnp::Kind> | |
714 friend struct ::capnp::_::PointerHelpers; | |
715 template <typename, ::capnp::Kind> | |
716 friend struct ::capnp::List; | |
717 friend class ::capnp::MessageBuilder; | |
718 friend class ::capnp::Orphanage; | |
719 }; | |
720 | |
721 class Node::Builder { | |
722 public: | |
723 typedef Node Builds; | |
724 | |
725 Builder() = delete; // Deleted to discourage incorrect usage. | |
726 // You can explicitly initialize to nullptr instead. | |
727 inline Builder(decltype(nullptr)) {} | |
728 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
729 inline operator Reader() const { return Reader(_builder.asReader()); } | |
730 inline Reader asReader() const { return *this; } | |
731 | |
732 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
733 #if !CAPNP_LITE | |
734 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
735 #endif // !CAPNP_LITE | |
736 | |
737 inline Which which(); | |
738 inline ::uint64_t getId(); | |
739 inline void setId( ::uint64_t value); | |
740 | |
741 inline bool hasDisplayName(); | |
742 inline ::capnp::Text::Builder getDisplayName(); | |
743 inline void setDisplayName( ::capnp::Text::Reader value); | |
744 inline ::capnp::Text::Builder initDisplayName(unsigned int size); | |
745 inline void adoptDisplayName(::capnp::Orphan< ::capnp::Text>&& value); | |
746 inline ::capnp::Orphan< ::capnp::Text> disownDisplayName(); | |
747 | |
748 inline ::uint32_t getDisplayNamePrefixLength(); | |
749 inline void setDisplayNamePrefixLength( ::uint32_t value); | |
750 | |
751 inline ::uint64_t getScopeId(); | |
752 inline void setScopeId( ::uint64_t value); | |
753 | |
754 inline bool hasNestedNodes(); | |
755 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder getNestedNodes(); | |
756 inline void setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader value); | |
757 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder initNestedNodes(unsigned int size); | |
758 inline void adoptNestedNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>>&& value); | |
759 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>> disownNestedNodes(); | |
760 | |
761 inline bool hasAnnotations(); | |
762 inline ::capnp::List< ::capnp::schema::Annotation>::Builder getAnnotations(); | |
763 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value); | |
764 inline ::capnp::List< ::capnp::schema::Annotation>::Builder initAnnotations(unsigned int size); | |
765 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value); | |
766 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> disownAnnotations(); | |
767 | |
768 inline bool isFile(); | |
769 inline ::capnp::Void getFile(); | |
770 inline void setFile( ::capnp::Void value = ::capnp::VOID); | |
771 | |
772 inline bool isStruct(); | |
773 inline typename Struct::Builder getStruct(); | |
774 inline typename Struct::Builder initStruct(); | |
775 | |
776 inline bool isEnum(); | |
777 inline typename Enum::Builder getEnum(); | |
778 inline typename Enum::Builder initEnum(); | |
779 | |
780 inline bool isInterface(); | |
781 inline typename Interface::Builder getInterface(); | |
782 inline typename Interface::Builder initInterface(); | |
783 | |
784 inline bool isConst(); | |
785 inline typename Const::Builder getConst(); | |
786 inline typename Const::Builder initConst(); | |
787 | |
788 inline bool isAnnotation(); | |
789 inline typename Annotation::Builder getAnnotation(); | |
790 inline typename Annotation::Builder initAnnotation(); | |
791 | |
792 inline bool hasParameters(); | |
793 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder getParameters(); | |
794 inline void setParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value); | |
795 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder initParameters(unsigned int size); | |
796 inline void adoptParameters(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value); | |
797 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> disownParameters(); | |
798 | |
799 inline bool getIsGeneric(); | |
800 inline void setIsGeneric(bool value); | |
801 | |
802 private: | |
803 ::capnp::_::StructBuilder _builder; | |
804 template <typename, ::capnp::Kind> | |
805 friend struct ::capnp::ToDynamic_; | |
806 friend class ::capnp::Orphanage; | |
807 template <typename, ::capnp::Kind> | |
808 friend struct ::capnp::_::PointerHelpers; | |
809 }; | |
810 | |
811 #if !CAPNP_LITE | |
812 class Node::Pipeline { | |
813 public: | |
814 typedef Node Pipelines; | |
815 | |
816 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
817 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
818 : _typeless(kj::mv(typeless)) {} | |
819 | |
820 private: | |
821 ::capnp::AnyPointer::Pipeline _typeless; | |
822 friend class ::capnp::PipelineHook; | |
823 template <typename, ::capnp::Kind> | |
824 friend struct ::capnp::ToDynamic_; | |
825 }; | |
826 #endif // !CAPNP_LITE | |
827 | |
828 class Node::Parameter::Reader { | |
829 public: | |
830 typedef Parameter Reads; | |
831 | |
832 Reader() = default; | |
833 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
834 | |
835 inline ::capnp::MessageSize totalSize() const { | |
836 return _reader.totalSize().asPublic(); | |
837 } | |
838 | |
839 #if !CAPNP_LITE | |
840 inline ::kj::StringTree toString() const { | |
841 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
842 } | |
843 #endif // !CAPNP_LITE | |
844 | |
845 inline bool hasName() const; | |
846 inline ::capnp::Text::Reader getName() const; | |
847 | |
848 private: | |
849 ::capnp::_::StructReader _reader; | |
850 template <typename, ::capnp::Kind> | |
851 friend struct ::capnp::ToDynamic_; | |
852 template <typename, ::capnp::Kind> | |
853 friend struct ::capnp::_::PointerHelpers; | |
854 template <typename, ::capnp::Kind> | |
855 friend struct ::capnp::List; | |
856 friend class ::capnp::MessageBuilder; | |
857 friend class ::capnp::Orphanage; | |
858 }; | |
859 | |
860 class Node::Parameter::Builder { | |
861 public: | |
862 typedef Parameter Builds; | |
863 | |
864 Builder() = delete; // Deleted to discourage incorrect usage. | |
865 // You can explicitly initialize to nullptr instead. | |
866 inline Builder(decltype(nullptr)) {} | |
867 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
868 inline operator Reader() const { return Reader(_builder.asReader()); } | |
869 inline Reader asReader() const { return *this; } | |
870 | |
871 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
872 #if !CAPNP_LITE | |
873 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
874 #endif // !CAPNP_LITE | |
875 | |
876 inline bool hasName(); | |
877 inline ::capnp::Text::Builder getName(); | |
878 inline void setName( ::capnp::Text::Reader value); | |
879 inline ::capnp::Text::Builder initName(unsigned int size); | |
880 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); | |
881 inline ::capnp::Orphan< ::capnp::Text> disownName(); | |
882 | |
883 private: | |
884 ::capnp::_::StructBuilder _builder; | |
885 template <typename, ::capnp::Kind> | |
886 friend struct ::capnp::ToDynamic_; | |
887 friend class ::capnp::Orphanage; | |
888 template <typename, ::capnp::Kind> | |
889 friend struct ::capnp::_::PointerHelpers; | |
890 }; | |
891 | |
892 #if !CAPNP_LITE | |
893 class Node::Parameter::Pipeline { | |
894 public: | |
895 typedef Parameter Pipelines; | |
896 | |
897 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
898 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
899 : _typeless(kj::mv(typeless)) {} | |
900 | |
901 private: | |
902 ::capnp::AnyPointer::Pipeline _typeless; | |
903 friend class ::capnp::PipelineHook; | |
904 template <typename, ::capnp::Kind> | |
905 friend struct ::capnp::ToDynamic_; | |
906 }; | |
907 #endif // !CAPNP_LITE | |
908 | |
909 class Node::NestedNode::Reader { | |
910 public: | |
911 typedef NestedNode Reads; | |
912 | |
913 Reader() = default; | |
914 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
915 | |
916 inline ::capnp::MessageSize totalSize() const { | |
917 return _reader.totalSize().asPublic(); | |
918 } | |
919 | |
920 #if !CAPNP_LITE | |
921 inline ::kj::StringTree toString() const { | |
922 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
923 } | |
924 #endif // !CAPNP_LITE | |
925 | |
926 inline bool hasName() const; | |
927 inline ::capnp::Text::Reader getName() const; | |
928 | |
929 inline ::uint64_t getId() const; | |
930 | |
931 private: | |
932 ::capnp::_::StructReader _reader; | |
933 template <typename, ::capnp::Kind> | |
934 friend struct ::capnp::ToDynamic_; | |
935 template <typename, ::capnp::Kind> | |
936 friend struct ::capnp::_::PointerHelpers; | |
937 template <typename, ::capnp::Kind> | |
938 friend struct ::capnp::List; | |
939 friend class ::capnp::MessageBuilder; | |
940 friend class ::capnp::Orphanage; | |
941 }; | |
942 | |
943 class Node::NestedNode::Builder { | |
944 public: | |
945 typedef NestedNode Builds; | |
946 | |
947 Builder() = delete; // Deleted to discourage incorrect usage. | |
948 // You can explicitly initialize to nullptr instead. | |
949 inline Builder(decltype(nullptr)) {} | |
950 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
951 inline operator Reader() const { return Reader(_builder.asReader()); } | |
952 inline Reader asReader() const { return *this; } | |
953 | |
954 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
955 #if !CAPNP_LITE | |
956 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
957 #endif // !CAPNP_LITE | |
958 | |
959 inline bool hasName(); | |
960 inline ::capnp::Text::Builder getName(); | |
961 inline void setName( ::capnp::Text::Reader value); | |
962 inline ::capnp::Text::Builder initName(unsigned int size); | |
963 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); | |
964 inline ::capnp::Orphan< ::capnp::Text> disownName(); | |
965 | |
966 inline ::uint64_t getId(); | |
967 inline void setId( ::uint64_t value); | |
968 | |
969 private: | |
970 ::capnp::_::StructBuilder _builder; | |
971 template <typename, ::capnp::Kind> | |
972 friend struct ::capnp::ToDynamic_; | |
973 friend class ::capnp::Orphanage; | |
974 template <typename, ::capnp::Kind> | |
975 friend struct ::capnp::_::PointerHelpers; | |
976 }; | |
977 | |
978 #if !CAPNP_LITE | |
979 class Node::NestedNode::Pipeline { | |
980 public: | |
981 typedef NestedNode Pipelines; | |
982 | |
983 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
984 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
985 : _typeless(kj::mv(typeless)) {} | |
986 | |
987 private: | |
988 ::capnp::AnyPointer::Pipeline _typeless; | |
989 friend class ::capnp::PipelineHook; | |
990 template <typename, ::capnp::Kind> | |
991 friend struct ::capnp::ToDynamic_; | |
992 }; | |
993 #endif // !CAPNP_LITE | |
994 | |
995 class Node::Struct::Reader { | |
996 public: | |
997 typedef Struct Reads; | |
998 | |
999 Reader() = default; | |
1000 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1001 | |
1002 inline ::capnp::MessageSize totalSize() const { | |
1003 return _reader.totalSize().asPublic(); | |
1004 } | |
1005 | |
1006 #if !CAPNP_LITE | |
1007 inline ::kj::StringTree toString() const { | |
1008 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1009 } | |
1010 #endif // !CAPNP_LITE | |
1011 | |
1012 inline ::uint16_t getDataWordCount() const; | |
1013 | |
1014 inline ::uint16_t getPointerCount() const; | |
1015 | |
1016 inline ::capnp::schema::ElementSize getPreferredListEncoding() const; | |
1017 | |
1018 inline bool getIsGroup() const; | |
1019 | |
1020 inline ::uint16_t getDiscriminantCount() const; | |
1021 | |
1022 inline ::uint32_t getDiscriminantOffset() const; | |
1023 | |
1024 inline bool hasFields() const; | |
1025 inline ::capnp::List< ::capnp::schema::Field>::Reader getFields() const; | |
1026 | |
1027 private: | |
1028 ::capnp::_::StructReader _reader; | |
1029 template <typename, ::capnp::Kind> | |
1030 friend struct ::capnp::ToDynamic_; | |
1031 template <typename, ::capnp::Kind> | |
1032 friend struct ::capnp::_::PointerHelpers; | |
1033 template <typename, ::capnp::Kind> | |
1034 friend struct ::capnp::List; | |
1035 friend class ::capnp::MessageBuilder; | |
1036 friend class ::capnp::Orphanage; | |
1037 }; | |
1038 | |
1039 class Node::Struct::Builder { | |
1040 public: | |
1041 typedef Struct Builds; | |
1042 | |
1043 Builder() = delete; // Deleted to discourage incorrect usage. | |
1044 // You can explicitly initialize to nullptr instead. | |
1045 inline Builder(decltype(nullptr)) {} | |
1046 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1047 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1048 inline Reader asReader() const { return *this; } | |
1049 | |
1050 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1051 #if !CAPNP_LITE | |
1052 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1053 #endif // !CAPNP_LITE | |
1054 | |
1055 inline ::uint16_t getDataWordCount(); | |
1056 inline void setDataWordCount( ::uint16_t value); | |
1057 | |
1058 inline ::uint16_t getPointerCount(); | |
1059 inline void setPointerCount( ::uint16_t value); | |
1060 | |
1061 inline ::capnp::schema::ElementSize getPreferredListEncoding(); | |
1062 inline void setPreferredListEncoding( ::capnp::schema::ElementSize value); | |
1063 | |
1064 inline bool getIsGroup(); | |
1065 inline void setIsGroup(bool value); | |
1066 | |
1067 inline ::uint16_t getDiscriminantCount(); | |
1068 inline void setDiscriminantCount( ::uint16_t value); | |
1069 | |
1070 inline ::uint32_t getDiscriminantOffset(); | |
1071 inline void setDiscriminantOffset( ::uint32_t value); | |
1072 | |
1073 inline bool hasFields(); | |
1074 inline ::capnp::List< ::capnp::schema::Field>::Builder getFields(); | |
1075 inline void setFields( ::capnp::List< ::capnp::schema::Field>::Reader value); | |
1076 inline ::capnp::List< ::capnp::schema::Field>::Builder initFields(unsigned int size); | |
1077 inline void adoptFields(::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>>&& value); | |
1078 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>> disownFields(); | |
1079 | |
1080 private: | |
1081 ::capnp::_::StructBuilder _builder; | |
1082 template <typename, ::capnp::Kind> | |
1083 friend struct ::capnp::ToDynamic_; | |
1084 friend class ::capnp::Orphanage; | |
1085 template <typename, ::capnp::Kind> | |
1086 friend struct ::capnp::_::PointerHelpers; | |
1087 }; | |
1088 | |
1089 #if !CAPNP_LITE | |
1090 class Node::Struct::Pipeline { | |
1091 public: | |
1092 typedef Struct Pipelines; | |
1093 | |
1094 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1095 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1096 : _typeless(kj::mv(typeless)) {} | |
1097 | |
1098 private: | |
1099 ::capnp::AnyPointer::Pipeline _typeless; | |
1100 friend class ::capnp::PipelineHook; | |
1101 template <typename, ::capnp::Kind> | |
1102 friend struct ::capnp::ToDynamic_; | |
1103 }; | |
1104 #endif // !CAPNP_LITE | |
1105 | |
1106 class Node::Enum::Reader { | |
1107 public: | |
1108 typedef Enum Reads; | |
1109 | |
1110 Reader() = default; | |
1111 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1112 | |
1113 inline ::capnp::MessageSize totalSize() const { | |
1114 return _reader.totalSize().asPublic(); | |
1115 } | |
1116 | |
1117 #if !CAPNP_LITE | |
1118 inline ::kj::StringTree toString() const { | |
1119 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1120 } | |
1121 #endif // !CAPNP_LITE | |
1122 | |
1123 inline bool hasEnumerants() const; | |
1124 inline ::capnp::List< ::capnp::schema::Enumerant>::Reader getEnumerants() const; | |
1125 | |
1126 private: | |
1127 ::capnp::_::StructReader _reader; | |
1128 template <typename, ::capnp::Kind> | |
1129 friend struct ::capnp::ToDynamic_; | |
1130 template <typename, ::capnp::Kind> | |
1131 friend struct ::capnp::_::PointerHelpers; | |
1132 template <typename, ::capnp::Kind> | |
1133 friend struct ::capnp::List; | |
1134 friend class ::capnp::MessageBuilder; | |
1135 friend class ::capnp::Orphanage; | |
1136 }; | |
1137 | |
1138 class Node::Enum::Builder { | |
1139 public: | |
1140 typedef Enum Builds; | |
1141 | |
1142 Builder() = delete; // Deleted to discourage incorrect usage. | |
1143 // You can explicitly initialize to nullptr instead. | |
1144 inline Builder(decltype(nullptr)) {} | |
1145 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1146 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1147 inline Reader asReader() const { return *this; } | |
1148 | |
1149 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1150 #if !CAPNP_LITE | |
1151 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1152 #endif // !CAPNP_LITE | |
1153 | |
1154 inline bool hasEnumerants(); | |
1155 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder getEnumerants(); | |
1156 inline void setEnumerants( ::capnp::List< ::capnp::schema::Enumerant>::Reader value); | |
1157 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder initEnumerants(unsigned int size); | |
1158 inline void adoptEnumerants(::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>>&& value); | |
1159 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>> disownEnumerants(); | |
1160 | |
1161 private: | |
1162 ::capnp::_::StructBuilder _builder; | |
1163 template <typename, ::capnp::Kind> | |
1164 friend struct ::capnp::ToDynamic_; | |
1165 friend class ::capnp::Orphanage; | |
1166 template <typename, ::capnp::Kind> | |
1167 friend struct ::capnp::_::PointerHelpers; | |
1168 }; | |
1169 | |
1170 #if !CAPNP_LITE | |
1171 class Node::Enum::Pipeline { | |
1172 public: | |
1173 typedef Enum Pipelines; | |
1174 | |
1175 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1176 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1177 : _typeless(kj::mv(typeless)) {} | |
1178 | |
1179 private: | |
1180 ::capnp::AnyPointer::Pipeline _typeless; | |
1181 friend class ::capnp::PipelineHook; | |
1182 template <typename, ::capnp::Kind> | |
1183 friend struct ::capnp::ToDynamic_; | |
1184 }; | |
1185 #endif // !CAPNP_LITE | |
1186 | |
1187 class Node::Interface::Reader { | |
1188 public: | |
1189 typedef Interface Reads; | |
1190 | |
1191 Reader() = default; | |
1192 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1193 | |
1194 inline ::capnp::MessageSize totalSize() const { | |
1195 return _reader.totalSize().asPublic(); | |
1196 } | |
1197 | |
1198 #if !CAPNP_LITE | |
1199 inline ::kj::StringTree toString() const { | |
1200 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1201 } | |
1202 #endif // !CAPNP_LITE | |
1203 | |
1204 inline bool hasMethods() const; | |
1205 inline ::capnp::List< ::capnp::schema::Method>::Reader getMethods() const; | |
1206 | |
1207 inline bool hasSuperclasses() const; | |
1208 inline ::capnp::List< ::capnp::schema::Superclass>::Reader getSuperclasses() const; | |
1209 | |
1210 private: | |
1211 ::capnp::_::StructReader _reader; | |
1212 template <typename, ::capnp::Kind> | |
1213 friend struct ::capnp::ToDynamic_; | |
1214 template <typename, ::capnp::Kind> | |
1215 friend struct ::capnp::_::PointerHelpers; | |
1216 template <typename, ::capnp::Kind> | |
1217 friend struct ::capnp::List; | |
1218 friend class ::capnp::MessageBuilder; | |
1219 friend class ::capnp::Orphanage; | |
1220 }; | |
1221 | |
1222 class Node::Interface::Builder { | |
1223 public: | |
1224 typedef Interface Builds; | |
1225 | |
1226 Builder() = delete; // Deleted to discourage incorrect usage. | |
1227 // You can explicitly initialize to nullptr instead. | |
1228 inline Builder(decltype(nullptr)) {} | |
1229 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1230 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1231 inline Reader asReader() const { return *this; } | |
1232 | |
1233 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1234 #if !CAPNP_LITE | |
1235 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1236 #endif // !CAPNP_LITE | |
1237 | |
1238 inline bool hasMethods(); | |
1239 inline ::capnp::List< ::capnp::schema::Method>::Builder getMethods(); | |
1240 inline void setMethods( ::capnp::List< ::capnp::schema::Method>::Reader value); | |
1241 inline ::capnp::List< ::capnp::schema::Method>::Builder initMethods(unsigned int size); | |
1242 inline void adoptMethods(::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>>&& value); | |
1243 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>> disownMethods(); | |
1244 | |
1245 inline bool hasSuperclasses(); | |
1246 inline ::capnp::List< ::capnp::schema::Superclass>::Builder getSuperclasses(); | |
1247 inline void setSuperclasses( ::capnp::List< ::capnp::schema::Superclass>::Reader value); | |
1248 inline ::capnp::List< ::capnp::schema::Superclass>::Builder initSuperclasses(unsigned int size); | |
1249 inline void adoptSuperclasses(::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>>&& value); | |
1250 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>> disownSuperclasses(); | |
1251 | |
1252 private: | |
1253 ::capnp::_::StructBuilder _builder; | |
1254 template <typename, ::capnp::Kind> | |
1255 friend struct ::capnp::ToDynamic_; | |
1256 friend class ::capnp::Orphanage; | |
1257 template <typename, ::capnp::Kind> | |
1258 friend struct ::capnp::_::PointerHelpers; | |
1259 }; | |
1260 | |
1261 #if !CAPNP_LITE | |
1262 class Node::Interface::Pipeline { | |
1263 public: | |
1264 typedef Interface Pipelines; | |
1265 | |
1266 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1267 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1268 : _typeless(kj::mv(typeless)) {} | |
1269 | |
1270 private: | |
1271 ::capnp::AnyPointer::Pipeline _typeless; | |
1272 friend class ::capnp::PipelineHook; | |
1273 template <typename, ::capnp::Kind> | |
1274 friend struct ::capnp::ToDynamic_; | |
1275 }; | |
1276 #endif // !CAPNP_LITE | |
1277 | |
1278 class Node::Const::Reader { | |
1279 public: | |
1280 typedef Const Reads; | |
1281 | |
1282 Reader() = default; | |
1283 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1284 | |
1285 inline ::capnp::MessageSize totalSize() const { | |
1286 return _reader.totalSize().asPublic(); | |
1287 } | |
1288 | |
1289 #if !CAPNP_LITE | |
1290 inline ::kj::StringTree toString() const { | |
1291 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1292 } | |
1293 #endif // !CAPNP_LITE | |
1294 | |
1295 inline bool hasType() const; | |
1296 inline ::capnp::schema::Type::Reader getType() const; | |
1297 | |
1298 inline bool hasValue() const; | |
1299 inline ::capnp::schema::Value::Reader getValue() const; | |
1300 | |
1301 private: | |
1302 ::capnp::_::StructReader _reader; | |
1303 template <typename, ::capnp::Kind> | |
1304 friend struct ::capnp::ToDynamic_; | |
1305 template <typename, ::capnp::Kind> | |
1306 friend struct ::capnp::_::PointerHelpers; | |
1307 template <typename, ::capnp::Kind> | |
1308 friend struct ::capnp::List; | |
1309 friend class ::capnp::MessageBuilder; | |
1310 friend class ::capnp::Orphanage; | |
1311 }; | |
1312 | |
1313 class Node::Const::Builder { | |
1314 public: | |
1315 typedef Const Builds; | |
1316 | |
1317 Builder() = delete; // Deleted to discourage incorrect usage. | |
1318 // You can explicitly initialize to nullptr instead. | |
1319 inline Builder(decltype(nullptr)) {} | |
1320 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1321 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1322 inline Reader asReader() const { return *this; } | |
1323 | |
1324 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1325 #if !CAPNP_LITE | |
1326 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1327 #endif // !CAPNP_LITE | |
1328 | |
1329 inline bool hasType(); | |
1330 inline ::capnp::schema::Type::Builder getType(); | |
1331 inline void setType( ::capnp::schema::Type::Reader value); | |
1332 inline ::capnp::schema::Type::Builder initType(); | |
1333 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); | |
1334 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); | |
1335 | |
1336 inline bool hasValue(); | |
1337 inline ::capnp::schema::Value::Builder getValue(); | |
1338 inline void setValue( ::capnp::schema::Value::Reader value); | |
1339 inline ::capnp::schema::Value::Builder initValue(); | |
1340 inline void adoptValue(::capnp::Orphan< ::capnp::schema::Value>&& value); | |
1341 inline ::capnp::Orphan< ::capnp::schema::Value> disownValue(); | |
1342 | |
1343 private: | |
1344 ::capnp::_::StructBuilder _builder; | |
1345 template <typename, ::capnp::Kind> | |
1346 friend struct ::capnp::ToDynamic_; | |
1347 friend class ::capnp::Orphanage; | |
1348 template <typename, ::capnp::Kind> | |
1349 friend struct ::capnp::_::PointerHelpers; | |
1350 }; | |
1351 | |
1352 #if !CAPNP_LITE | |
1353 class Node::Const::Pipeline { | |
1354 public: | |
1355 typedef Const Pipelines; | |
1356 | |
1357 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1358 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1359 : _typeless(kj::mv(typeless)) {} | |
1360 | |
1361 inline ::capnp::schema::Type::Pipeline getType(); | |
1362 inline ::capnp::schema::Value::Pipeline getValue(); | |
1363 private: | |
1364 ::capnp::AnyPointer::Pipeline _typeless; | |
1365 friend class ::capnp::PipelineHook; | |
1366 template <typename, ::capnp::Kind> | |
1367 friend struct ::capnp::ToDynamic_; | |
1368 }; | |
1369 #endif // !CAPNP_LITE | |
1370 | |
1371 class Node::Annotation::Reader { | |
1372 public: | |
1373 typedef Annotation Reads; | |
1374 | |
1375 Reader() = default; | |
1376 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1377 | |
1378 inline ::capnp::MessageSize totalSize() const { | |
1379 return _reader.totalSize().asPublic(); | |
1380 } | |
1381 | |
1382 #if !CAPNP_LITE | |
1383 inline ::kj::StringTree toString() const { | |
1384 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1385 } | |
1386 #endif // !CAPNP_LITE | |
1387 | |
1388 inline bool hasType() const; | |
1389 inline ::capnp::schema::Type::Reader getType() const; | |
1390 | |
1391 inline bool getTargetsFile() const; | |
1392 | |
1393 inline bool getTargetsConst() const; | |
1394 | |
1395 inline bool getTargetsEnum() const; | |
1396 | |
1397 inline bool getTargetsEnumerant() const; | |
1398 | |
1399 inline bool getTargetsStruct() const; | |
1400 | |
1401 inline bool getTargetsField() const; | |
1402 | |
1403 inline bool getTargetsUnion() const; | |
1404 | |
1405 inline bool getTargetsGroup() const; | |
1406 | |
1407 inline bool getTargetsInterface() const; | |
1408 | |
1409 inline bool getTargetsMethod() const; | |
1410 | |
1411 inline bool getTargetsParam() const; | |
1412 | |
1413 inline bool getTargetsAnnotation() const; | |
1414 | |
1415 private: | |
1416 ::capnp::_::StructReader _reader; | |
1417 template <typename, ::capnp::Kind> | |
1418 friend struct ::capnp::ToDynamic_; | |
1419 template <typename, ::capnp::Kind> | |
1420 friend struct ::capnp::_::PointerHelpers; | |
1421 template <typename, ::capnp::Kind> | |
1422 friend struct ::capnp::List; | |
1423 friend class ::capnp::MessageBuilder; | |
1424 friend class ::capnp::Orphanage; | |
1425 }; | |
1426 | |
1427 class Node::Annotation::Builder { | |
1428 public: | |
1429 typedef Annotation Builds; | |
1430 | |
1431 Builder() = delete; // Deleted to discourage incorrect usage. | |
1432 // You can explicitly initialize to nullptr instead. | |
1433 inline Builder(decltype(nullptr)) {} | |
1434 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1435 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1436 inline Reader asReader() const { return *this; } | |
1437 | |
1438 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1439 #if !CAPNP_LITE | |
1440 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1441 #endif // !CAPNP_LITE | |
1442 | |
1443 inline bool hasType(); | |
1444 inline ::capnp::schema::Type::Builder getType(); | |
1445 inline void setType( ::capnp::schema::Type::Reader value); | |
1446 inline ::capnp::schema::Type::Builder initType(); | |
1447 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); | |
1448 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); | |
1449 | |
1450 inline bool getTargetsFile(); | |
1451 inline void setTargetsFile(bool value); | |
1452 | |
1453 inline bool getTargetsConst(); | |
1454 inline void setTargetsConst(bool value); | |
1455 | |
1456 inline bool getTargetsEnum(); | |
1457 inline void setTargetsEnum(bool value); | |
1458 | |
1459 inline bool getTargetsEnumerant(); | |
1460 inline void setTargetsEnumerant(bool value); | |
1461 | |
1462 inline bool getTargetsStruct(); | |
1463 inline void setTargetsStruct(bool value); | |
1464 | |
1465 inline bool getTargetsField(); | |
1466 inline void setTargetsField(bool value); | |
1467 | |
1468 inline bool getTargetsUnion(); | |
1469 inline void setTargetsUnion(bool value); | |
1470 | |
1471 inline bool getTargetsGroup(); | |
1472 inline void setTargetsGroup(bool value); | |
1473 | |
1474 inline bool getTargetsInterface(); | |
1475 inline void setTargetsInterface(bool value); | |
1476 | |
1477 inline bool getTargetsMethod(); | |
1478 inline void setTargetsMethod(bool value); | |
1479 | |
1480 inline bool getTargetsParam(); | |
1481 inline void setTargetsParam(bool value); | |
1482 | |
1483 inline bool getTargetsAnnotation(); | |
1484 inline void setTargetsAnnotation(bool value); | |
1485 | |
1486 private: | |
1487 ::capnp::_::StructBuilder _builder; | |
1488 template <typename, ::capnp::Kind> | |
1489 friend struct ::capnp::ToDynamic_; | |
1490 friend class ::capnp::Orphanage; | |
1491 template <typename, ::capnp::Kind> | |
1492 friend struct ::capnp::_::PointerHelpers; | |
1493 }; | |
1494 | |
1495 #if !CAPNP_LITE | |
1496 class Node::Annotation::Pipeline { | |
1497 public: | |
1498 typedef Annotation Pipelines; | |
1499 | |
1500 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1501 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1502 : _typeless(kj::mv(typeless)) {} | |
1503 | |
1504 inline ::capnp::schema::Type::Pipeline getType(); | |
1505 private: | |
1506 ::capnp::AnyPointer::Pipeline _typeless; | |
1507 friend class ::capnp::PipelineHook; | |
1508 template <typename, ::capnp::Kind> | |
1509 friend struct ::capnp::ToDynamic_; | |
1510 }; | |
1511 #endif // !CAPNP_LITE | |
1512 | |
1513 class Field::Reader { | |
1514 public: | |
1515 typedef Field Reads; | |
1516 | |
1517 Reader() = default; | |
1518 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1519 | |
1520 inline ::capnp::MessageSize totalSize() const { | |
1521 return _reader.totalSize().asPublic(); | |
1522 } | |
1523 | |
1524 #if !CAPNP_LITE | |
1525 inline ::kj::StringTree toString() const { | |
1526 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1527 } | |
1528 #endif // !CAPNP_LITE | |
1529 | |
1530 inline Which which() const; | |
1531 inline bool hasName() const; | |
1532 inline ::capnp::Text::Reader getName() const; | |
1533 | |
1534 inline ::uint16_t getCodeOrder() const; | |
1535 | |
1536 inline bool hasAnnotations() const; | |
1537 inline ::capnp::List< ::capnp::schema::Annotation>::Reader getAnnotations() const; | |
1538 | |
1539 inline ::uint16_t getDiscriminantValue() const; | |
1540 | |
1541 inline bool isSlot() const; | |
1542 inline typename Slot::Reader getSlot() const; | |
1543 | |
1544 inline bool isGroup() const; | |
1545 inline typename Group::Reader getGroup() const; | |
1546 | |
1547 inline typename Ordinal::Reader getOrdinal() const; | |
1548 | |
1549 private: | |
1550 ::capnp::_::StructReader _reader; | |
1551 template <typename, ::capnp::Kind> | |
1552 friend struct ::capnp::ToDynamic_; | |
1553 template <typename, ::capnp::Kind> | |
1554 friend struct ::capnp::_::PointerHelpers; | |
1555 template <typename, ::capnp::Kind> | |
1556 friend struct ::capnp::List; | |
1557 friend class ::capnp::MessageBuilder; | |
1558 friend class ::capnp::Orphanage; | |
1559 }; | |
1560 | |
1561 class Field::Builder { | |
1562 public: | |
1563 typedef Field Builds; | |
1564 | |
1565 Builder() = delete; // Deleted to discourage incorrect usage. | |
1566 // You can explicitly initialize to nullptr instead. | |
1567 inline Builder(decltype(nullptr)) {} | |
1568 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1569 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1570 inline Reader asReader() const { return *this; } | |
1571 | |
1572 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1573 #if !CAPNP_LITE | |
1574 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1575 #endif // !CAPNP_LITE | |
1576 | |
1577 inline Which which(); | |
1578 inline bool hasName(); | |
1579 inline ::capnp::Text::Builder getName(); | |
1580 inline void setName( ::capnp::Text::Reader value); | |
1581 inline ::capnp::Text::Builder initName(unsigned int size); | |
1582 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); | |
1583 inline ::capnp::Orphan< ::capnp::Text> disownName(); | |
1584 | |
1585 inline ::uint16_t getCodeOrder(); | |
1586 inline void setCodeOrder( ::uint16_t value); | |
1587 | |
1588 inline bool hasAnnotations(); | |
1589 inline ::capnp::List< ::capnp::schema::Annotation>::Builder getAnnotations(); | |
1590 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value); | |
1591 inline ::capnp::List< ::capnp::schema::Annotation>::Builder initAnnotations(unsigned int size); | |
1592 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value); | |
1593 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> disownAnnotations(); | |
1594 | |
1595 inline ::uint16_t getDiscriminantValue(); | |
1596 inline void setDiscriminantValue( ::uint16_t value); | |
1597 | |
1598 inline bool isSlot(); | |
1599 inline typename Slot::Builder getSlot(); | |
1600 inline typename Slot::Builder initSlot(); | |
1601 | |
1602 inline bool isGroup(); | |
1603 inline typename Group::Builder getGroup(); | |
1604 inline typename Group::Builder initGroup(); | |
1605 | |
1606 inline typename Ordinal::Builder getOrdinal(); | |
1607 inline typename Ordinal::Builder initOrdinal(); | |
1608 | |
1609 private: | |
1610 ::capnp::_::StructBuilder _builder; | |
1611 template <typename, ::capnp::Kind> | |
1612 friend struct ::capnp::ToDynamic_; | |
1613 friend class ::capnp::Orphanage; | |
1614 template <typename, ::capnp::Kind> | |
1615 friend struct ::capnp::_::PointerHelpers; | |
1616 }; | |
1617 | |
1618 #if !CAPNP_LITE | |
1619 class Field::Pipeline { | |
1620 public: | |
1621 typedef Field Pipelines; | |
1622 | |
1623 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1624 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1625 : _typeless(kj::mv(typeless)) {} | |
1626 | |
1627 inline typename Ordinal::Pipeline getOrdinal(); | |
1628 private: | |
1629 ::capnp::AnyPointer::Pipeline _typeless; | |
1630 friend class ::capnp::PipelineHook; | |
1631 template <typename, ::capnp::Kind> | |
1632 friend struct ::capnp::ToDynamic_; | |
1633 }; | |
1634 #endif // !CAPNP_LITE | |
1635 | |
1636 class Field::Slot::Reader { | |
1637 public: | |
1638 typedef Slot Reads; | |
1639 | |
1640 Reader() = default; | |
1641 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1642 | |
1643 inline ::capnp::MessageSize totalSize() const { | |
1644 return _reader.totalSize().asPublic(); | |
1645 } | |
1646 | |
1647 #if !CAPNP_LITE | |
1648 inline ::kj::StringTree toString() const { | |
1649 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1650 } | |
1651 #endif // !CAPNP_LITE | |
1652 | |
1653 inline ::uint32_t getOffset() const; | |
1654 | |
1655 inline bool hasType() const; | |
1656 inline ::capnp::schema::Type::Reader getType() const; | |
1657 | |
1658 inline bool hasDefaultValue() const; | |
1659 inline ::capnp::schema::Value::Reader getDefaultValue() const; | |
1660 | |
1661 inline bool getHadExplicitDefault() const; | |
1662 | |
1663 private: | |
1664 ::capnp::_::StructReader _reader; | |
1665 template <typename, ::capnp::Kind> | |
1666 friend struct ::capnp::ToDynamic_; | |
1667 template <typename, ::capnp::Kind> | |
1668 friend struct ::capnp::_::PointerHelpers; | |
1669 template <typename, ::capnp::Kind> | |
1670 friend struct ::capnp::List; | |
1671 friend class ::capnp::MessageBuilder; | |
1672 friend class ::capnp::Orphanage; | |
1673 }; | |
1674 | |
1675 class Field::Slot::Builder { | |
1676 public: | |
1677 typedef Slot Builds; | |
1678 | |
1679 Builder() = delete; // Deleted to discourage incorrect usage. | |
1680 // You can explicitly initialize to nullptr instead. | |
1681 inline Builder(decltype(nullptr)) {} | |
1682 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1683 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1684 inline Reader asReader() const { return *this; } | |
1685 | |
1686 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1687 #if !CAPNP_LITE | |
1688 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1689 #endif // !CAPNP_LITE | |
1690 | |
1691 inline ::uint32_t getOffset(); | |
1692 inline void setOffset( ::uint32_t value); | |
1693 | |
1694 inline bool hasType(); | |
1695 inline ::capnp::schema::Type::Builder getType(); | |
1696 inline void setType( ::capnp::schema::Type::Reader value); | |
1697 inline ::capnp::schema::Type::Builder initType(); | |
1698 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); | |
1699 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); | |
1700 | |
1701 inline bool hasDefaultValue(); | |
1702 inline ::capnp::schema::Value::Builder getDefaultValue(); | |
1703 inline void setDefaultValue( ::capnp::schema::Value::Reader value); | |
1704 inline ::capnp::schema::Value::Builder initDefaultValue(); | |
1705 inline void adoptDefaultValue(::capnp::Orphan< ::capnp::schema::Value>&& value); | |
1706 inline ::capnp::Orphan< ::capnp::schema::Value> disownDefaultValue(); | |
1707 | |
1708 inline bool getHadExplicitDefault(); | |
1709 inline void setHadExplicitDefault(bool value); | |
1710 | |
1711 private: | |
1712 ::capnp::_::StructBuilder _builder; | |
1713 template <typename, ::capnp::Kind> | |
1714 friend struct ::capnp::ToDynamic_; | |
1715 friend class ::capnp::Orphanage; | |
1716 template <typename, ::capnp::Kind> | |
1717 friend struct ::capnp::_::PointerHelpers; | |
1718 }; | |
1719 | |
1720 #if !CAPNP_LITE | |
1721 class Field::Slot::Pipeline { | |
1722 public: | |
1723 typedef Slot Pipelines; | |
1724 | |
1725 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1726 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1727 : _typeless(kj::mv(typeless)) {} | |
1728 | |
1729 inline ::capnp::schema::Type::Pipeline getType(); | |
1730 inline ::capnp::schema::Value::Pipeline getDefaultValue(); | |
1731 private: | |
1732 ::capnp::AnyPointer::Pipeline _typeless; | |
1733 friend class ::capnp::PipelineHook; | |
1734 template <typename, ::capnp::Kind> | |
1735 friend struct ::capnp::ToDynamic_; | |
1736 }; | |
1737 #endif // !CAPNP_LITE | |
1738 | |
1739 class Field::Group::Reader { | |
1740 public: | |
1741 typedef Group Reads; | |
1742 | |
1743 Reader() = default; | |
1744 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1745 | |
1746 inline ::capnp::MessageSize totalSize() const { | |
1747 return _reader.totalSize().asPublic(); | |
1748 } | |
1749 | |
1750 #if !CAPNP_LITE | |
1751 inline ::kj::StringTree toString() const { | |
1752 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1753 } | |
1754 #endif // !CAPNP_LITE | |
1755 | |
1756 inline ::uint64_t getTypeId() const; | |
1757 | |
1758 private: | |
1759 ::capnp::_::StructReader _reader; | |
1760 template <typename, ::capnp::Kind> | |
1761 friend struct ::capnp::ToDynamic_; | |
1762 template <typename, ::capnp::Kind> | |
1763 friend struct ::capnp::_::PointerHelpers; | |
1764 template <typename, ::capnp::Kind> | |
1765 friend struct ::capnp::List; | |
1766 friend class ::capnp::MessageBuilder; | |
1767 friend class ::capnp::Orphanage; | |
1768 }; | |
1769 | |
1770 class Field::Group::Builder { | |
1771 public: | |
1772 typedef Group Builds; | |
1773 | |
1774 Builder() = delete; // Deleted to discourage incorrect usage. | |
1775 // You can explicitly initialize to nullptr instead. | |
1776 inline Builder(decltype(nullptr)) {} | |
1777 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1778 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1779 inline Reader asReader() const { return *this; } | |
1780 | |
1781 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1782 #if !CAPNP_LITE | |
1783 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1784 #endif // !CAPNP_LITE | |
1785 | |
1786 inline ::uint64_t getTypeId(); | |
1787 inline void setTypeId( ::uint64_t value); | |
1788 | |
1789 private: | |
1790 ::capnp::_::StructBuilder _builder; | |
1791 template <typename, ::capnp::Kind> | |
1792 friend struct ::capnp::ToDynamic_; | |
1793 friend class ::capnp::Orphanage; | |
1794 template <typename, ::capnp::Kind> | |
1795 friend struct ::capnp::_::PointerHelpers; | |
1796 }; | |
1797 | |
1798 #if !CAPNP_LITE | |
1799 class Field::Group::Pipeline { | |
1800 public: | |
1801 typedef Group Pipelines; | |
1802 | |
1803 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1804 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1805 : _typeless(kj::mv(typeless)) {} | |
1806 | |
1807 private: | |
1808 ::capnp::AnyPointer::Pipeline _typeless; | |
1809 friend class ::capnp::PipelineHook; | |
1810 template <typename, ::capnp::Kind> | |
1811 friend struct ::capnp::ToDynamic_; | |
1812 }; | |
1813 #endif // !CAPNP_LITE | |
1814 | |
1815 class Field::Ordinal::Reader { | |
1816 public: | |
1817 typedef Ordinal Reads; | |
1818 | |
1819 Reader() = default; | |
1820 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1821 | |
1822 inline ::capnp::MessageSize totalSize() const { | |
1823 return _reader.totalSize().asPublic(); | |
1824 } | |
1825 | |
1826 #if !CAPNP_LITE | |
1827 inline ::kj::StringTree toString() const { | |
1828 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1829 } | |
1830 #endif // !CAPNP_LITE | |
1831 | |
1832 inline Which which() const; | |
1833 inline bool isImplicit() const; | |
1834 inline ::capnp::Void getImplicit() const; | |
1835 | |
1836 inline bool isExplicit() const; | |
1837 inline ::uint16_t getExplicit() const; | |
1838 | |
1839 private: | |
1840 ::capnp::_::StructReader _reader; | |
1841 template <typename, ::capnp::Kind> | |
1842 friend struct ::capnp::ToDynamic_; | |
1843 template <typename, ::capnp::Kind> | |
1844 friend struct ::capnp::_::PointerHelpers; | |
1845 template <typename, ::capnp::Kind> | |
1846 friend struct ::capnp::List; | |
1847 friend class ::capnp::MessageBuilder; | |
1848 friend class ::capnp::Orphanage; | |
1849 }; | |
1850 | |
1851 class Field::Ordinal::Builder { | |
1852 public: | |
1853 typedef Ordinal Builds; | |
1854 | |
1855 Builder() = delete; // Deleted to discourage incorrect usage. | |
1856 // You can explicitly initialize to nullptr instead. | |
1857 inline Builder(decltype(nullptr)) {} | |
1858 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1859 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1860 inline Reader asReader() const { return *this; } | |
1861 | |
1862 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1863 #if !CAPNP_LITE | |
1864 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1865 #endif // !CAPNP_LITE | |
1866 | |
1867 inline Which which(); | |
1868 inline bool isImplicit(); | |
1869 inline ::capnp::Void getImplicit(); | |
1870 inline void setImplicit( ::capnp::Void value = ::capnp::VOID); | |
1871 | |
1872 inline bool isExplicit(); | |
1873 inline ::uint16_t getExplicit(); | |
1874 inline void setExplicit( ::uint16_t value); | |
1875 | |
1876 private: | |
1877 ::capnp::_::StructBuilder _builder; | |
1878 template <typename, ::capnp::Kind> | |
1879 friend struct ::capnp::ToDynamic_; | |
1880 friend class ::capnp::Orphanage; | |
1881 template <typename, ::capnp::Kind> | |
1882 friend struct ::capnp::_::PointerHelpers; | |
1883 }; | |
1884 | |
1885 #if !CAPNP_LITE | |
1886 class Field::Ordinal::Pipeline { | |
1887 public: | |
1888 typedef Ordinal Pipelines; | |
1889 | |
1890 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1891 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1892 : _typeless(kj::mv(typeless)) {} | |
1893 | |
1894 private: | |
1895 ::capnp::AnyPointer::Pipeline _typeless; | |
1896 friend class ::capnp::PipelineHook; | |
1897 template <typename, ::capnp::Kind> | |
1898 friend struct ::capnp::ToDynamic_; | |
1899 }; | |
1900 #endif // !CAPNP_LITE | |
1901 | |
1902 class Enumerant::Reader { | |
1903 public: | |
1904 typedef Enumerant Reads; | |
1905 | |
1906 Reader() = default; | |
1907 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1908 | |
1909 inline ::capnp::MessageSize totalSize() const { | |
1910 return _reader.totalSize().asPublic(); | |
1911 } | |
1912 | |
1913 #if !CAPNP_LITE | |
1914 inline ::kj::StringTree toString() const { | |
1915 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1916 } | |
1917 #endif // !CAPNP_LITE | |
1918 | |
1919 inline bool hasName() const; | |
1920 inline ::capnp::Text::Reader getName() const; | |
1921 | |
1922 inline ::uint16_t getCodeOrder() const; | |
1923 | |
1924 inline bool hasAnnotations() const; | |
1925 inline ::capnp::List< ::capnp::schema::Annotation>::Reader getAnnotations() const; | |
1926 | |
1927 private: | |
1928 ::capnp::_::StructReader _reader; | |
1929 template <typename, ::capnp::Kind> | |
1930 friend struct ::capnp::ToDynamic_; | |
1931 template <typename, ::capnp::Kind> | |
1932 friend struct ::capnp::_::PointerHelpers; | |
1933 template <typename, ::capnp::Kind> | |
1934 friend struct ::capnp::List; | |
1935 friend class ::capnp::MessageBuilder; | |
1936 friend class ::capnp::Orphanage; | |
1937 }; | |
1938 | |
1939 class Enumerant::Builder { | |
1940 public: | |
1941 typedef Enumerant Builds; | |
1942 | |
1943 Builder() = delete; // Deleted to discourage incorrect usage. | |
1944 // You can explicitly initialize to nullptr instead. | |
1945 inline Builder(decltype(nullptr)) {} | |
1946 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1947 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1948 inline Reader asReader() const { return *this; } | |
1949 | |
1950 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1951 #if !CAPNP_LITE | |
1952 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1953 #endif // !CAPNP_LITE | |
1954 | |
1955 inline bool hasName(); | |
1956 inline ::capnp::Text::Builder getName(); | |
1957 inline void setName( ::capnp::Text::Reader value); | |
1958 inline ::capnp::Text::Builder initName(unsigned int size); | |
1959 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); | |
1960 inline ::capnp::Orphan< ::capnp::Text> disownName(); | |
1961 | |
1962 inline ::uint16_t getCodeOrder(); | |
1963 inline void setCodeOrder( ::uint16_t value); | |
1964 | |
1965 inline bool hasAnnotations(); | |
1966 inline ::capnp::List< ::capnp::schema::Annotation>::Builder getAnnotations(); | |
1967 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value); | |
1968 inline ::capnp::List< ::capnp::schema::Annotation>::Builder initAnnotations(unsigned int size); | |
1969 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value); | |
1970 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> disownAnnotations(); | |
1971 | |
1972 private: | |
1973 ::capnp::_::StructBuilder _builder; | |
1974 template <typename, ::capnp::Kind> | |
1975 friend struct ::capnp::ToDynamic_; | |
1976 friend class ::capnp::Orphanage; | |
1977 template <typename, ::capnp::Kind> | |
1978 friend struct ::capnp::_::PointerHelpers; | |
1979 }; | |
1980 | |
1981 #if !CAPNP_LITE | |
1982 class Enumerant::Pipeline { | |
1983 public: | |
1984 typedef Enumerant Pipelines; | |
1985 | |
1986 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1987 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1988 : _typeless(kj::mv(typeless)) {} | |
1989 | |
1990 private: | |
1991 ::capnp::AnyPointer::Pipeline _typeless; | |
1992 friend class ::capnp::PipelineHook; | |
1993 template <typename, ::capnp::Kind> | |
1994 friend struct ::capnp::ToDynamic_; | |
1995 }; | |
1996 #endif // !CAPNP_LITE | |
1997 | |
1998 class Superclass::Reader { | |
1999 public: | |
2000 typedef Superclass Reads; | |
2001 | |
2002 Reader() = default; | |
2003 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2004 | |
2005 inline ::capnp::MessageSize totalSize() const { | |
2006 return _reader.totalSize().asPublic(); | |
2007 } | |
2008 | |
2009 #if !CAPNP_LITE | |
2010 inline ::kj::StringTree toString() const { | |
2011 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2012 } | |
2013 #endif // !CAPNP_LITE | |
2014 | |
2015 inline ::uint64_t getId() const; | |
2016 | |
2017 inline bool hasBrand() const; | |
2018 inline ::capnp::schema::Brand::Reader getBrand() const; | |
2019 | |
2020 private: | |
2021 ::capnp::_::StructReader _reader; | |
2022 template <typename, ::capnp::Kind> | |
2023 friend struct ::capnp::ToDynamic_; | |
2024 template <typename, ::capnp::Kind> | |
2025 friend struct ::capnp::_::PointerHelpers; | |
2026 template <typename, ::capnp::Kind> | |
2027 friend struct ::capnp::List; | |
2028 friend class ::capnp::MessageBuilder; | |
2029 friend class ::capnp::Orphanage; | |
2030 }; | |
2031 | |
2032 class Superclass::Builder { | |
2033 public: | |
2034 typedef Superclass Builds; | |
2035 | |
2036 Builder() = delete; // Deleted to discourage incorrect usage. | |
2037 // You can explicitly initialize to nullptr instead. | |
2038 inline Builder(decltype(nullptr)) {} | |
2039 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2040 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2041 inline Reader asReader() const { return *this; } | |
2042 | |
2043 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2044 #if !CAPNP_LITE | |
2045 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2046 #endif // !CAPNP_LITE | |
2047 | |
2048 inline ::uint64_t getId(); | |
2049 inline void setId( ::uint64_t value); | |
2050 | |
2051 inline bool hasBrand(); | |
2052 inline ::capnp::schema::Brand::Builder getBrand(); | |
2053 inline void setBrand( ::capnp::schema::Brand::Reader value); | |
2054 inline ::capnp::schema::Brand::Builder initBrand(); | |
2055 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); | |
2056 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); | |
2057 | |
2058 private: | |
2059 ::capnp::_::StructBuilder _builder; | |
2060 template <typename, ::capnp::Kind> | |
2061 friend struct ::capnp::ToDynamic_; | |
2062 friend class ::capnp::Orphanage; | |
2063 template <typename, ::capnp::Kind> | |
2064 friend struct ::capnp::_::PointerHelpers; | |
2065 }; | |
2066 | |
2067 #if !CAPNP_LITE | |
2068 class Superclass::Pipeline { | |
2069 public: | |
2070 typedef Superclass Pipelines; | |
2071 | |
2072 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2073 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2074 : _typeless(kj::mv(typeless)) {} | |
2075 | |
2076 inline ::capnp::schema::Brand::Pipeline getBrand(); | |
2077 private: | |
2078 ::capnp::AnyPointer::Pipeline _typeless; | |
2079 friend class ::capnp::PipelineHook; | |
2080 template <typename, ::capnp::Kind> | |
2081 friend struct ::capnp::ToDynamic_; | |
2082 }; | |
2083 #endif // !CAPNP_LITE | |
2084 | |
2085 class Method::Reader { | |
2086 public: | |
2087 typedef Method Reads; | |
2088 | |
2089 Reader() = default; | |
2090 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2091 | |
2092 inline ::capnp::MessageSize totalSize() const { | |
2093 return _reader.totalSize().asPublic(); | |
2094 } | |
2095 | |
2096 #if !CAPNP_LITE | |
2097 inline ::kj::StringTree toString() const { | |
2098 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2099 } | |
2100 #endif // !CAPNP_LITE | |
2101 | |
2102 inline bool hasName() const; | |
2103 inline ::capnp::Text::Reader getName() const; | |
2104 | |
2105 inline ::uint16_t getCodeOrder() const; | |
2106 | |
2107 inline ::uint64_t getParamStructType() const; | |
2108 | |
2109 inline ::uint64_t getResultStructType() const; | |
2110 | |
2111 inline bool hasAnnotations() const; | |
2112 inline ::capnp::List< ::capnp::schema::Annotation>::Reader getAnnotations() const; | |
2113 | |
2114 inline bool hasParamBrand() const; | |
2115 inline ::capnp::schema::Brand::Reader getParamBrand() const; | |
2116 | |
2117 inline bool hasResultBrand() const; | |
2118 inline ::capnp::schema::Brand::Reader getResultBrand() const; | |
2119 | |
2120 inline bool hasImplicitParameters() const; | |
2121 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader getImplicitParameters() const; | |
2122 | |
2123 private: | |
2124 ::capnp::_::StructReader _reader; | |
2125 template <typename, ::capnp::Kind> | |
2126 friend struct ::capnp::ToDynamic_; | |
2127 template <typename, ::capnp::Kind> | |
2128 friend struct ::capnp::_::PointerHelpers; | |
2129 template <typename, ::capnp::Kind> | |
2130 friend struct ::capnp::List; | |
2131 friend class ::capnp::MessageBuilder; | |
2132 friend class ::capnp::Orphanage; | |
2133 }; | |
2134 | |
2135 class Method::Builder { | |
2136 public: | |
2137 typedef Method Builds; | |
2138 | |
2139 Builder() = delete; // Deleted to discourage incorrect usage. | |
2140 // You can explicitly initialize to nullptr instead. | |
2141 inline Builder(decltype(nullptr)) {} | |
2142 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2143 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2144 inline Reader asReader() const { return *this; } | |
2145 | |
2146 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2147 #if !CAPNP_LITE | |
2148 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2149 #endif // !CAPNP_LITE | |
2150 | |
2151 inline bool hasName(); | |
2152 inline ::capnp::Text::Builder getName(); | |
2153 inline void setName( ::capnp::Text::Reader value); | |
2154 inline ::capnp::Text::Builder initName(unsigned int size); | |
2155 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); | |
2156 inline ::capnp::Orphan< ::capnp::Text> disownName(); | |
2157 | |
2158 inline ::uint16_t getCodeOrder(); | |
2159 inline void setCodeOrder( ::uint16_t value); | |
2160 | |
2161 inline ::uint64_t getParamStructType(); | |
2162 inline void setParamStructType( ::uint64_t value); | |
2163 | |
2164 inline ::uint64_t getResultStructType(); | |
2165 inline void setResultStructType( ::uint64_t value); | |
2166 | |
2167 inline bool hasAnnotations(); | |
2168 inline ::capnp::List< ::capnp::schema::Annotation>::Builder getAnnotations(); | |
2169 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value); | |
2170 inline ::capnp::List< ::capnp::schema::Annotation>::Builder initAnnotations(unsigned int size); | |
2171 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value); | |
2172 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> disownAnnotations(); | |
2173 | |
2174 inline bool hasParamBrand(); | |
2175 inline ::capnp::schema::Brand::Builder getParamBrand(); | |
2176 inline void setParamBrand( ::capnp::schema::Brand::Reader value); | |
2177 inline ::capnp::schema::Brand::Builder initParamBrand(); | |
2178 inline void adoptParamBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); | |
2179 inline ::capnp::Orphan< ::capnp::schema::Brand> disownParamBrand(); | |
2180 | |
2181 inline bool hasResultBrand(); | |
2182 inline ::capnp::schema::Brand::Builder getResultBrand(); | |
2183 inline void setResultBrand( ::capnp::schema::Brand::Reader value); | |
2184 inline ::capnp::schema::Brand::Builder initResultBrand(); | |
2185 inline void adoptResultBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); | |
2186 inline ::capnp::Orphan< ::capnp::schema::Brand> disownResultBrand(); | |
2187 | |
2188 inline bool hasImplicitParameters(); | |
2189 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder getImplicitParameters(); | |
2190 inline void setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value); | |
2191 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder initImplicitParameters(unsigned int size); | |
2192 inline void adoptImplicitParameters(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value); | |
2193 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> disownImplicitParameters(); | |
2194 | |
2195 private: | |
2196 ::capnp::_::StructBuilder _builder; | |
2197 template <typename, ::capnp::Kind> | |
2198 friend struct ::capnp::ToDynamic_; | |
2199 friend class ::capnp::Orphanage; | |
2200 template <typename, ::capnp::Kind> | |
2201 friend struct ::capnp::_::PointerHelpers; | |
2202 }; | |
2203 | |
2204 #if !CAPNP_LITE | |
2205 class Method::Pipeline { | |
2206 public: | |
2207 typedef Method Pipelines; | |
2208 | |
2209 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2210 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2211 : _typeless(kj::mv(typeless)) {} | |
2212 | |
2213 inline ::capnp::schema::Brand::Pipeline getParamBrand(); | |
2214 inline ::capnp::schema::Brand::Pipeline getResultBrand(); | |
2215 private: | |
2216 ::capnp::AnyPointer::Pipeline _typeless; | |
2217 friend class ::capnp::PipelineHook; | |
2218 template <typename, ::capnp::Kind> | |
2219 friend struct ::capnp::ToDynamic_; | |
2220 }; | |
2221 #endif // !CAPNP_LITE | |
2222 | |
2223 class Type::Reader { | |
2224 public: | |
2225 typedef Type Reads; | |
2226 | |
2227 Reader() = default; | |
2228 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2229 | |
2230 inline ::capnp::MessageSize totalSize() const { | |
2231 return _reader.totalSize().asPublic(); | |
2232 } | |
2233 | |
2234 #if !CAPNP_LITE | |
2235 inline ::kj::StringTree toString() const { | |
2236 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2237 } | |
2238 #endif // !CAPNP_LITE | |
2239 | |
2240 inline Which which() const; | |
2241 inline bool isVoid() const; | |
2242 inline ::capnp::Void getVoid() const; | |
2243 | |
2244 inline bool isBool() const; | |
2245 inline ::capnp::Void getBool() const; | |
2246 | |
2247 inline bool isInt8() const; | |
2248 inline ::capnp::Void getInt8() const; | |
2249 | |
2250 inline bool isInt16() const; | |
2251 inline ::capnp::Void getInt16() const; | |
2252 | |
2253 inline bool isInt32() const; | |
2254 inline ::capnp::Void getInt32() const; | |
2255 | |
2256 inline bool isInt64() const; | |
2257 inline ::capnp::Void getInt64() const; | |
2258 | |
2259 inline bool isUint8() const; | |
2260 inline ::capnp::Void getUint8() const; | |
2261 | |
2262 inline bool isUint16() const; | |
2263 inline ::capnp::Void getUint16() const; | |
2264 | |
2265 inline bool isUint32() const; | |
2266 inline ::capnp::Void getUint32() const; | |
2267 | |
2268 inline bool isUint64() const; | |
2269 inline ::capnp::Void getUint64() const; | |
2270 | |
2271 inline bool isFloat32() const; | |
2272 inline ::capnp::Void getFloat32() const; | |
2273 | |
2274 inline bool isFloat64() const; | |
2275 inline ::capnp::Void getFloat64() const; | |
2276 | |
2277 inline bool isText() const; | |
2278 inline ::capnp::Void getText() const; | |
2279 | |
2280 inline bool isData() const; | |
2281 inline ::capnp::Void getData() const; | |
2282 | |
2283 inline bool isList() const; | |
2284 inline typename List::Reader getList() const; | |
2285 | |
2286 inline bool isEnum() const; | |
2287 inline typename Enum::Reader getEnum() const; | |
2288 | |
2289 inline bool isStruct() const; | |
2290 inline typename Struct::Reader getStruct() const; | |
2291 | |
2292 inline bool isInterface() const; | |
2293 inline typename Interface::Reader getInterface() const; | |
2294 | |
2295 inline bool isAnyPointer() const; | |
2296 inline typename AnyPointer::Reader getAnyPointer() const; | |
2297 | |
2298 private: | |
2299 ::capnp::_::StructReader _reader; | |
2300 template <typename, ::capnp::Kind> | |
2301 friend struct ::capnp::ToDynamic_; | |
2302 template <typename, ::capnp::Kind> | |
2303 friend struct ::capnp::_::PointerHelpers; | |
2304 template <typename, ::capnp::Kind> | |
2305 friend struct ::capnp::List; | |
2306 friend class ::capnp::MessageBuilder; | |
2307 friend class ::capnp::Orphanage; | |
2308 }; | |
2309 | |
2310 class Type::Builder { | |
2311 public: | |
2312 typedef Type Builds; | |
2313 | |
2314 Builder() = delete; // Deleted to discourage incorrect usage. | |
2315 // You can explicitly initialize to nullptr instead. | |
2316 inline Builder(decltype(nullptr)) {} | |
2317 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2318 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2319 inline Reader asReader() const { return *this; } | |
2320 | |
2321 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2322 #if !CAPNP_LITE | |
2323 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2324 #endif // !CAPNP_LITE | |
2325 | |
2326 inline Which which(); | |
2327 inline bool isVoid(); | |
2328 inline ::capnp::Void getVoid(); | |
2329 inline void setVoid( ::capnp::Void value = ::capnp::VOID); | |
2330 | |
2331 inline bool isBool(); | |
2332 inline ::capnp::Void getBool(); | |
2333 inline void setBool( ::capnp::Void value = ::capnp::VOID); | |
2334 | |
2335 inline bool isInt8(); | |
2336 inline ::capnp::Void getInt8(); | |
2337 inline void setInt8( ::capnp::Void value = ::capnp::VOID); | |
2338 | |
2339 inline bool isInt16(); | |
2340 inline ::capnp::Void getInt16(); | |
2341 inline void setInt16( ::capnp::Void value = ::capnp::VOID); | |
2342 | |
2343 inline bool isInt32(); | |
2344 inline ::capnp::Void getInt32(); | |
2345 inline void setInt32( ::capnp::Void value = ::capnp::VOID); | |
2346 | |
2347 inline bool isInt64(); | |
2348 inline ::capnp::Void getInt64(); | |
2349 inline void setInt64( ::capnp::Void value = ::capnp::VOID); | |
2350 | |
2351 inline bool isUint8(); | |
2352 inline ::capnp::Void getUint8(); | |
2353 inline void setUint8( ::capnp::Void value = ::capnp::VOID); | |
2354 | |
2355 inline bool isUint16(); | |
2356 inline ::capnp::Void getUint16(); | |
2357 inline void setUint16( ::capnp::Void value = ::capnp::VOID); | |
2358 | |
2359 inline bool isUint32(); | |
2360 inline ::capnp::Void getUint32(); | |
2361 inline void setUint32( ::capnp::Void value = ::capnp::VOID); | |
2362 | |
2363 inline bool isUint64(); | |
2364 inline ::capnp::Void getUint64(); | |
2365 inline void setUint64( ::capnp::Void value = ::capnp::VOID); | |
2366 | |
2367 inline bool isFloat32(); | |
2368 inline ::capnp::Void getFloat32(); | |
2369 inline void setFloat32( ::capnp::Void value = ::capnp::VOID); | |
2370 | |
2371 inline bool isFloat64(); | |
2372 inline ::capnp::Void getFloat64(); | |
2373 inline void setFloat64( ::capnp::Void value = ::capnp::VOID); | |
2374 | |
2375 inline bool isText(); | |
2376 inline ::capnp::Void getText(); | |
2377 inline void setText( ::capnp::Void value = ::capnp::VOID); | |
2378 | |
2379 inline bool isData(); | |
2380 inline ::capnp::Void getData(); | |
2381 inline void setData( ::capnp::Void value = ::capnp::VOID); | |
2382 | |
2383 inline bool isList(); | |
2384 inline typename List::Builder getList(); | |
2385 inline typename List::Builder initList(); | |
2386 | |
2387 inline bool isEnum(); | |
2388 inline typename Enum::Builder getEnum(); | |
2389 inline typename Enum::Builder initEnum(); | |
2390 | |
2391 inline bool isStruct(); | |
2392 inline typename Struct::Builder getStruct(); | |
2393 inline typename Struct::Builder initStruct(); | |
2394 | |
2395 inline bool isInterface(); | |
2396 inline typename Interface::Builder getInterface(); | |
2397 inline typename Interface::Builder initInterface(); | |
2398 | |
2399 inline bool isAnyPointer(); | |
2400 inline typename AnyPointer::Builder getAnyPointer(); | |
2401 inline typename AnyPointer::Builder initAnyPointer(); | |
2402 | |
2403 private: | |
2404 ::capnp::_::StructBuilder _builder; | |
2405 template <typename, ::capnp::Kind> | |
2406 friend struct ::capnp::ToDynamic_; | |
2407 friend class ::capnp::Orphanage; | |
2408 template <typename, ::capnp::Kind> | |
2409 friend struct ::capnp::_::PointerHelpers; | |
2410 }; | |
2411 | |
2412 #if !CAPNP_LITE | |
2413 class Type::Pipeline { | |
2414 public: | |
2415 typedef Type Pipelines; | |
2416 | |
2417 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2418 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2419 : _typeless(kj::mv(typeless)) {} | |
2420 | |
2421 private: | |
2422 ::capnp::AnyPointer::Pipeline _typeless; | |
2423 friend class ::capnp::PipelineHook; | |
2424 template <typename, ::capnp::Kind> | |
2425 friend struct ::capnp::ToDynamic_; | |
2426 }; | |
2427 #endif // !CAPNP_LITE | |
2428 | |
2429 class Type::List::Reader { | |
2430 public: | |
2431 typedef List Reads; | |
2432 | |
2433 Reader() = default; | |
2434 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2435 | |
2436 inline ::capnp::MessageSize totalSize() const { | |
2437 return _reader.totalSize().asPublic(); | |
2438 } | |
2439 | |
2440 #if !CAPNP_LITE | |
2441 inline ::kj::StringTree toString() const { | |
2442 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2443 } | |
2444 #endif // !CAPNP_LITE | |
2445 | |
2446 inline bool hasElementType() const; | |
2447 inline ::capnp::schema::Type::Reader getElementType() const; | |
2448 | |
2449 private: | |
2450 ::capnp::_::StructReader _reader; | |
2451 template <typename, ::capnp::Kind> | |
2452 friend struct ::capnp::ToDynamic_; | |
2453 template <typename, ::capnp::Kind> | |
2454 friend struct ::capnp::_::PointerHelpers; | |
2455 template <typename, ::capnp::Kind> | |
2456 friend struct ::capnp::List; | |
2457 friend class ::capnp::MessageBuilder; | |
2458 friend class ::capnp::Orphanage; | |
2459 }; | |
2460 | |
2461 class Type::List::Builder { | |
2462 public: | |
2463 typedef List Builds; | |
2464 | |
2465 Builder() = delete; // Deleted to discourage incorrect usage. | |
2466 // You can explicitly initialize to nullptr instead. | |
2467 inline Builder(decltype(nullptr)) {} | |
2468 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2469 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2470 inline Reader asReader() const { return *this; } | |
2471 | |
2472 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2473 #if !CAPNP_LITE | |
2474 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2475 #endif // !CAPNP_LITE | |
2476 | |
2477 inline bool hasElementType(); | |
2478 inline ::capnp::schema::Type::Builder getElementType(); | |
2479 inline void setElementType( ::capnp::schema::Type::Reader value); | |
2480 inline ::capnp::schema::Type::Builder initElementType(); | |
2481 inline void adoptElementType(::capnp::Orphan< ::capnp::schema::Type>&& value); | |
2482 inline ::capnp::Orphan< ::capnp::schema::Type> disownElementType(); | |
2483 | |
2484 private: | |
2485 ::capnp::_::StructBuilder _builder; | |
2486 template <typename, ::capnp::Kind> | |
2487 friend struct ::capnp::ToDynamic_; | |
2488 friend class ::capnp::Orphanage; | |
2489 template <typename, ::capnp::Kind> | |
2490 friend struct ::capnp::_::PointerHelpers; | |
2491 }; | |
2492 | |
2493 #if !CAPNP_LITE | |
2494 class Type::List::Pipeline { | |
2495 public: | |
2496 typedef List Pipelines; | |
2497 | |
2498 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2499 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2500 : _typeless(kj::mv(typeless)) {} | |
2501 | |
2502 inline ::capnp::schema::Type::Pipeline getElementType(); | |
2503 private: | |
2504 ::capnp::AnyPointer::Pipeline _typeless; | |
2505 friend class ::capnp::PipelineHook; | |
2506 template <typename, ::capnp::Kind> | |
2507 friend struct ::capnp::ToDynamic_; | |
2508 }; | |
2509 #endif // !CAPNP_LITE | |
2510 | |
2511 class Type::Enum::Reader { | |
2512 public: | |
2513 typedef Enum Reads; | |
2514 | |
2515 Reader() = default; | |
2516 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2517 | |
2518 inline ::capnp::MessageSize totalSize() const { | |
2519 return _reader.totalSize().asPublic(); | |
2520 } | |
2521 | |
2522 #if !CAPNP_LITE | |
2523 inline ::kj::StringTree toString() const { | |
2524 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2525 } | |
2526 #endif // !CAPNP_LITE | |
2527 | |
2528 inline ::uint64_t getTypeId() const; | |
2529 | |
2530 inline bool hasBrand() const; | |
2531 inline ::capnp::schema::Brand::Reader getBrand() const; | |
2532 | |
2533 private: | |
2534 ::capnp::_::StructReader _reader; | |
2535 template <typename, ::capnp::Kind> | |
2536 friend struct ::capnp::ToDynamic_; | |
2537 template <typename, ::capnp::Kind> | |
2538 friend struct ::capnp::_::PointerHelpers; | |
2539 template <typename, ::capnp::Kind> | |
2540 friend struct ::capnp::List; | |
2541 friend class ::capnp::MessageBuilder; | |
2542 friend class ::capnp::Orphanage; | |
2543 }; | |
2544 | |
2545 class Type::Enum::Builder { | |
2546 public: | |
2547 typedef Enum Builds; | |
2548 | |
2549 Builder() = delete; // Deleted to discourage incorrect usage. | |
2550 // You can explicitly initialize to nullptr instead. | |
2551 inline Builder(decltype(nullptr)) {} | |
2552 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2553 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2554 inline Reader asReader() const { return *this; } | |
2555 | |
2556 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2557 #if !CAPNP_LITE | |
2558 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2559 #endif // !CAPNP_LITE | |
2560 | |
2561 inline ::uint64_t getTypeId(); | |
2562 inline void setTypeId( ::uint64_t value); | |
2563 | |
2564 inline bool hasBrand(); | |
2565 inline ::capnp::schema::Brand::Builder getBrand(); | |
2566 inline void setBrand( ::capnp::schema::Brand::Reader value); | |
2567 inline ::capnp::schema::Brand::Builder initBrand(); | |
2568 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); | |
2569 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); | |
2570 | |
2571 private: | |
2572 ::capnp::_::StructBuilder _builder; | |
2573 template <typename, ::capnp::Kind> | |
2574 friend struct ::capnp::ToDynamic_; | |
2575 friend class ::capnp::Orphanage; | |
2576 template <typename, ::capnp::Kind> | |
2577 friend struct ::capnp::_::PointerHelpers; | |
2578 }; | |
2579 | |
2580 #if !CAPNP_LITE | |
2581 class Type::Enum::Pipeline { | |
2582 public: | |
2583 typedef Enum Pipelines; | |
2584 | |
2585 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2586 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2587 : _typeless(kj::mv(typeless)) {} | |
2588 | |
2589 inline ::capnp::schema::Brand::Pipeline getBrand(); | |
2590 private: | |
2591 ::capnp::AnyPointer::Pipeline _typeless; | |
2592 friend class ::capnp::PipelineHook; | |
2593 template <typename, ::capnp::Kind> | |
2594 friend struct ::capnp::ToDynamic_; | |
2595 }; | |
2596 #endif // !CAPNP_LITE | |
2597 | |
2598 class Type::Struct::Reader { | |
2599 public: | |
2600 typedef Struct Reads; | |
2601 | |
2602 Reader() = default; | |
2603 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2604 | |
2605 inline ::capnp::MessageSize totalSize() const { | |
2606 return _reader.totalSize().asPublic(); | |
2607 } | |
2608 | |
2609 #if !CAPNP_LITE | |
2610 inline ::kj::StringTree toString() const { | |
2611 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2612 } | |
2613 #endif // !CAPNP_LITE | |
2614 | |
2615 inline ::uint64_t getTypeId() const; | |
2616 | |
2617 inline bool hasBrand() const; | |
2618 inline ::capnp::schema::Brand::Reader getBrand() const; | |
2619 | |
2620 private: | |
2621 ::capnp::_::StructReader _reader; | |
2622 template <typename, ::capnp::Kind> | |
2623 friend struct ::capnp::ToDynamic_; | |
2624 template <typename, ::capnp::Kind> | |
2625 friend struct ::capnp::_::PointerHelpers; | |
2626 template <typename, ::capnp::Kind> | |
2627 friend struct ::capnp::List; | |
2628 friend class ::capnp::MessageBuilder; | |
2629 friend class ::capnp::Orphanage; | |
2630 }; | |
2631 | |
2632 class Type::Struct::Builder { | |
2633 public: | |
2634 typedef Struct Builds; | |
2635 | |
2636 Builder() = delete; // Deleted to discourage incorrect usage. | |
2637 // You can explicitly initialize to nullptr instead. | |
2638 inline Builder(decltype(nullptr)) {} | |
2639 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2640 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2641 inline Reader asReader() const { return *this; } | |
2642 | |
2643 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2644 #if !CAPNP_LITE | |
2645 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2646 #endif // !CAPNP_LITE | |
2647 | |
2648 inline ::uint64_t getTypeId(); | |
2649 inline void setTypeId( ::uint64_t value); | |
2650 | |
2651 inline bool hasBrand(); | |
2652 inline ::capnp::schema::Brand::Builder getBrand(); | |
2653 inline void setBrand( ::capnp::schema::Brand::Reader value); | |
2654 inline ::capnp::schema::Brand::Builder initBrand(); | |
2655 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); | |
2656 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); | |
2657 | |
2658 private: | |
2659 ::capnp::_::StructBuilder _builder; | |
2660 template <typename, ::capnp::Kind> | |
2661 friend struct ::capnp::ToDynamic_; | |
2662 friend class ::capnp::Orphanage; | |
2663 template <typename, ::capnp::Kind> | |
2664 friend struct ::capnp::_::PointerHelpers; | |
2665 }; | |
2666 | |
2667 #if !CAPNP_LITE | |
2668 class Type::Struct::Pipeline { | |
2669 public: | |
2670 typedef Struct Pipelines; | |
2671 | |
2672 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2673 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2674 : _typeless(kj::mv(typeless)) {} | |
2675 | |
2676 inline ::capnp::schema::Brand::Pipeline getBrand(); | |
2677 private: | |
2678 ::capnp::AnyPointer::Pipeline _typeless; | |
2679 friend class ::capnp::PipelineHook; | |
2680 template <typename, ::capnp::Kind> | |
2681 friend struct ::capnp::ToDynamic_; | |
2682 }; | |
2683 #endif // !CAPNP_LITE | |
2684 | |
2685 class Type::Interface::Reader { | |
2686 public: | |
2687 typedef Interface Reads; | |
2688 | |
2689 Reader() = default; | |
2690 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2691 | |
2692 inline ::capnp::MessageSize totalSize() const { | |
2693 return _reader.totalSize().asPublic(); | |
2694 } | |
2695 | |
2696 #if !CAPNP_LITE | |
2697 inline ::kj::StringTree toString() const { | |
2698 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2699 } | |
2700 #endif // !CAPNP_LITE | |
2701 | |
2702 inline ::uint64_t getTypeId() const; | |
2703 | |
2704 inline bool hasBrand() const; | |
2705 inline ::capnp::schema::Brand::Reader getBrand() const; | |
2706 | |
2707 private: | |
2708 ::capnp::_::StructReader _reader; | |
2709 template <typename, ::capnp::Kind> | |
2710 friend struct ::capnp::ToDynamic_; | |
2711 template <typename, ::capnp::Kind> | |
2712 friend struct ::capnp::_::PointerHelpers; | |
2713 template <typename, ::capnp::Kind> | |
2714 friend struct ::capnp::List; | |
2715 friend class ::capnp::MessageBuilder; | |
2716 friend class ::capnp::Orphanage; | |
2717 }; | |
2718 | |
2719 class Type::Interface::Builder { | |
2720 public: | |
2721 typedef Interface Builds; | |
2722 | |
2723 Builder() = delete; // Deleted to discourage incorrect usage. | |
2724 // You can explicitly initialize to nullptr instead. | |
2725 inline Builder(decltype(nullptr)) {} | |
2726 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2727 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2728 inline Reader asReader() const { return *this; } | |
2729 | |
2730 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2731 #if !CAPNP_LITE | |
2732 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2733 #endif // !CAPNP_LITE | |
2734 | |
2735 inline ::uint64_t getTypeId(); | |
2736 inline void setTypeId( ::uint64_t value); | |
2737 | |
2738 inline bool hasBrand(); | |
2739 inline ::capnp::schema::Brand::Builder getBrand(); | |
2740 inline void setBrand( ::capnp::schema::Brand::Reader value); | |
2741 inline ::capnp::schema::Brand::Builder initBrand(); | |
2742 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); | |
2743 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); | |
2744 | |
2745 private: | |
2746 ::capnp::_::StructBuilder _builder; | |
2747 template <typename, ::capnp::Kind> | |
2748 friend struct ::capnp::ToDynamic_; | |
2749 friend class ::capnp::Orphanage; | |
2750 template <typename, ::capnp::Kind> | |
2751 friend struct ::capnp::_::PointerHelpers; | |
2752 }; | |
2753 | |
2754 #if !CAPNP_LITE | |
2755 class Type::Interface::Pipeline { | |
2756 public: | |
2757 typedef Interface Pipelines; | |
2758 | |
2759 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2760 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2761 : _typeless(kj::mv(typeless)) {} | |
2762 | |
2763 inline ::capnp::schema::Brand::Pipeline getBrand(); | |
2764 private: | |
2765 ::capnp::AnyPointer::Pipeline _typeless; | |
2766 friend class ::capnp::PipelineHook; | |
2767 template <typename, ::capnp::Kind> | |
2768 friend struct ::capnp::ToDynamic_; | |
2769 }; | |
2770 #endif // !CAPNP_LITE | |
2771 | |
2772 class Type::AnyPointer::Reader { | |
2773 public: | |
2774 typedef AnyPointer Reads; | |
2775 | |
2776 Reader() = default; | |
2777 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2778 | |
2779 inline ::capnp::MessageSize totalSize() const { | |
2780 return _reader.totalSize().asPublic(); | |
2781 } | |
2782 | |
2783 #if !CAPNP_LITE | |
2784 inline ::kj::StringTree toString() const { | |
2785 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2786 } | |
2787 #endif // !CAPNP_LITE | |
2788 | |
2789 inline Which which() const; | |
2790 inline bool isUnconstrained() const; | |
2791 inline typename Unconstrained::Reader getUnconstrained() const; | |
2792 | |
2793 inline bool isParameter() const; | |
2794 inline typename Parameter::Reader getParameter() const; | |
2795 | |
2796 inline bool isImplicitMethodParameter() const; | |
2797 inline typename ImplicitMethodParameter::Reader getImplicitMethodParameter() const; | |
2798 | |
2799 private: | |
2800 ::capnp::_::StructReader _reader; | |
2801 template <typename, ::capnp::Kind> | |
2802 friend struct ::capnp::ToDynamic_; | |
2803 template <typename, ::capnp::Kind> | |
2804 friend struct ::capnp::_::PointerHelpers; | |
2805 template <typename, ::capnp::Kind> | |
2806 friend struct ::capnp::List; | |
2807 friend class ::capnp::MessageBuilder; | |
2808 friend class ::capnp::Orphanage; | |
2809 }; | |
2810 | |
2811 class Type::AnyPointer::Builder { | |
2812 public: | |
2813 typedef AnyPointer Builds; | |
2814 | |
2815 Builder() = delete; // Deleted to discourage incorrect usage. | |
2816 // You can explicitly initialize to nullptr instead. | |
2817 inline Builder(decltype(nullptr)) {} | |
2818 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2819 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2820 inline Reader asReader() const { return *this; } | |
2821 | |
2822 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2823 #if !CAPNP_LITE | |
2824 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2825 #endif // !CAPNP_LITE | |
2826 | |
2827 inline Which which(); | |
2828 inline bool isUnconstrained(); | |
2829 inline typename Unconstrained::Builder getUnconstrained(); | |
2830 inline typename Unconstrained::Builder initUnconstrained(); | |
2831 | |
2832 inline bool isParameter(); | |
2833 inline typename Parameter::Builder getParameter(); | |
2834 inline typename Parameter::Builder initParameter(); | |
2835 | |
2836 inline bool isImplicitMethodParameter(); | |
2837 inline typename ImplicitMethodParameter::Builder getImplicitMethodParameter(); | |
2838 inline typename ImplicitMethodParameter::Builder initImplicitMethodParameter(); | |
2839 | |
2840 private: | |
2841 ::capnp::_::StructBuilder _builder; | |
2842 template <typename, ::capnp::Kind> | |
2843 friend struct ::capnp::ToDynamic_; | |
2844 friend class ::capnp::Orphanage; | |
2845 template <typename, ::capnp::Kind> | |
2846 friend struct ::capnp::_::PointerHelpers; | |
2847 }; | |
2848 | |
2849 #if !CAPNP_LITE | |
2850 class Type::AnyPointer::Pipeline { | |
2851 public: | |
2852 typedef AnyPointer Pipelines; | |
2853 | |
2854 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2855 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2856 : _typeless(kj::mv(typeless)) {} | |
2857 | |
2858 private: | |
2859 ::capnp::AnyPointer::Pipeline _typeless; | |
2860 friend class ::capnp::PipelineHook; | |
2861 template <typename, ::capnp::Kind> | |
2862 friend struct ::capnp::ToDynamic_; | |
2863 }; | |
2864 #endif // !CAPNP_LITE | |
2865 | |
2866 class Type::AnyPointer::Unconstrained::Reader { | |
2867 public: | |
2868 typedef Unconstrained Reads; | |
2869 | |
2870 Reader() = default; | |
2871 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2872 | |
2873 inline ::capnp::MessageSize totalSize() const { | |
2874 return _reader.totalSize().asPublic(); | |
2875 } | |
2876 | |
2877 #if !CAPNP_LITE | |
2878 inline ::kj::StringTree toString() const { | |
2879 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2880 } | |
2881 #endif // !CAPNP_LITE | |
2882 | |
2883 inline Which which() const; | |
2884 inline bool isAnyKind() const; | |
2885 inline ::capnp::Void getAnyKind() const; | |
2886 | |
2887 inline bool isStruct() const; | |
2888 inline ::capnp::Void getStruct() const; | |
2889 | |
2890 inline bool isList() const; | |
2891 inline ::capnp::Void getList() const; | |
2892 | |
2893 inline bool isCapability() const; | |
2894 inline ::capnp::Void getCapability() const; | |
2895 | |
2896 private: | |
2897 ::capnp::_::StructReader _reader; | |
2898 template <typename, ::capnp::Kind> | |
2899 friend struct ::capnp::ToDynamic_; | |
2900 template <typename, ::capnp::Kind> | |
2901 friend struct ::capnp::_::PointerHelpers; | |
2902 template <typename, ::capnp::Kind> | |
2903 friend struct ::capnp::List; | |
2904 friend class ::capnp::MessageBuilder; | |
2905 friend class ::capnp::Orphanage; | |
2906 }; | |
2907 | |
2908 class Type::AnyPointer::Unconstrained::Builder { | |
2909 public: | |
2910 typedef Unconstrained Builds; | |
2911 | |
2912 Builder() = delete; // Deleted to discourage incorrect usage. | |
2913 // You can explicitly initialize to nullptr instead. | |
2914 inline Builder(decltype(nullptr)) {} | |
2915 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
2916 inline operator Reader() const { return Reader(_builder.asReader()); } | |
2917 inline Reader asReader() const { return *this; } | |
2918 | |
2919 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
2920 #if !CAPNP_LITE | |
2921 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
2922 #endif // !CAPNP_LITE | |
2923 | |
2924 inline Which which(); | |
2925 inline bool isAnyKind(); | |
2926 inline ::capnp::Void getAnyKind(); | |
2927 inline void setAnyKind( ::capnp::Void value = ::capnp::VOID); | |
2928 | |
2929 inline bool isStruct(); | |
2930 inline ::capnp::Void getStruct(); | |
2931 inline void setStruct( ::capnp::Void value = ::capnp::VOID); | |
2932 | |
2933 inline bool isList(); | |
2934 inline ::capnp::Void getList(); | |
2935 inline void setList( ::capnp::Void value = ::capnp::VOID); | |
2936 | |
2937 inline bool isCapability(); | |
2938 inline ::capnp::Void getCapability(); | |
2939 inline void setCapability( ::capnp::Void value = ::capnp::VOID); | |
2940 | |
2941 private: | |
2942 ::capnp::_::StructBuilder _builder; | |
2943 template <typename, ::capnp::Kind> | |
2944 friend struct ::capnp::ToDynamic_; | |
2945 friend class ::capnp::Orphanage; | |
2946 template <typename, ::capnp::Kind> | |
2947 friend struct ::capnp::_::PointerHelpers; | |
2948 }; | |
2949 | |
2950 #if !CAPNP_LITE | |
2951 class Type::AnyPointer::Unconstrained::Pipeline { | |
2952 public: | |
2953 typedef Unconstrained Pipelines; | |
2954 | |
2955 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
2956 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
2957 : _typeless(kj::mv(typeless)) {} | |
2958 | |
2959 private: | |
2960 ::capnp::AnyPointer::Pipeline _typeless; | |
2961 friend class ::capnp::PipelineHook; | |
2962 template <typename, ::capnp::Kind> | |
2963 friend struct ::capnp::ToDynamic_; | |
2964 }; | |
2965 #endif // !CAPNP_LITE | |
2966 | |
2967 class Type::AnyPointer::Parameter::Reader { | |
2968 public: | |
2969 typedef Parameter Reads; | |
2970 | |
2971 Reader() = default; | |
2972 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
2973 | |
2974 inline ::capnp::MessageSize totalSize() const { | |
2975 return _reader.totalSize().asPublic(); | |
2976 } | |
2977 | |
2978 #if !CAPNP_LITE | |
2979 inline ::kj::StringTree toString() const { | |
2980 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
2981 } | |
2982 #endif // !CAPNP_LITE | |
2983 | |
2984 inline ::uint64_t getScopeId() const; | |
2985 | |
2986 inline ::uint16_t getParameterIndex() const; | |
2987 | |
2988 private: | |
2989 ::capnp::_::StructReader _reader; | |
2990 template <typename, ::capnp::Kind> | |
2991 friend struct ::capnp::ToDynamic_; | |
2992 template <typename, ::capnp::Kind> | |
2993 friend struct ::capnp::_::PointerHelpers; | |
2994 template <typename, ::capnp::Kind> | |
2995 friend struct ::capnp::List; | |
2996 friend class ::capnp::MessageBuilder; | |
2997 friend class ::capnp::Orphanage; | |
2998 }; | |
2999 | |
3000 class Type::AnyPointer::Parameter::Builder { | |
3001 public: | |
3002 typedef Parameter Builds; | |
3003 | |
3004 Builder() = delete; // Deleted to discourage incorrect usage. | |
3005 // You can explicitly initialize to nullptr instead. | |
3006 inline Builder(decltype(nullptr)) {} | |
3007 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3008 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3009 inline Reader asReader() const { return *this; } | |
3010 | |
3011 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3012 #if !CAPNP_LITE | |
3013 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3014 #endif // !CAPNP_LITE | |
3015 | |
3016 inline ::uint64_t getScopeId(); | |
3017 inline void setScopeId( ::uint64_t value); | |
3018 | |
3019 inline ::uint16_t getParameterIndex(); | |
3020 inline void setParameterIndex( ::uint16_t value); | |
3021 | |
3022 private: | |
3023 ::capnp::_::StructBuilder _builder; | |
3024 template <typename, ::capnp::Kind> | |
3025 friend struct ::capnp::ToDynamic_; | |
3026 friend class ::capnp::Orphanage; | |
3027 template <typename, ::capnp::Kind> | |
3028 friend struct ::capnp::_::PointerHelpers; | |
3029 }; | |
3030 | |
3031 #if !CAPNP_LITE | |
3032 class Type::AnyPointer::Parameter::Pipeline { | |
3033 public: | |
3034 typedef Parameter Pipelines; | |
3035 | |
3036 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3037 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3038 : _typeless(kj::mv(typeless)) {} | |
3039 | |
3040 private: | |
3041 ::capnp::AnyPointer::Pipeline _typeless; | |
3042 friend class ::capnp::PipelineHook; | |
3043 template <typename, ::capnp::Kind> | |
3044 friend struct ::capnp::ToDynamic_; | |
3045 }; | |
3046 #endif // !CAPNP_LITE | |
3047 | |
3048 class Type::AnyPointer::ImplicitMethodParameter::Reader { | |
3049 public: | |
3050 typedef ImplicitMethodParameter Reads; | |
3051 | |
3052 Reader() = default; | |
3053 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3054 | |
3055 inline ::capnp::MessageSize totalSize() const { | |
3056 return _reader.totalSize().asPublic(); | |
3057 } | |
3058 | |
3059 #if !CAPNP_LITE | |
3060 inline ::kj::StringTree toString() const { | |
3061 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3062 } | |
3063 #endif // !CAPNP_LITE | |
3064 | |
3065 inline ::uint16_t getParameterIndex() const; | |
3066 | |
3067 private: | |
3068 ::capnp::_::StructReader _reader; | |
3069 template <typename, ::capnp::Kind> | |
3070 friend struct ::capnp::ToDynamic_; | |
3071 template <typename, ::capnp::Kind> | |
3072 friend struct ::capnp::_::PointerHelpers; | |
3073 template <typename, ::capnp::Kind> | |
3074 friend struct ::capnp::List; | |
3075 friend class ::capnp::MessageBuilder; | |
3076 friend class ::capnp::Orphanage; | |
3077 }; | |
3078 | |
3079 class Type::AnyPointer::ImplicitMethodParameter::Builder { | |
3080 public: | |
3081 typedef ImplicitMethodParameter Builds; | |
3082 | |
3083 Builder() = delete; // Deleted to discourage incorrect usage. | |
3084 // You can explicitly initialize to nullptr instead. | |
3085 inline Builder(decltype(nullptr)) {} | |
3086 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3087 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3088 inline Reader asReader() const { return *this; } | |
3089 | |
3090 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3091 #if !CAPNP_LITE | |
3092 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3093 #endif // !CAPNP_LITE | |
3094 | |
3095 inline ::uint16_t getParameterIndex(); | |
3096 inline void setParameterIndex( ::uint16_t value); | |
3097 | |
3098 private: | |
3099 ::capnp::_::StructBuilder _builder; | |
3100 template <typename, ::capnp::Kind> | |
3101 friend struct ::capnp::ToDynamic_; | |
3102 friend class ::capnp::Orphanage; | |
3103 template <typename, ::capnp::Kind> | |
3104 friend struct ::capnp::_::PointerHelpers; | |
3105 }; | |
3106 | |
3107 #if !CAPNP_LITE | |
3108 class Type::AnyPointer::ImplicitMethodParameter::Pipeline { | |
3109 public: | |
3110 typedef ImplicitMethodParameter Pipelines; | |
3111 | |
3112 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3113 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3114 : _typeless(kj::mv(typeless)) {} | |
3115 | |
3116 private: | |
3117 ::capnp::AnyPointer::Pipeline _typeless; | |
3118 friend class ::capnp::PipelineHook; | |
3119 template <typename, ::capnp::Kind> | |
3120 friend struct ::capnp::ToDynamic_; | |
3121 }; | |
3122 #endif // !CAPNP_LITE | |
3123 | |
3124 class Brand::Reader { | |
3125 public: | |
3126 typedef Brand Reads; | |
3127 | |
3128 Reader() = default; | |
3129 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3130 | |
3131 inline ::capnp::MessageSize totalSize() const { | |
3132 return _reader.totalSize().asPublic(); | |
3133 } | |
3134 | |
3135 #if !CAPNP_LITE | |
3136 inline ::kj::StringTree toString() const { | |
3137 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3138 } | |
3139 #endif // !CAPNP_LITE | |
3140 | |
3141 inline bool hasScopes() const; | |
3142 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Reader getScopes() const; | |
3143 | |
3144 private: | |
3145 ::capnp::_::StructReader _reader; | |
3146 template <typename, ::capnp::Kind> | |
3147 friend struct ::capnp::ToDynamic_; | |
3148 template <typename, ::capnp::Kind> | |
3149 friend struct ::capnp::_::PointerHelpers; | |
3150 template <typename, ::capnp::Kind> | |
3151 friend struct ::capnp::List; | |
3152 friend class ::capnp::MessageBuilder; | |
3153 friend class ::capnp::Orphanage; | |
3154 }; | |
3155 | |
3156 class Brand::Builder { | |
3157 public: | |
3158 typedef Brand Builds; | |
3159 | |
3160 Builder() = delete; // Deleted to discourage incorrect usage. | |
3161 // You can explicitly initialize to nullptr instead. | |
3162 inline Builder(decltype(nullptr)) {} | |
3163 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3164 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3165 inline Reader asReader() const { return *this; } | |
3166 | |
3167 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3168 #if !CAPNP_LITE | |
3169 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3170 #endif // !CAPNP_LITE | |
3171 | |
3172 inline bool hasScopes(); | |
3173 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder getScopes(); | |
3174 inline void setScopes( ::capnp::List< ::capnp::schema::Brand::Scope>::Reader value); | |
3175 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder initScopes(unsigned int size); | |
3176 inline void adoptScopes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>>&& value); | |
3177 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>> disownScopes(); | |
3178 | |
3179 private: | |
3180 ::capnp::_::StructBuilder _builder; | |
3181 template <typename, ::capnp::Kind> | |
3182 friend struct ::capnp::ToDynamic_; | |
3183 friend class ::capnp::Orphanage; | |
3184 template <typename, ::capnp::Kind> | |
3185 friend struct ::capnp::_::PointerHelpers; | |
3186 }; | |
3187 | |
3188 #if !CAPNP_LITE | |
3189 class Brand::Pipeline { | |
3190 public: | |
3191 typedef Brand Pipelines; | |
3192 | |
3193 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3194 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3195 : _typeless(kj::mv(typeless)) {} | |
3196 | |
3197 private: | |
3198 ::capnp::AnyPointer::Pipeline _typeless; | |
3199 friend class ::capnp::PipelineHook; | |
3200 template <typename, ::capnp::Kind> | |
3201 friend struct ::capnp::ToDynamic_; | |
3202 }; | |
3203 #endif // !CAPNP_LITE | |
3204 | |
3205 class Brand::Scope::Reader { | |
3206 public: | |
3207 typedef Scope Reads; | |
3208 | |
3209 Reader() = default; | |
3210 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3211 | |
3212 inline ::capnp::MessageSize totalSize() const { | |
3213 return _reader.totalSize().asPublic(); | |
3214 } | |
3215 | |
3216 #if !CAPNP_LITE | |
3217 inline ::kj::StringTree toString() const { | |
3218 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3219 } | |
3220 #endif // !CAPNP_LITE | |
3221 | |
3222 inline Which which() const; | |
3223 inline ::uint64_t getScopeId() const; | |
3224 | |
3225 inline bool isBind() const; | |
3226 inline bool hasBind() const; | |
3227 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Reader getBind() const; | |
3228 | |
3229 inline bool isInherit() const; | |
3230 inline ::capnp::Void getInherit() const; | |
3231 | |
3232 private: | |
3233 ::capnp::_::StructReader _reader; | |
3234 template <typename, ::capnp::Kind> | |
3235 friend struct ::capnp::ToDynamic_; | |
3236 template <typename, ::capnp::Kind> | |
3237 friend struct ::capnp::_::PointerHelpers; | |
3238 template <typename, ::capnp::Kind> | |
3239 friend struct ::capnp::List; | |
3240 friend class ::capnp::MessageBuilder; | |
3241 friend class ::capnp::Orphanage; | |
3242 }; | |
3243 | |
3244 class Brand::Scope::Builder { | |
3245 public: | |
3246 typedef Scope Builds; | |
3247 | |
3248 Builder() = delete; // Deleted to discourage incorrect usage. | |
3249 // You can explicitly initialize to nullptr instead. | |
3250 inline Builder(decltype(nullptr)) {} | |
3251 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3252 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3253 inline Reader asReader() const { return *this; } | |
3254 | |
3255 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3256 #if !CAPNP_LITE | |
3257 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3258 #endif // !CAPNP_LITE | |
3259 | |
3260 inline Which which(); | |
3261 inline ::uint64_t getScopeId(); | |
3262 inline void setScopeId( ::uint64_t value); | |
3263 | |
3264 inline bool isBind(); | |
3265 inline bool hasBind(); | |
3266 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder getBind(); | |
3267 inline void setBind( ::capnp::List< ::capnp::schema::Brand::Binding>::Reader value); | |
3268 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder initBind(unsigned int size); | |
3269 inline void adoptBind(::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>>&& value); | |
3270 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>> disownBind(); | |
3271 | |
3272 inline bool isInherit(); | |
3273 inline ::capnp::Void getInherit(); | |
3274 inline void setInherit( ::capnp::Void value = ::capnp::VOID); | |
3275 | |
3276 private: | |
3277 ::capnp::_::StructBuilder _builder; | |
3278 template <typename, ::capnp::Kind> | |
3279 friend struct ::capnp::ToDynamic_; | |
3280 friend class ::capnp::Orphanage; | |
3281 template <typename, ::capnp::Kind> | |
3282 friend struct ::capnp::_::PointerHelpers; | |
3283 }; | |
3284 | |
3285 #if !CAPNP_LITE | |
3286 class Brand::Scope::Pipeline { | |
3287 public: | |
3288 typedef Scope Pipelines; | |
3289 | |
3290 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3291 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3292 : _typeless(kj::mv(typeless)) {} | |
3293 | |
3294 private: | |
3295 ::capnp::AnyPointer::Pipeline _typeless; | |
3296 friend class ::capnp::PipelineHook; | |
3297 template <typename, ::capnp::Kind> | |
3298 friend struct ::capnp::ToDynamic_; | |
3299 }; | |
3300 #endif // !CAPNP_LITE | |
3301 | |
3302 class Brand::Binding::Reader { | |
3303 public: | |
3304 typedef Binding Reads; | |
3305 | |
3306 Reader() = default; | |
3307 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3308 | |
3309 inline ::capnp::MessageSize totalSize() const { | |
3310 return _reader.totalSize().asPublic(); | |
3311 } | |
3312 | |
3313 #if !CAPNP_LITE | |
3314 inline ::kj::StringTree toString() const { | |
3315 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3316 } | |
3317 #endif // !CAPNP_LITE | |
3318 | |
3319 inline Which which() const; | |
3320 inline bool isUnbound() const; | |
3321 inline ::capnp::Void getUnbound() const; | |
3322 | |
3323 inline bool isType() const; | |
3324 inline bool hasType() const; | |
3325 inline ::capnp::schema::Type::Reader getType() const; | |
3326 | |
3327 private: | |
3328 ::capnp::_::StructReader _reader; | |
3329 template <typename, ::capnp::Kind> | |
3330 friend struct ::capnp::ToDynamic_; | |
3331 template <typename, ::capnp::Kind> | |
3332 friend struct ::capnp::_::PointerHelpers; | |
3333 template <typename, ::capnp::Kind> | |
3334 friend struct ::capnp::List; | |
3335 friend class ::capnp::MessageBuilder; | |
3336 friend class ::capnp::Orphanage; | |
3337 }; | |
3338 | |
3339 class Brand::Binding::Builder { | |
3340 public: | |
3341 typedef Binding Builds; | |
3342 | |
3343 Builder() = delete; // Deleted to discourage incorrect usage. | |
3344 // You can explicitly initialize to nullptr instead. | |
3345 inline Builder(decltype(nullptr)) {} | |
3346 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3347 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3348 inline Reader asReader() const { return *this; } | |
3349 | |
3350 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3351 #if !CAPNP_LITE | |
3352 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3353 #endif // !CAPNP_LITE | |
3354 | |
3355 inline Which which(); | |
3356 inline bool isUnbound(); | |
3357 inline ::capnp::Void getUnbound(); | |
3358 inline void setUnbound( ::capnp::Void value = ::capnp::VOID); | |
3359 | |
3360 inline bool isType(); | |
3361 inline bool hasType(); | |
3362 inline ::capnp::schema::Type::Builder getType(); | |
3363 inline void setType( ::capnp::schema::Type::Reader value); | |
3364 inline ::capnp::schema::Type::Builder initType(); | |
3365 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); | |
3366 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); | |
3367 | |
3368 private: | |
3369 ::capnp::_::StructBuilder _builder; | |
3370 template <typename, ::capnp::Kind> | |
3371 friend struct ::capnp::ToDynamic_; | |
3372 friend class ::capnp::Orphanage; | |
3373 template <typename, ::capnp::Kind> | |
3374 friend struct ::capnp::_::PointerHelpers; | |
3375 }; | |
3376 | |
3377 #if !CAPNP_LITE | |
3378 class Brand::Binding::Pipeline { | |
3379 public: | |
3380 typedef Binding Pipelines; | |
3381 | |
3382 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3383 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3384 : _typeless(kj::mv(typeless)) {} | |
3385 | |
3386 private: | |
3387 ::capnp::AnyPointer::Pipeline _typeless; | |
3388 friend class ::capnp::PipelineHook; | |
3389 template <typename, ::capnp::Kind> | |
3390 friend struct ::capnp::ToDynamic_; | |
3391 }; | |
3392 #endif // !CAPNP_LITE | |
3393 | |
3394 class Value::Reader { | |
3395 public: | |
3396 typedef Value Reads; | |
3397 | |
3398 Reader() = default; | |
3399 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3400 | |
3401 inline ::capnp::MessageSize totalSize() const { | |
3402 return _reader.totalSize().asPublic(); | |
3403 } | |
3404 | |
3405 #if !CAPNP_LITE | |
3406 inline ::kj::StringTree toString() const { | |
3407 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3408 } | |
3409 #endif // !CAPNP_LITE | |
3410 | |
3411 inline Which which() const; | |
3412 inline bool isVoid() const; | |
3413 inline ::capnp::Void getVoid() const; | |
3414 | |
3415 inline bool isBool() const; | |
3416 inline bool getBool() const; | |
3417 | |
3418 inline bool isInt8() const; | |
3419 inline ::int8_t getInt8() const; | |
3420 | |
3421 inline bool isInt16() const; | |
3422 inline ::int16_t getInt16() const; | |
3423 | |
3424 inline bool isInt32() const; | |
3425 inline ::int32_t getInt32() const; | |
3426 | |
3427 inline bool isInt64() const; | |
3428 inline ::int64_t getInt64() const; | |
3429 | |
3430 inline bool isUint8() const; | |
3431 inline ::uint8_t getUint8() const; | |
3432 | |
3433 inline bool isUint16() const; | |
3434 inline ::uint16_t getUint16() const; | |
3435 | |
3436 inline bool isUint32() const; | |
3437 inline ::uint32_t getUint32() const; | |
3438 | |
3439 inline bool isUint64() const; | |
3440 inline ::uint64_t getUint64() const; | |
3441 | |
3442 inline bool isFloat32() const; | |
3443 inline float getFloat32() const; | |
3444 | |
3445 inline bool isFloat64() const; | |
3446 inline double getFloat64() const; | |
3447 | |
3448 inline bool isText() const; | |
3449 inline bool hasText() const; | |
3450 inline ::capnp::Text::Reader getText() const; | |
3451 | |
3452 inline bool isData() const; | |
3453 inline bool hasData() const; | |
3454 inline ::capnp::Data::Reader getData() const; | |
3455 | |
3456 inline bool isList() const; | |
3457 inline bool hasList() const; | |
3458 inline ::capnp::AnyPointer::Reader getList() const; | |
3459 | |
3460 inline bool isEnum() const; | |
3461 inline ::uint16_t getEnum() const; | |
3462 | |
3463 inline bool isStruct() const; | |
3464 inline bool hasStruct() const; | |
3465 inline ::capnp::AnyPointer::Reader getStruct() const; | |
3466 | |
3467 inline bool isInterface() const; | |
3468 inline ::capnp::Void getInterface() const; | |
3469 | |
3470 inline bool isAnyPointer() const; | |
3471 inline bool hasAnyPointer() const; | |
3472 inline ::capnp::AnyPointer::Reader getAnyPointer() const; | |
3473 | |
3474 private: | |
3475 ::capnp::_::StructReader _reader; | |
3476 template <typename, ::capnp::Kind> | |
3477 friend struct ::capnp::ToDynamic_; | |
3478 template <typename, ::capnp::Kind> | |
3479 friend struct ::capnp::_::PointerHelpers; | |
3480 template <typename, ::capnp::Kind> | |
3481 friend struct ::capnp::List; | |
3482 friend class ::capnp::MessageBuilder; | |
3483 friend class ::capnp::Orphanage; | |
3484 }; | |
3485 | |
3486 class Value::Builder { | |
3487 public: | |
3488 typedef Value Builds; | |
3489 | |
3490 Builder() = delete; // Deleted to discourage incorrect usage. | |
3491 // You can explicitly initialize to nullptr instead. | |
3492 inline Builder(decltype(nullptr)) {} | |
3493 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3494 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3495 inline Reader asReader() const { return *this; } | |
3496 | |
3497 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3498 #if !CAPNP_LITE | |
3499 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3500 #endif // !CAPNP_LITE | |
3501 | |
3502 inline Which which(); | |
3503 inline bool isVoid(); | |
3504 inline ::capnp::Void getVoid(); | |
3505 inline void setVoid( ::capnp::Void value = ::capnp::VOID); | |
3506 | |
3507 inline bool isBool(); | |
3508 inline bool getBool(); | |
3509 inline void setBool(bool value); | |
3510 | |
3511 inline bool isInt8(); | |
3512 inline ::int8_t getInt8(); | |
3513 inline void setInt8( ::int8_t value); | |
3514 | |
3515 inline bool isInt16(); | |
3516 inline ::int16_t getInt16(); | |
3517 inline void setInt16( ::int16_t value); | |
3518 | |
3519 inline bool isInt32(); | |
3520 inline ::int32_t getInt32(); | |
3521 inline void setInt32( ::int32_t value); | |
3522 | |
3523 inline bool isInt64(); | |
3524 inline ::int64_t getInt64(); | |
3525 inline void setInt64( ::int64_t value); | |
3526 | |
3527 inline bool isUint8(); | |
3528 inline ::uint8_t getUint8(); | |
3529 inline void setUint8( ::uint8_t value); | |
3530 | |
3531 inline bool isUint16(); | |
3532 inline ::uint16_t getUint16(); | |
3533 inline void setUint16( ::uint16_t value); | |
3534 | |
3535 inline bool isUint32(); | |
3536 inline ::uint32_t getUint32(); | |
3537 inline void setUint32( ::uint32_t value); | |
3538 | |
3539 inline bool isUint64(); | |
3540 inline ::uint64_t getUint64(); | |
3541 inline void setUint64( ::uint64_t value); | |
3542 | |
3543 inline bool isFloat32(); | |
3544 inline float getFloat32(); | |
3545 inline void setFloat32(float value); | |
3546 | |
3547 inline bool isFloat64(); | |
3548 inline double getFloat64(); | |
3549 inline void setFloat64(double value); | |
3550 | |
3551 inline bool isText(); | |
3552 inline bool hasText(); | |
3553 inline ::capnp::Text::Builder getText(); | |
3554 inline void setText( ::capnp::Text::Reader value); | |
3555 inline ::capnp::Text::Builder initText(unsigned int size); | |
3556 inline void adoptText(::capnp::Orphan< ::capnp::Text>&& value); | |
3557 inline ::capnp::Orphan< ::capnp::Text> disownText(); | |
3558 | |
3559 inline bool isData(); | |
3560 inline bool hasData(); | |
3561 inline ::capnp::Data::Builder getData(); | |
3562 inline void setData( ::capnp::Data::Reader value); | |
3563 inline ::capnp::Data::Builder initData(unsigned int size); | |
3564 inline void adoptData(::capnp::Orphan< ::capnp::Data>&& value); | |
3565 inline ::capnp::Orphan< ::capnp::Data> disownData(); | |
3566 | |
3567 inline bool isList(); | |
3568 inline bool hasList(); | |
3569 inline ::capnp::AnyPointer::Builder getList(); | |
3570 inline ::capnp::AnyPointer::Builder initList(); | |
3571 | |
3572 inline bool isEnum(); | |
3573 inline ::uint16_t getEnum(); | |
3574 inline void setEnum( ::uint16_t value); | |
3575 | |
3576 inline bool isStruct(); | |
3577 inline bool hasStruct(); | |
3578 inline ::capnp::AnyPointer::Builder getStruct(); | |
3579 inline ::capnp::AnyPointer::Builder initStruct(); | |
3580 | |
3581 inline bool isInterface(); | |
3582 inline ::capnp::Void getInterface(); | |
3583 inline void setInterface( ::capnp::Void value = ::capnp::VOID); | |
3584 | |
3585 inline bool isAnyPointer(); | |
3586 inline bool hasAnyPointer(); | |
3587 inline ::capnp::AnyPointer::Builder getAnyPointer(); | |
3588 inline ::capnp::AnyPointer::Builder initAnyPointer(); | |
3589 | |
3590 private: | |
3591 ::capnp::_::StructBuilder _builder; | |
3592 template <typename, ::capnp::Kind> | |
3593 friend struct ::capnp::ToDynamic_; | |
3594 friend class ::capnp::Orphanage; | |
3595 template <typename, ::capnp::Kind> | |
3596 friend struct ::capnp::_::PointerHelpers; | |
3597 }; | |
3598 | |
3599 #if !CAPNP_LITE | |
3600 class Value::Pipeline { | |
3601 public: | |
3602 typedef Value Pipelines; | |
3603 | |
3604 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3605 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3606 : _typeless(kj::mv(typeless)) {} | |
3607 | |
3608 private: | |
3609 ::capnp::AnyPointer::Pipeline _typeless; | |
3610 friend class ::capnp::PipelineHook; | |
3611 template <typename, ::capnp::Kind> | |
3612 friend struct ::capnp::ToDynamic_; | |
3613 }; | |
3614 #endif // !CAPNP_LITE | |
3615 | |
3616 class Annotation::Reader { | |
3617 public: | |
3618 typedef Annotation Reads; | |
3619 | |
3620 Reader() = default; | |
3621 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3622 | |
3623 inline ::capnp::MessageSize totalSize() const { | |
3624 return _reader.totalSize().asPublic(); | |
3625 } | |
3626 | |
3627 #if !CAPNP_LITE | |
3628 inline ::kj::StringTree toString() const { | |
3629 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3630 } | |
3631 #endif // !CAPNP_LITE | |
3632 | |
3633 inline ::uint64_t getId() const; | |
3634 | |
3635 inline bool hasValue() const; | |
3636 inline ::capnp::schema::Value::Reader getValue() const; | |
3637 | |
3638 inline bool hasBrand() const; | |
3639 inline ::capnp::schema::Brand::Reader getBrand() const; | |
3640 | |
3641 private: | |
3642 ::capnp::_::StructReader _reader; | |
3643 template <typename, ::capnp::Kind> | |
3644 friend struct ::capnp::ToDynamic_; | |
3645 template <typename, ::capnp::Kind> | |
3646 friend struct ::capnp::_::PointerHelpers; | |
3647 template <typename, ::capnp::Kind> | |
3648 friend struct ::capnp::List; | |
3649 friend class ::capnp::MessageBuilder; | |
3650 friend class ::capnp::Orphanage; | |
3651 }; | |
3652 | |
3653 class Annotation::Builder { | |
3654 public: | |
3655 typedef Annotation Builds; | |
3656 | |
3657 Builder() = delete; // Deleted to discourage incorrect usage. | |
3658 // You can explicitly initialize to nullptr instead. | |
3659 inline Builder(decltype(nullptr)) {} | |
3660 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3661 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3662 inline Reader asReader() const { return *this; } | |
3663 | |
3664 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3665 #if !CAPNP_LITE | |
3666 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3667 #endif // !CAPNP_LITE | |
3668 | |
3669 inline ::uint64_t getId(); | |
3670 inline void setId( ::uint64_t value); | |
3671 | |
3672 inline bool hasValue(); | |
3673 inline ::capnp::schema::Value::Builder getValue(); | |
3674 inline void setValue( ::capnp::schema::Value::Reader value); | |
3675 inline ::capnp::schema::Value::Builder initValue(); | |
3676 inline void adoptValue(::capnp::Orphan< ::capnp::schema::Value>&& value); | |
3677 inline ::capnp::Orphan< ::capnp::schema::Value> disownValue(); | |
3678 | |
3679 inline bool hasBrand(); | |
3680 inline ::capnp::schema::Brand::Builder getBrand(); | |
3681 inline void setBrand( ::capnp::schema::Brand::Reader value); | |
3682 inline ::capnp::schema::Brand::Builder initBrand(); | |
3683 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); | |
3684 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); | |
3685 | |
3686 private: | |
3687 ::capnp::_::StructBuilder _builder; | |
3688 template <typename, ::capnp::Kind> | |
3689 friend struct ::capnp::ToDynamic_; | |
3690 friend class ::capnp::Orphanage; | |
3691 template <typename, ::capnp::Kind> | |
3692 friend struct ::capnp::_::PointerHelpers; | |
3693 }; | |
3694 | |
3695 #if !CAPNP_LITE | |
3696 class Annotation::Pipeline { | |
3697 public: | |
3698 typedef Annotation Pipelines; | |
3699 | |
3700 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3701 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3702 : _typeless(kj::mv(typeless)) {} | |
3703 | |
3704 inline ::capnp::schema::Value::Pipeline getValue(); | |
3705 inline ::capnp::schema::Brand::Pipeline getBrand(); | |
3706 private: | |
3707 ::capnp::AnyPointer::Pipeline _typeless; | |
3708 friend class ::capnp::PipelineHook; | |
3709 template <typename, ::capnp::Kind> | |
3710 friend struct ::capnp::ToDynamic_; | |
3711 }; | |
3712 #endif // !CAPNP_LITE | |
3713 | |
3714 class CodeGeneratorRequest::Reader { | |
3715 public: | |
3716 typedef CodeGeneratorRequest Reads; | |
3717 | |
3718 Reader() = default; | |
3719 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3720 | |
3721 inline ::capnp::MessageSize totalSize() const { | |
3722 return _reader.totalSize().asPublic(); | |
3723 } | |
3724 | |
3725 #if !CAPNP_LITE | |
3726 inline ::kj::StringTree toString() const { | |
3727 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3728 } | |
3729 #endif // !CAPNP_LITE | |
3730 | |
3731 inline bool hasNodes() const; | |
3732 inline ::capnp::List< ::capnp::schema::Node>::Reader getNodes() const; | |
3733 | |
3734 inline bool hasRequestedFiles() const; | |
3735 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader getRequestedFiles() const; | |
3736 | |
3737 private: | |
3738 ::capnp::_::StructReader _reader; | |
3739 template <typename, ::capnp::Kind> | |
3740 friend struct ::capnp::ToDynamic_; | |
3741 template <typename, ::capnp::Kind> | |
3742 friend struct ::capnp::_::PointerHelpers; | |
3743 template <typename, ::capnp::Kind> | |
3744 friend struct ::capnp::List; | |
3745 friend class ::capnp::MessageBuilder; | |
3746 friend class ::capnp::Orphanage; | |
3747 }; | |
3748 | |
3749 class CodeGeneratorRequest::Builder { | |
3750 public: | |
3751 typedef CodeGeneratorRequest Builds; | |
3752 | |
3753 Builder() = delete; // Deleted to discourage incorrect usage. | |
3754 // You can explicitly initialize to nullptr instead. | |
3755 inline Builder(decltype(nullptr)) {} | |
3756 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3757 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3758 inline Reader asReader() const { return *this; } | |
3759 | |
3760 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3761 #if !CAPNP_LITE | |
3762 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3763 #endif // !CAPNP_LITE | |
3764 | |
3765 inline bool hasNodes(); | |
3766 inline ::capnp::List< ::capnp::schema::Node>::Builder getNodes(); | |
3767 inline void setNodes( ::capnp::List< ::capnp::schema::Node>::Reader value); | |
3768 inline ::capnp::List< ::capnp::schema::Node>::Builder initNodes(unsigned int size); | |
3769 inline void adoptNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>>&& value); | |
3770 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>> disownNodes(); | |
3771 | |
3772 inline bool hasRequestedFiles(); | |
3773 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder getRequestedFiles(); | |
3774 inline void setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader value); | |
3775 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder initRequestedFiles(unsigned int size); | |
3776 inline void adoptRequestedFiles(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>&& value); | |
3777 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>> disownRequestedFiles(); | |
3778 | |
3779 private: | |
3780 ::capnp::_::StructBuilder _builder; | |
3781 template <typename, ::capnp::Kind> | |
3782 friend struct ::capnp::ToDynamic_; | |
3783 friend class ::capnp::Orphanage; | |
3784 template <typename, ::capnp::Kind> | |
3785 friend struct ::capnp::_::PointerHelpers; | |
3786 }; | |
3787 | |
3788 #if !CAPNP_LITE | |
3789 class CodeGeneratorRequest::Pipeline { | |
3790 public: | |
3791 typedef CodeGeneratorRequest Pipelines; | |
3792 | |
3793 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3794 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3795 : _typeless(kj::mv(typeless)) {} | |
3796 | |
3797 private: | |
3798 ::capnp::AnyPointer::Pipeline _typeless; | |
3799 friend class ::capnp::PipelineHook; | |
3800 template <typename, ::capnp::Kind> | |
3801 friend struct ::capnp::ToDynamic_; | |
3802 }; | |
3803 #endif // !CAPNP_LITE | |
3804 | |
3805 class CodeGeneratorRequest::RequestedFile::Reader { | |
3806 public: | |
3807 typedef RequestedFile Reads; | |
3808 | |
3809 Reader() = default; | |
3810 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3811 | |
3812 inline ::capnp::MessageSize totalSize() const { | |
3813 return _reader.totalSize().asPublic(); | |
3814 } | |
3815 | |
3816 #if !CAPNP_LITE | |
3817 inline ::kj::StringTree toString() const { | |
3818 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3819 } | |
3820 #endif // !CAPNP_LITE | |
3821 | |
3822 inline ::uint64_t getId() const; | |
3823 | |
3824 inline bool hasFilename() const; | |
3825 inline ::capnp::Text::Reader getFilename() const; | |
3826 | |
3827 inline bool hasImports() const; | |
3828 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader getImports() const; | |
3829 | |
3830 private: | |
3831 ::capnp::_::StructReader _reader; | |
3832 template <typename, ::capnp::Kind> | |
3833 friend struct ::capnp::ToDynamic_; | |
3834 template <typename, ::capnp::Kind> | |
3835 friend struct ::capnp::_::PointerHelpers; | |
3836 template <typename, ::capnp::Kind> | |
3837 friend struct ::capnp::List; | |
3838 friend class ::capnp::MessageBuilder; | |
3839 friend class ::capnp::Orphanage; | |
3840 }; | |
3841 | |
3842 class CodeGeneratorRequest::RequestedFile::Builder { | |
3843 public: | |
3844 typedef RequestedFile Builds; | |
3845 | |
3846 Builder() = delete; // Deleted to discourage incorrect usage. | |
3847 // You can explicitly initialize to nullptr instead. | |
3848 inline Builder(decltype(nullptr)) {} | |
3849 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3850 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3851 inline Reader asReader() const { return *this; } | |
3852 | |
3853 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3854 #if !CAPNP_LITE | |
3855 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3856 #endif // !CAPNP_LITE | |
3857 | |
3858 inline ::uint64_t getId(); | |
3859 inline void setId( ::uint64_t value); | |
3860 | |
3861 inline bool hasFilename(); | |
3862 inline ::capnp::Text::Builder getFilename(); | |
3863 inline void setFilename( ::capnp::Text::Reader value); | |
3864 inline ::capnp::Text::Builder initFilename(unsigned int size); | |
3865 inline void adoptFilename(::capnp::Orphan< ::capnp::Text>&& value); | |
3866 inline ::capnp::Orphan< ::capnp::Text> disownFilename(); | |
3867 | |
3868 inline bool hasImports(); | |
3869 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder getImports(); | |
3870 inline void setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader value); | |
3871 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder initImports(unsigned int size); | |
3872 inline void adoptImports(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>&& value); | |
3873 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>> disownImports(); | |
3874 | |
3875 private: | |
3876 ::capnp::_::StructBuilder _builder; | |
3877 template <typename, ::capnp::Kind> | |
3878 friend struct ::capnp::ToDynamic_; | |
3879 friend class ::capnp::Orphanage; | |
3880 template <typename, ::capnp::Kind> | |
3881 friend struct ::capnp::_::PointerHelpers; | |
3882 }; | |
3883 | |
3884 #if !CAPNP_LITE | |
3885 class CodeGeneratorRequest::RequestedFile::Pipeline { | |
3886 public: | |
3887 typedef RequestedFile Pipelines; | |
3888 | |
3889 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3890 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3891 : _typeless(kj::mv(typeless)) {} | |
3892 | |
3893 private: | |
3894 ::capnp::AnyPointer::Pipeline _typeless; | |
3895 friend class ::capnp::PipelineHook; | |
3896 template <typename, ::capnp::Kind> | |
3897 friend struct ::capnp::ToDynamic_; | |
3898 }; | |
3899 #endif // !CAPNP_LITE | |
3900 | |
3901 class CodeGeneratorRequest::RequestedFile::Import::Reader { | |
3902 public: | |
3903 typedef Import Reads; | |
3904 | |
3905 Reader() = default; | |
3906 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3907 | |
3908 inline ::capnp::MessageSize totalSize() const { | |
3909 return _reader.totalSize().asPublic(); | |
3910 } | |
3911 | |
3912 #if !CAPNP_LITE | |
3913 inline ::kj::StringTree toString() const { | |
3914 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
3915 } | |
3916 #endif // !CAPNP_LITE | |
3917 | |
3918 inline ::uint64_t getId() const; | |
3919 | |
3920 inline bool hasName() const; | |
3921 inline ::capnp::Text::Reader getName() const; | |
3922 | |
3923 private: | |
3924 ::capnp::_::StructReader _reader; | |
3925 template <typename, ::capnp::Kind> | |
3926 friend struct ::capnp::ToDynamic_; | |
3927 template <typename, ::capnp::Kind> | |
3928 friend struct ::capnp::_::PointerHelpers; | |
3929 template <typename, ::capnp::Kind> | |
3930 friend struct ::capnp::List; | |
3931 friend class ::capnp::MessageBuilder; | |
3932 friend class ::capnp::Orphanage; | |
3933 }; | |
3934 | |
3935 class CodeGeneratorRequest::RequestedFile::Import::Builder { | |
3936 public: | |
3937 typedef Import Builds; | |
3938 | |
3939 Builder() = delete; // Deleted to discourage incorrect usage. | |
3940 // You can explicitly initialize to nullptr instead. | |
3941 inline Builder(decltype(nullptr)) {} | |
3942 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3943 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3944 inline Reader asReader() const { return *this; } | |
3945 | |
3946 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3947 #if !CAPNP_LITE | |
3948 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3949 #endif // !CAPNP_LITE | |
3950 | |
3951 inline ::uint64_t getId(); | |
3952 inline void setId( ::uint64_t value); | |
3953 | |
3954 inline bool hasName(); | |
3955 inline ::capnp::Text::Builder getName(); | |
3956 inline void setName( ::capnp::Text::Reader value); | |
3957 inline ::capnp::Text::Builder initName(unsigned int size); | |
3958 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); | |
3959 inline ::capnp::Orphan< ::capnp::Text> disownName(); | |
3960 | |
3961 private: | |
3962 ::capnp::_::StructBuilder _builder; | |
3963 template <typename, ::capnp::Kind> | |
3964 friend struct ::capnp::ToDynamic_; | |
3965 friend class ::capnp::Orphanage; | |
3966 template <typename, ::capnp::Kind> | |
3967 friend struct ::capnp::_::PointerHelpers; | |
3968 }; | |
3969 | |
3970 #if !CAPNP_LITE | |
3971 class CodeGeneratorRequest::RequestedFile::Import::Pipeline { | |
3972 public: | |
3973 typedef Import Pipelines; | |
3974 | |
3975 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3976 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3977 : _typeless(kj::mv(typeless)) {} | |
3978 | |
3979 private: | |
3980 ::capnp::AnyPointer::Pipeline _typeless; | |
3981 friend class ::capnp::PipelineHook; | |
3982 template <typename, ::capnp::Kind> | |
3983 friend struct ::capnp::ToDynamic_; | |
3984 }; | |
3985 #endif // !CAPNP_LITE | |
3986 | |
3987 // ======================================================================================= | |
3988 | |
3989 inline ::capnp::schema::Node::Which Node::Reader::which() const { | |
3990 return _reader.getDataField<Which>(6 * ::capnp::ELEMENTS); | |
3991 } | |
3992 inline ::capnp::schema::Node::Which Node::Builder::which() { | |
3993 return _builder.getDataField<Which>(6 * ::capnp::ELEMENTS); | |
3994 } | |
3995 | |
3996 inline ::uint64_t Node::Reader::getId() const { | |
3997 return _reader.getDataField< ::uint64_t>( | |
3998 0 * ::capnp::ELEMENTS); | |
3999 } | |
4000 | |
4001 inline ::uint64_t Node::Builder::getId() { | |
4002 return _builder.getDataField< ::uint64_t>( | |
4003 0 * ::capnp::ELEMENTS); | |
4004 } | |
4005 inline void Node::Builder::setId( ::uint64_t value) { | |
4006 _builder.setDataField< ::uint64_t>( | |
4007 0 * ::capnp::ELEMENTS, value); | |
4008 } | |
4009 | |
4010 inline bool Node::Reader::hasDisplayName() const { | |
4011 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4012 } | |
4013 inline bool Node::Builder::hasDisplayName() { | |
4014 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4015 } | |
4016 inline ::capnp::Text::Reader Node::Reader::getDisplayName() const { | |
4017 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4018 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
4019 } | |
4020 inline ::capnp::Text::Builder Node::Builder::getDisplayName() { | |
4021 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4022 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4023 } | |
4024 inline void Node::Builder::setDisplayName( ::capnp::Text::Reader value) { | |
4025 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
4026 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
4027 } | |
4028 inline ::capnp::Text::Builder Node::Builder::initDisplayName(unsigned int size) { | |
4029 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
4030 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
4031 } | |
4032 inline void Node::Builder::adoptDisplayName( | |
4033 ::capnp::Orphan< ::capnp::Text>&& value) { | |
4034 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
4035 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
4036 } | |
4037 inline ::capnp::Orphan< ::capnp::Text> Node::Builder::disownDisplayName() { | |
4038 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
4039 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4040 } | |
4041 | |
4042 inline ::uint32_t Node::Reader::getDisplayNamePrefixLength() const { | |
4043 return _reader.getDataField< ::uint32_t>( | |
4044 2 * ::capnp::ELEMENTS); | |
4045 } | |
4046 | |
4047 inline ::uint32_t Node::Builder::getDisplayNamePrefixLength() { | |
4048 return _builder.getDataField< ::uint32_t>( | |
4049 2 * ::capnp::ELEMENTS); | |
4050 } | |
4051 inline void Node::Builder::setDisplayNamePrefixLength( ::uint32_t value) { | |
4052 _builder.setDataField< ::uint32_t>( | |
4053 2 * ::capnp::ELEMENTS, value); | |
4054 } | |
4055 | |
4056 inline ::uint64_t Node::Reader::getScopeId() const { | |
4057 return _reader.getDataField< ::uint64_t>( | |
4058 2 * ::capnp::ELEMENTS); | |
4059 } | |
4060 | |
4061 inline ::uint64_t Node::Builder::getScopeId() { | |
4062 return _builder.getDataField< ::uint64_t>( | |
4063 2 * ::capnp::ELEMENTS); | |
4064 } | |
4065 inline void Node::Builder::setScopeId( ::uint64_t value) { | |
4066 _builder.setDataField< ::uint64_t>( | |
4067 2 * ::capnp::ELEMENTS, value); | |
4068 } | |
4069 | |
4070 inline bool Node::Reader::hasNestedNodes() const { | |
4071 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
4072 } | |
4073 inline bool Node::Builder::hasNestedNodes() { | |
4074 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
4075 } | |
4076 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader Node::Reader::getNestedNodes() const { | |
4077 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::get( | |
4078 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
4079 } | |
4080 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder Node::Builder::getNestedNodes() { | |
4081 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::get( | |
4082 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
4083 } | |
4084 inline void Node::Builder::setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader value) { | |
4085 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::set( | |
4086 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
4087 } | |
4088 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder Node::Builder::initNestedNodes(unsigned int size) { | |
4089 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::init( | |
4090 _builder.getPointerField(1 * ::capnp::POINTERS), size); | |
4091 } | |
4092 inline void Node::Builder::adoptNestedNodes( | |
4093 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>>&& value) { | |
4094 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::adopt( | |
4095 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
4096 } | |
4097 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>> Node::Builder::disownNestedNodes() { | |
4098 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::disown( | |
4099 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
4100 } | |
4101 | |
4102 inline bool Node::Reader::hasAnnotations() const { | |
4103 return !_reader.getPointerField(2 * ::capnp::POINTERS).isNull(); | |
4104 } | |
4105 inline bool Node::Builder::hasAnnotations() { | |
4106 return !_builder.getPointerField(2 * ::capnp::POINTERS).isNull(); | |
4107 } | |
4108 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Node::Reader::getAnnotations() const { | |
4109 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
4110 _reader.getPointerField(2 * ::capnp::POINTERS)); | |
4111 } | |
4112 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Node::Builder::getAnnotations() { | |
4113 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
4114 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
4115 } | |
4116 inline void Node::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | |
4117 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | |
4118 _builder.getPointerField(2 * ::capnp::POINTERS), value); | |
4119 } | |
4120 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Node::Builder::initAnnotations(unsigned int size) { | |
4121 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | |
4122 _builder.getPointerField(2 * ::capnp::POINTERS), size); | |
4123 } | |
4124 inline void Node::Builder::adoptAnnotations( | |
4125 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | |
4126 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | |
4127 _builder.getPointerField(2 * ::capnp::POINTERS), kj::mv(value)); | |
4128 } | |
4129 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Node::Builder::disownAnnotations() { | |
4130 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | |
4131 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
4132 } | |
4133 | |
4134 inline bool Node::Reader::isFile() const { | |
4135 return which() == Node::FILE; | |
4136 } | |
4137 inline bool Node::Builder::isFile() { | |
4138 return which() == Node::FILE; | |
4139 } | |
4140 inline ::capnp::Void Node::Reader::getFile() const { | |
4141 KJ_IREQUIRE((which() == Node::FILE), | |
4142 "Must check which() before get()ing a union member."); | |
4143 return _reader.getDataField< ::capnp::Void>( | |
4144 0 * ::capnp::ELEMENTS); | |
4145 } | |
4146 | |
4147 inline ::capnp::Void Node::Builder::getFile() { | |
4148 KJ_IREQUIRE((which() == Node::FILE), | |
4149 "Must check which() before get()ing a union member."); | |
4150 return _builder.getDataField< ::capnp::Void>( | |
4151 0 * ::capnp::ELEMENTS); | |
4152 } | |
4153 inline void Node::Builder::setFile( ::capnp::Void value) { | |
4154 _builder.setDataField<Node::Which>( | |
4155 6 * ::capnp::ELEMENTS, Node::FILE); | |
4156 _builder.setDataField< ::capnp::Void>( | |
4157 0 * ::capnp::ELEMENTS, value); | |
4158 } | |
4159 | |
4160 inline bool Node::Reader::isStruct() const { | |
4161 return which() == Node::STRUCT; | |
4162 } | |
4163 inline bool Node::Builder::isStruct() { | |
4164 return which() == Node::STRUCT; | |
4165 } | |
4166 inline typename Node::Struct::Reader Node::Reader::getStruct() const { | |
4167 KJ_IREQUIRE((which() == Node::STRUCT), | |
4168 "Must check which() before get()ing a union member."); | |
4169 return typename Node::Struct::Reader(_reader); | |
4170 } | |
4171 inline typename Node::Struct::Builder Node::Builder::getStruct() { | |
4172 KJ_IREQUIRE((which() == Node::STRUCT), | |
4173 "Must check which() before get()ing a union member."); | |
4174 return typename Node::Struct::Builder(_builder); | |
4175 } | |
4176 inline typename Node::Struct::Builder Node::Builder::initStruct() { | |
4177 _builder.setDataField<Node::Which>( | |
4178 6 * ::capnp::ELEMENTS, Node::STRUCT); | |
4179 _builder.setDataField< ::uint16_t>(7 * ::capnp::ELEMENTS, 0); | |
4180 _builder.setDataField< ::uint16_t>(12 * ::capnp::ELEMENTS, 0); | |
4181 _builder.setDataField< ::uint16_t>(13 * ::capnp::ELEMENTS, 0); | |
4182 _builder.setDataField<bool>(224 * ::capnp::ELEMENTS, 0); | |
4183 _builder.setDataField< ::uint16_t>(15 * ::capnp::ELEMENTS, 0); | |
4184 _builder.setDataField< ::uint32_t>(8 * ::capnp::ELEMENTS, 0); | |
4185 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | |
4186 return typename Node::Struct::Builder(_builder); | |
4187 } | |
4188 inline bool Node::Reader::isEnum() const { | |
4189 return which() == Node::ENUM; | |
4190 } | |
4191 inline bool Node::Builder::isEnum() { | |
4192 return which() == Node::ENUM; | |
4193 } | |
4194 inline typename Node::Enum::Reader Node::Reader::getEnum() const { | |
4195 KJ_IREQUIRE((which() == Node::ENUM), | |
4196 "Must check which() before get()ing a union member."); | |
4197 return typename Node::Enum::Reader(_reader); | |
4198 } | |
4199 inline typename Node::Enum::Builder Node::Builder::getEnum() { | |
4200 KJ_IREQUIRE((which() == Node::ENUM), | |
4201 "Must check which() before get()ing a union member."); | |
4202 return typename Node::Enum::Builder(_builder); | |
4203 } | |
4204 inline typename Node::Enum::Builder Node::Builder::initEnum() { | |
4205 _builder.setDataField<Node::Which>( | |
4206 6 * ::capnp::ELEMENTS, Node::ENUM); | |
4207 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | |
4208 return typename Node::Enum::Builder(_builder); | |
4209 } | |
4210 inline bool Node::Reader::isInterface() const { | |
4211 return which() == Node::INTERFACE; | |
4212 } | |
4213 inline bool Node::Builder::isInterface() { | |
4214 return which() == Node::INTERFACE; | |
4215 } | |
4216 inline typename Node::Interface::Reader Node::Reader::getInterface() const { | |
4217 KJ_IREQUIRE((which() == Node::INTERFACE), | |
4218 "Must check which() before get()ing a union member."); | |
4219 return typename Node::Interface::Reader(_reader); | |
4220 } | |
4221 inline typename Node::Interface::Builder Node::Builder::getInterface() { | |
4222 KJ_IREQUIRE((which() == Node::INTERFACE), | |
4223 "Must check which() before get()ing a union member."); | |
4224 return typename Node::Interface::Builder(_builder); | |
4225 } | |
4226 inline typename Node::Interface::Builder Node::Builder::initInterface() { | |
4227 _builder.setDataField<Node::Which>( | |
4228 6 * ::capnp::ELEMENTS, Node::INTERFACE); | |
4229 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | |
4230 _builder.getPointerField(4 * ::capnp::POINTERS).clear(); | |
4231 return typename Node::Interface::Builder(_builder); | |
4232 } | |
4233 inline bool Node::Reader::isConst() const { | |
4234 return which() == Node::CONST; | |
4235 } | |
4236 inline bool Node::Builder::isConst() { | |
4237 return which() == Node::CONST; | |
4238 } | |
4239 inline typename Node::Const::Reader Node::Reader::getConst() const { | |
4240 KJ_IREQUIRE((which() == Node::CONST), | |
4241 "Must check which() before get()ing a union member."); | |
4242 return typename Node::Const::Reader(_reader); | |
4243 } | |
4244 inline typename Node::Const::Builder Node::Builder::getConst() { | |
4245 KJ_IREQUIRE((which() == Node::CONST), | |
4246 "Must check which() before get()ing a union member."); | |
4247 return typename Node::Const::Builder(_builder); | |
4248 } | |
4249 inline typename Node::Const::Builder Node::Builder::initConst() { | |
4250 _builder.setDataField<Node::Which>( | |
4251 6 * ::capnp::ELEMENTS, Node::CONST); | |
4252 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | |
4253 _builder.getPointerField(4 * ::capnp::POINTERS).clear(); | |
4254 return typename Node::Const::Builder(_builder); | |
4255 } | |
4256 inline bool Node::Reader::isAnnotation() const { | |
4257 return which() == Node::ANNOTATION; | |
4258 } | |
4259 inline bool Node::Builder::isAnnotation() { | |
4260 return which() == Node::ANNOTATION; | |
4261 } | |
4262 inline typename Node::Annotation::Reader Node::Reader::getAnnotation() const { | |
4263 KJ_IREQUIRE((which() == Node::ANNOTATION), | |
4264 "Must check which() before get()ing a union member."); | |
4265 return typename Node::Annotation::Reader(_reader); | |
4266 } | |
4267 inline typename Node::Annotation::Builder Node::Builder::getAnnotation() { | |
4268 KJ_IREQUIRE((which() == Node::ANNOTATION), | |
4269 "Must check which() before get()ing a union member."); | |
4270 return typename Node::Annotation::Builder(_builder); | |
4271 } | |
4272 inline typename Node::Annotation::Builder Node::Builder::initAnnotation() { | |
4273 _builder.setDataField<Node::Which>( | |
4274 6 * ::capnp::ELEMENTS, Node::ANNOTATION); | |
4275 _builder.setDataField<bool>(112 * ::capnp::ELEMENTS, 0); | |
4276 _builder.setDataField<bool>(113 * ::capnp::ELEMENTS, 0); | |
4277 _builder.setDataField<bool>(114 * ::capnp::ELEMENTS, 0); | |
4278 _builder.setDataField<bool>(115 * ::capnp::ELEMENTS, 0); | |
4279 _builder.setDataField<bool>(116 * ::capnp::ELEMENTS, 0); | |
4280 _builder.setDataField<bool>(117 * ::capnp::ELEMENTS, 0); | |
4281 _builder.setDataField<bool>(118 * ::capnp::ELEMENTS, 0); | |
4282 _builder.setDataField<bool>(119 * ::capnp::ELEMENTS, 0); | |
4283 _builder.setDataField<bool>(120 * ::capnp::ELEMENTS, 0); | |
4284 _builder.setDataField<bool>(121 * ::capnp::ELEMENTS, 0); | |
4285 _builder.setDataField<bool>(122 * ::capnp::ELEMENTS, 0); | |
4286 _builder.setDataField<bool>(123 * ::capnp::ELEMENTS, 0); | |
4287 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | |
4288 return typename Node::Annotation::Builder(_builder); | |
4289 } | |
4290 inline bool Node::Reader::hasParameters() const { | |
4291 return !_reader.getPointerField(5 * ::capnp::POINTERS).isNull(); | |
4292 } | |
4293 inline bool Node::Builder::hasParameters() { | |
4294 return !_builder.getPointerField(5 * ::capnp::POINTERS).isNull(); | |
4295 } | |
4296 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader Node::Reader::getParameters() const { | |
4297 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | |
4298 _reader.getPointerField(5 * ::capnp::POINTERS)); | |
4299 } | |
4300 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Node::Builder::getParameters() { | |
4301 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | |
4302 _builder.getPointerField(5 * ::capnp::POINTERS)); | |
4303 } | |
4304 inline void Node::Builder::setParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value) { | |
4305 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::set( | |
4306 _builder.getPointerField(5 * ::capnp::POINTERS), value); | |
4307 } | |
4308 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Node::Builder::initParameters(unsigned int size) { | |
4309 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::init( | |
4310 _builder.getPointerField(5 * ::capnp::POINTERS), size); | |
4311 } | |
4312 inline void Node::Builder::adoptParameters( | |
4313 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value) { | |
4314 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::adopt( | |
4315 _builder.getPointerField(5 * ::capnp::POINTERS), kj::mv(value)); | |
4316 } | |
4317 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> Node::Builder::disownParameters() { | |
4318 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::disown( | |
4319 _builder.getPointerField(5 * ::capnp::POINTERS)); | |
4320 } | |
4321 | |
4322 inline bool Node::Reader::getIsGeneric() const { | |
4323 return _reader.getDataField<bool>( | |
4324 288 * ::capnp::ELEMENTS); | |
4325 } | |
4326 | |
4327 inline bool Node::Builder::getIsGeneric() { | |
4328 return _builder.getDataField<bool>( | |
4329 288 * ::capnp::ELEMENTS); | |
4330 } | |
4331 inline void Node::Builder::setIsGeneric(bool value) { | |
4332 _builder.setDataField<bool>( | |
4333 288 * ::capnp::ELEMENTS, value); | |
4334 } | |
4335 | |
4336 inline bool Node::Parameter::Reader::hasName() const { | |
4337 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4338 } | |
4339 inline bool Node::Parameter::Builder::hasName() { | |
4340 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4341 } | |
4342 inline ::capnp::Text::Reader Node::Parameter::Reader::getName() const { | |
4343 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4344 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
4345 } | |
4346 inline ::capnp::Text::Builder Node::Parameter::Builder::getName() { | |
4347 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4348 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4349 } | |
4350 inline void Node::Parameter::Builder::setName( ::capnp::Text::Reader value) { | |
4351 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
4352 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
4353 } | |
4354 inline ::capnp::Text::Builder Node::Parameter::Builder::initName(unsigned int size) { | |
4355 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
4356 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
4357 } | |
4358 inline void Node::Parameter::Builder::adoptName( | |
4359 ::capnp::Orphan< ::capnp::Text>&& value) { | |
4360 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
4361 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
4362 } | |
4363 inline ::capnp::Orphan< ::capnp::Text> Node::Parameter::Builder::disownName() { | |
4364 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
4365 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4366 } | |
4367 | |
4368 inline bool Node::NestedNode::Reader::hasName() const { | |
4369 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4370 } | |
4371 inline bool Node::NestedNode::Builder::hasName() { | |
4372 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4373 } | |
4374 inline ::capnp::Text::Reader Node::NestedNode::Reader::getName() const { | |
4375 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4376 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
4377 } | |
4378 inline ::capnp::Text::Builder Node::NestedNode::Builder::getName() { | |
4379 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4380 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4381 } | |
4382 inline void Node::NestedNode::Builder::setName( ::capnp::Text::Reader value) { | |
4383 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
4384 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
4385 } | |
4386 inline ::capnp::Text::Builder Node::NestedNode::Builder::initName(unsigned int size) { | |
4387 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
4388 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
4389 } | |
4390 inline void Node::NestedNode::Builder::adoptName( | |
4391 ::capnp::Orphan< ::capnp::Text>&& value) { | |
4392 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
4393 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
4394 } | |
4395 inline ::capnp::Orphan< ::capnp::Text> Node::NestedNode::Builder::disownName() { | |
4396 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
4397 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4398 } | |
4399 | |
4400 inline ::uint64_t Node::NestedNode::Reader::getId() const { | |
4401 return _reader.getDataField< ::uint64_t>( | |
4402 0 * ::capnp::ELEMENTS); | |
4403 } | |
4404 | |
4405 inline ::uint64_t Node::NestedNode::Builder::getId() { | |
4406 return _builder.getDataField< ::uint64_t>( | |
4407 0 * ::capnp::ELEMENTS); | |
4408 } | |
4409 inline void Node::NestedNode::Builder::setId( ::uint64_t value) { | |
4410 _builder.setDataField< ::uint64_t>( | |
4411 0 * ::capnp::ELEMENTS, value); | |
4412 } | |
4413 | |
4414 inline ::uint16_t Node::Struct::Reader::getDataWordCount() const { | |
4415 return _reader.getDataField< ::uint16_t>( | |
4416 7 * ::capnp::ELEMENTS); | |
4417 } | |
4418 | |
4419 inline ::uint16_t Node::Struct::Builder::getDataWordCount() { | |
4420 return _builder.getDataField< ::uint16_t>( | |
4421 7 * ::capnp::ELEMENTS); | |
4422 } | |
4423 inline void Node::Struct::Builder::setDataWordCount( ::uint16_t value) { | |
4424 _builder.setDataField< ::uint16_t>( | |
4425 7 * ::capnp::ELEMENTS, value); | |
4426 } | |
4427 | |
4428 inline ::uint16_t Node::Struct::Reader::getPointerCount() const { | |
4429 return _reader.getDataField< ::uint16_t>( | |
4430 12 * ::capnp::ELEMENTS); | |
4431 } | |
4432 | |
4433 inline ::uint16_t Node::Struct::Builder::getPointerCount() { | |
4434 return _builder.getDataField< ::uint16_t>( | |
4435 12 * ::capnp::ELEMENTS); | |
4436 } | |
4437 inline void Node::Struct::Builder::setPointerCount( ::uint16_t value) { | |
4438 _builder.setDataField< ::uint16_t>( | |
4439 12 * ::capnp::ELEMENTS, value); | |
4440 } | |
4441 | |
4442 inline ::capnp::schema::ElementSize Node::Struct::Reader::getPreferredListEncoding() const { | |
4443 return _reader.getDataField< ::capnp::schema::ElementSize>( | |
4444 13 * ::capnp::ELEMENTS); | |
4445 } | |
4446 | |
4447 inline ::capnp::schema::ElementSize Node::Struct::Builder::getPreferredListEncoding() { | |
4448 return _builder.getDataField< ::capnp::schema::ElementSize>( | |
4449 13 * ::capnp::ELEMENTS); | |
4450 } | |
4451 inline void Node::Struct::Builder::setPreferredListEncoding( ::capnp::schema::ElementSize value) { | |
4452 _builder.setDataField< ::capnp::schema::ElementSize>( | |
4453 13 * ::capnp::ELEMENTS, value); | |
4454 } | |
4455 | |
4456 inline bool Node::Struct::Reader::getIsGroup() const { | |
4457 return _reader.getDataField<bool>( | |
4458 224 * ::capnp::ELEMENTS); | |
4459 } | |
4460 | |
4461 inline bool Node::Struct::Builder::getIsGroup() { | |
4462 return _builder.getDataField<bool>( | |
4463 224 * ::capnp::ELEMENTS); | |
4464 } | |
4465 inline void Node::Struct::Builder::setIsGroup(bool value) { | |
4466 _builder.setDataField<bool>( | |
4467 224 * ::capnp::ELEMENTS, value); | |
4468 } | |
4469 | |
4470 inline ::uint16_t Node::Struct::Reader::getDiscriminantCount() const { | |
4471 return _reader.getDataField< ::uint16_t>( | |
4472 15 * ::capnp::ELEMENTS); | |
4473 } | |
4474 | |
4475 inline ::uint16_t Node::Struct::Builder::getDiscriminantCount() { | |
4476 return _builder.getDataField< ::uint16_t>( | |
4477 15 * ::capnp::ELEMENTS); | |
4478 } | |
4479 inline void Node::Struct::Builder::setDiscriminantCount( ::uint16_t value) { | |
4480 _builder.setDataField< ::uint16_t>( | |
4481 15 * ::capnp::ELEMENTS, value); | |
4482 } | |
4483 | |
4484 inline ::uint32_t Node::Struct::Reader::getDiscriminantOffset() const { | |
4485 return _reader.getDataField< ::uint32_t>( | |
4486 8 * ::capnp::ELEMENTS); | |
4487 } | |
4488 | |
4489 inline ::uint32_t Node::Struct::Builder::getDiscriminantOffset() { | |
4490 return _builder.getDataField< ::uint32_t>( | |
4491 8 * ::capnp::ELEMENTS); | |
4492 } | |
4493 inline void Node::Struct::Builder::setDiscriminantOffset( ::uint32_t value) { | |
4494 _builder.setDataField< ::uint32_t>( | |
4495 8 * ::capnp::ELEMENTS, value); | |
4496 } | |
4497 | |
4498 inline bool Node::Struct::Reader::hasFields() const { | |
4499 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4500 } | |
4501 inline bool Node::Struct::Builder::hasFields() { | |
4502 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4503 } | |
4504 inline ::capnp::List< ::capnp::schema::Field>::Reader Node::Struct::Reader::getFields() const { | |
4505 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::get( | |
4506 _reader.getPointerField(3 * ::capnp::POINTERS)); | |
4507 } | |
4508 inline ::capnp::List< ::capnp::schema::Field>::Builder Node::Struct::Builder::getFields() { | |
4509 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::get( | |
4510 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4511 } | |
4512 inline void Node::Struct::Builder::setFields( ::capnp::List< ::capnp::schema::Field>::Reader value) { | |
4513 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::set( | |
4514 _builder.getPointerField(3 * ::capnp::POINTERS), value); | |
4515 } | |
4516 inline ::capnp::List< ::capnp::schema::Field>::Builder Node::Struct::Builder::initFields(unsigned int size) { | |
4517 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::init( | |
4518 _builder.getPointerField(3 * ::capnp::POINTERS), size); | |
4519 } | |
4520 inline void Node::Struct::Builder::adoptFields( | |
4521 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>>&& value) { | |
4522 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::adopt( | |
4523 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | |
4524 } | |
4525 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>> Node::Struct::Builder::disownFields() { | |
4526 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::disown( | |
4527 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4528 } | |
4529 | |
4530 inline bool Node::Enum::Reader::hasEnumerants() const { | |
4531 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4532 } | |
4533 inline bool Node::Enum::Builder::hasEnumerants() { | |
4534 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4535 } | |
4536 inline ::capnp::List< ::capnp::schema::Enumerant>::Reader Node::Enum::Reader::getEnumerants() const { | |
4537 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::get( | |
4538 _reader.getPointerField(3 * ::capnp::POINTERS)); | |
4539 } | |
4540 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder Node::Enum::Builder::getEnumerants() { | |
4541 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::get( | |
4542 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4543 } | |
4544 inline void Node::Enum::Builder::setEnumerants( ::capnp::List< ::capnp::schema::Enumerant>::Reader value) { | |
4545 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::set( | |
4546 _builder.getPointerField(3 * ::capnp::POINTERS), value); | |
4547 } | |
4548 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder Node::Enum::Builder::initEnumerants(unsigned int size) { | |
4549 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::init( | |
4550 _builder.getPointerField(3 * ::capnp::POINTERS), size); | |
4551 } | |
4552 inline void Node::Enum::Builder::adoptEnumerants( | |
4553 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>>&& value) { | |
4554 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::adopt( | |
4555 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | |
4556 } | |
4557 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>> Node::Enum::Builder::disownEnumerants() { | |
4558 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::disown( | |
4559 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4560 } | |
4561 | |
4562 inline bool Node::Interface::Reader::hasMethods() const { | |
4563 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4564 } | |
4565 inline bool Node::Interface::Builder::hasMethods() { | |
4566 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4567 } | |
4568 inline ::capnp::List< ::capnp::schema::Method>::Reader Node::Interface::Reader::getMethods() const { | |
4569 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::get( | |
4570 _reader.getPointerField(3 * ::capnp::POINTERS)); | |
4571 } | |
4572 inline ::capnp::List< ::capnp::schema::Method>::Builder Node::Interface::Builder::getMethods() { | |
4573 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::get( | |
4574 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4575 } | |
4576 inline void Node::Interface::Builder::setMethods( ::capnp::List< ::capnp::schema::Method>::Reader value) { | |
4577 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::set( | |
4578 _builder.getPointerField(3 * ::capnp::POINTERS), value); | |
4579 } | |
4580 inline ::capnp::List< ::capnp::schema::Method>::Builder Node::Interface::Builder::initMethods(unsigned int size) { | |
4581 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::init( | |
4582 _builder.getPointerField(3 * ::capnp::POINTERS), size); | |
4583 } | |
4584 inline void Node::Interface::Builder::adoptMethods( | |
4585 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>>&& value) { | |
4586 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::adopt( | |
4587 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | |
4588 } | |
4589 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>> Node::Interface::Builder::disownMethods() { | |
4590 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::disown( | |
4591 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4592 } | |
4593 | |
4594 inline bool Node::Interface::Reader::hasSuperclasses() const { | |
4595 return !_reader.getPointerField(4 * ::capnp::POINTERS).isNull(); | |
4596 } | |
4597 inline bool Node::Interface::Builder::hasSuperclasses() { | |
4598 return !_builder.getPointerField(4 * ::capnp::POINTERS).isNull(); | |
4599 } | |
4600 inline ::capnp::List< ::capnp::schema::Superclass>::Reader Node::Interface::Reader::getSuperclasses() const { | |
4601 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::get( | |
4602 _reader.getPointerField(4 * ::capnp::POINTERS)); | |
4603 } | |
4604 inline ::capnp::List< ::capnp::schema::Superclass>::Builder Node::Interface::Builder::getSuperclasses() { | |
4605 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::get( | |
4606 _builder.getPointerField(4 * ::capnp::POINTERS)); | |
4607 } | |
4608 inline void Node::Interface::Builder::setSuperclasses( ::capnp::List< ::capnp::schema::Superclass>::Reader value) { | |
4609 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::set( | |
4610 _builder.getPointerField(4 * ::capnp::POINTERS), value); | |
4611 } | |
4612 inline ::capnp::List< ::capnp::schema::Superclass>::Builder Node::Interface::Builder::initSuperclasses(unsigned int size) { | |
4613 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::init( | |
4614 _builder.getPointerField(4 * ::capnp::POINTERS), size); | |
4615 } | |
4616 inline void Node::Interface::Builder::adoptSuperclasses( | |
4617 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>>&& value) { | |
4618 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::adopt( | |
4619 _builder.getPointerField(4 * ::capnp::POINTERS), kj::mv(value)); | |
4620 } | |
4621 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>> Node::Interface::Builder::disownSuperclasses() { | |
4622 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::disown( | |
4623 _builder.getPointerField(4 * ::capnp::POINTERS)); | |
4624 } | |
4625 | |
4626 inline bool Node::Const::Reader::hasType() const { | |
4627 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4628 } | |
4629 inline bool Node::Const::Builder::hasType() { | |
4630 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4631 } | |
4632 inline ::capnp::schema::Type::Reader Node::Const::Reader::getType() const { | |
4633 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
4634 _reader.getPointerField(3 * ::capnp::POINTERS)); | |
4635 } | |
4636 inline ::capnp::schema::Type::Builder Node::Const::Builder::getType() { | |
4637 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
4638 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4639 } | |
4640 #if !CAPNP_LITE | |
4641 inline ::capnp::schema::Type::Pipeline Node::Const::Pipeline::getType() { | |
4642 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); | |
4643 } | |
4644 #endif // !CAPNP_LITE | |
4645 inline void Node::Const::Builder::setType( ::capnp::schema::Type::Reader value) { | |
4646 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | |
4647 _builder.getPointerField(3 * ::capnp::POINTERS), value); | |
4648 } | |
4649 inline ::capnp::schema::Type::Builder Node::Const::Builder::initType() { | |
4650 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | |
4651 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4652 } | |
4653 inline void Node::Const::Builder::adoptType( | |
4654 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | |
4655 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | |
4656 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | |
4657 } | |
4658 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Const::Builder::disownType() { | |
4659 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | |
4660 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4661 } | |
4662 | |
4663 inline bool Node::Const::Reader::hasValue() const { | |
4664 return !_reader.getPointerField(4 * ::capnp::POINTERS).isNull(); | |
4665 } | |
4666 inline bool Node::Const::Builder::hasValue() { | |
4667 return !_builder.getPointerField(4 * ::capnp::POINTERS).isNull(); | |
4668 } | |
4669 inline ::capnp::schema::Value::Reader Node::Const::Reader::getValue() const { | |
4670 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | |
4671 _reader.getPointerField(4 * ::capnp::POINTERS)); | |
4672 } | |
4673 inline ::capnp::schema::Value::Builder Node::Const::Builder::getValue() { | |
4674 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | |
4675 _builder.getPointerField(4 * ::capnp::POINTERS)); | |
4676 } | |
4677 #if !CAPNP_LITE | |
4678 inline ::capnp::schema::Value::Pipeline Node::Const::Pipeline::getValue() { | |
4679 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(4)); | |
4680 } | |
4681 #endif // !CAPNP_LITE | |
4682 inline void Node::Const::Builder::setValue( ::capnp::schema::Value::Reader value) { | |
4683 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set( | |
4684 _builder.getPointerField(4 * ::capnp::POINTERS), value); | |
4685 } | |
4686 inline ::capnp::schema::Value::Builder Node::Const::Builder::initValue() { | |
4687 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init( | |
4688 _builder.getPointerField(4 * ::capnp::POINTERS)); | |
4689 } | |
4690 inline void Node::Const::Builder::adoptValue( | |
4691 ::capnp::Orphan< ::capnp::schema::Value>&& value) { | |
4692 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt( | |
4693 _builder.getPointerField(4 * ::capnp::POINTERS), kj::mv(value)); | |
4694 } | |
4695 inline ::capnp::Orphan< ::capnp::schema::Value> Node::Const::Builder::disownValue() { | |
4696 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown( | |
4697 _builder.getPointerField(4 * ::capnp::POINTERS)); | |
4698 } | |
4699 | |
4700 inline bool Node::Annotation::Reader::hasType() const { | |
4701 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4702 } | |
4703 inline bool Node::Annotation::Builder::hasType() { | |
4704 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
4705 } | |
4706 inline ::capnp::schema::Type::Reader Node::Annotation::Reader::getType() const { | |
4707 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
4708 _reader.getPointerField(3 * ::capnp::POINTERS)); | |
4709 } | |
4710 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::getType() { | |
4711 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
4712 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4713 } | |
4714 #if !CAPNP_LITE | |
4715 inline ::capnp::schema::Type::Pipeline Node::Annotation::Pipeline::getType() { | |
4716 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); | |
4717 } | |
4718 #endif // !CAPNP_LITE | |
4719 inline void Node::Annotation::Builder::setType( ::capnp::schema::Type::Reader value) { | |
4720 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | |
4721 _builder.getPointerField(3 * ::capnp::POINTERS), value); | |
4722 } | |
4723 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::initType() { | |
4724 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | |
4725 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4726 } | |
4727 inline void Node::Annotation::Builder::adoptType( | |
4728 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | |
4729 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | |
4730 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | |
4731 } | |
4732 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Annotation::Builder::disownType() { | |
4733 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | |
4734 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
4735 } | |
4736 | |
4737 inline bool Node::Annotation::Reader::getTargetsFile() const { | |
4738 return _reader.getDataField<bool>( | |
4739 112 * ::capnp::ELEMENTS); | |
4740 } | |
4741 | |
4742 inline bool Node::Annotation::Builder::getTargetsFile() { | |
4743 return _builder.getDataField<bool>( | |
4744 112 * ::capnp::ELEMENTS); | |
4745 } | |
4746 inline void Node::Annotation::Builder::setTargetsFile(bool value) { | |
4747 _builder.setDataField<bool>( | |
4748 112 * ::capnp::ELEMENTS, value); | |
4749 } | |
4750 | |
4751 inline bool Node::Annotation::Reader::getTargetsConst() const { | |
4752 return _reader.getDataField<bool>( | |
4753 113 * ::capnp::ELEMENTS); | |
4754 } | |
4755 | |
4756 inline bool Node::Annotation::Builder::getTargetsConst() { | |
4757 return _builder.getDataField<bool>( | |
4758 113 * ::capnp::ELEMENTS); | |
4759 } | |
4760 inline void Node::Annotation::Builder::setTargetsConst(bool value) { | |
4761 _builder.setDataField<bool>( | |
4762 113 * ::capnp::ELEMENTS, value); | |
4763 } | |
4764 | |
4765 inline bool Node::Annotation::Reader::getTargetsEnum() const { | |
4766 return _reader.getDataField<bool>( | |
4767 114 * ::capnp::ELEMENTS); | |
4768 } | |
4769 | |
4770 inline bool Node::Annotation::Builder::getTargetsEnum() { | |
4771 return _builder.getDataField<bool>( | |
4772 114 * ::capnp::ELEMENTS); | |
4773 } | |
4774 inline void Node::Annotation::Builder::setTargetsEnum(bool value) { | |
4775 _builder.setDataField<bool>( | |
4776 114 * ::capnp::ELEMENTS, value); | |
4777 } | |
4778 | |
4779 inline bool Node::Annotation::Reader::getTargetsEnumerant() const { | |
4780 return _reader.getDataField<bool>( | |
4781 115 * ::capnp::ELEMENTS); | |
4782 } | |
4783 | |
4784 inline bool Node::Annotation::Builder::getTargetsEnumerant() { | |
4785 return _builder.getDataField<bool>( | |
4786 115 * ::capnp::ELEMENTS); | |
4787 } | |
4788 inline void Node::Annotation::Builder::setTargetsEnumerant(bool value) { | |
4789 _builder.setDataField<bool>( | |
4790 115 * ::capnp::ELEMENTS, value); | |
4791 } | |
4792 | |
4793 inline bool Node::Annotation::Reader::getTargetsStruct() const { | |
4794 return _reader.getDataField<bool>( | |
4795 116 * ::capnp::ELEMENTS); | |
4796 } | |
4797 | |
4798 inline bool Node::Annotation::Builder::getTargetsStruct() { | |
4799 return _builder.getDataField<bool>( | |
4800 116 * ::capnp::ELEMENTS); | |
4801 } | |
4802 inline void Node::Annotation::Builder::setTargetsStruct(bool value) { | |
4803 _builder.setDataField<bool>( | |
4804 116 * ::capnp::ELEMENTS, value); | |
4805 } | |
4806 | |
4807 inline bool Node::Annotation::Reader::getTargetsField() const { | |
4808 return _reader.getDataField<bool>( | |
4809 117 * ::capnp::ELEMENTS); | |
4810 } | |
4811 | |
4812 inline bool Node::Annotation::Builder::getTargetsField() { | |
4813 return _builder.getDataField<bool>( | |
4814 117 * ::capnp::ELEMENTS); | |
4815 } | |
4816 inline void Node::Annotation::Builder::setTargetsField(bool value) { | |
4817 _builder.setDataField<bool>( | |
4818 117 * ::capnp::ELEMENTS, value); | |
4819 } | |
4820 | |
4821 inline bool Node::Annotation::Reader::getTargetsUnion() const { | |
4822 return _reader.getDataField<bool>( | |
4823 118 * ::capnp::ELEMENTS); | |
4824 } | |
4825 | |
4826 inline bool Node::Annotation::Builder::getTargetsUnion() { | |
4827 return _builder.getDataField<bool>( | |
4828 118 * ::capnp::ELEMENTS); | |
4829 } | |
4830 inline void Node::Annotation::Builder::setTargetsUnion(bool value) { | |
4831 _builder.setDataField<bool>( | |
4832 118 * ::capnp::ELEMENTS, value); | |
4833 } | |
4834 | |
4835 inline bool Node::Annotation::Reader::getTargetsGroup() const { | |
4836 return _reader.getDataField<bool>( | |
4837 119 * ::capnp::ELEMENTS); | |
4838 } | |
4839 | |
4840 inline bool Node::Annotation::Builder::getTargetsGroup() { | |
4841 return _builder.getDataField<bool>( | |
4842 119 * ::capnp::ELEMENTS); | |
4843 } | |
4844 inline void Node::Annotation::Builder::setTargetsGroup(bool value) { | |
4845 _builder.setDataField<bool>( | |
4846 119 * ::capnp::ELEMENTS, value); | |
4847 } | |
4848 | |
4849 inline bool Node::Annotation::Reader::getTargetsInterface() const { | |
4850 return _reader.getDataField<bool>( | |
4851 120 * ::capnp::ELEMENTS); | |
4852 } | |
4853 | |
4854 inline bool Node::Annotation::Builder::getTargetsInterface() { | |
4855 return _builder.getDataField<bool>( | |
4856 120 * ::capnp::ELEMENTS); | |
4857 } | |
4858 inline void Node::Annotation::Builder::setTargetsInterface(bool value) { | |
4859 _builder.setDataField<bool>( | |
4860 120 * ::capnp::ELEMENTS, value); | |
4861 } | |
4862 | |
4863 inline bool Node::Annotation::Reader::getTargetsMethod() const { | |
4864 return _reader.getDataField<bool>( | |
4865 121 * ::capnp::ELEMENTS); | |
4866 } | |
4867 | |
4868 inline bool Node::Annotation::Builder::getTargetsMethod() { | |
4869 return _builder.getDataField<bool>( | |
4870 121 * ::capnp::ELEMENTS); | |
4871 } | |
4872 inline void Node::Annotation::Builder::setTargetsMethod(bool value) { | |
4873 _builder.setDataField<bool>( | |
4874 121 * ::capnp::ELEMENTS, value); | |
4875 } | |
4876 | |
4877 inline bool Node::Annotation::Reader::getTargetsParam() const { | |
4878 return _reader.getDataField<bool>( | |
4879 122 * ::capnp::ELEMENTS); | |
4880 } | |
4881 | |
4882 inline bool Node::Annotation::Builder::getTargetsParam() { | |
4883 return _builder.getDataField<bool>( | |
4884 122 * ::capnp::ELEMENTS); | |
4885 } | |
4886 inline void Node::Annotation::Builder::setTargetsParam(bool value) { | |
4887 _builder.setDataField<bool>( | |
4888 122 * ::capnp::ELEMENTS, value); | |
4889 } | |
4890 | |
4891 inline bool Node::Annotation::Reader::getTargetsAnnotation() const { | |
4892 return _reader.getDataField<bool>( | |
4893 123 * ::capnp::ELEMENTS); | |
4894 } | |
4895 | |
4896 inline bool Node::Annotation::Builder::getTargetsAnnotation() { | |
4897 return _builder.getDataField<bool>( | |
4898 123 * ::capnp::ELEMENTS); | |
4899 } | |
4900 inline void Node::Annotation::Builder::setTargetsAnnotation(bool value) { | |
4901 _builder.setDataField<bool>( | |
4902 123 * ::capnp::ELEMENTS, value); | |
4903 } | |
4904 | |
4905 inline ::capnp::schema::Field::Which Field::Reader::which() const { | |
4906 return _reader.getDataField<Which>(4 * ::capnp::ELEMENTS); | |
4907 } | |
4908 inline ::capnp::schema::Field::Which Field::Builder::which() { | |
4909 return _builder.getDataField<Which>(4 * ::capnp::ELEMENTS); | |
4910 } | |
4911 | |
4912 inline bool Field::Reader::hasName() const { | |
4913 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4914 } | |
4915 inline bool Field::Builder::hasName() { | |
4916 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
4917 } | |
4918 inline ::capnp::Text::Reader Field::Reader::getName() const { | |
4919 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4920 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
4921 } | |
4922 inline ::capnp::Text::Builder Field::Builder::getName() { | |
4923 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
4924 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4925 } | |
4926 inline void Field::Builder::setName( ::capnp::Text::Reader value) { | |
4927 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
4928 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
4929 } | |
4930 inline ::capnp::Text::Builder Field::Builder::initName(unsigned int size) { | |
4931 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
4932 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
4933 } | |
4934 inline void Field::Builder::adoptName( | |
4935 ::capnp::Orphan< ::capnp::Text>&& value) { | |
4936 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
4937 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
4938 } | |
4939 inline ::capnp::Orphan< ::capnp::Text> Field::Builder::disownName() { | |
4940 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
4941 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
4942 } | |
4943 | |
4944 inline ::uint16_t Field::Reader::getCodeOrder() const { | |
4945 return _reader.getDataField< ::uint16_t>( | |
4946 0 * ::capnp::ELEMENTS); | |
4947 } | |
4948 | |
4949 inline ::uint16_t Field::Builder::getCodeOrder() { | |
4950 return _builder.getDataField< ::uint16_t>( | |
4951 0 * ::capnp::ELEMENTS); | |
4952 } | |
4953 inline void Field::Builder::setCodeOrder( ::uint16_t value) { | |
4954 _builder.setDataField< ::uint16_t>( | |
4955 0 * ::capnp::ELEMENTS, value); | |
4956 } | |
4957 | |
4958 inline bool Field::Reader::hasAnnotations() const { | |
4959 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
4960 } | |
4961 inline bool Field::Builder::hasAnnotations() { | |
4962 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
4963 } | |
4964 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Field::Reader::getAnnotations() const { | |
4965 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
4966 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
4967 } | |
4968 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Field::Builder::getAnnotations() { | |
4969 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
4970 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
4971 } | |
4972 inline void Field::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | |
4973 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | |
4974 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
4975 } | |
4976 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Field::Builder::initAnnotations(unsigned int size) { | |
4977 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | |
4978 _builder.getPointerField(1 * ::capnp::POINTERS), size); | |
4979 } | |
4980 inline void Field::Builder::adoptAnnotations( | |
4981 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | |
4982 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | |
4983 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
4984 } | |
4985 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Field::Builder::disownAnnotations() { | |
4986 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | |
4987 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
4988 } | |
4989 | |
4990 inline ::uint16_t Field::Reader::getDiscriminantValue() const { | |
4991 return _reader.getDataField< ::uint16_t>( | |
4992 1 * ::capnp::ELEMENTS, 65535u); | |
4993 } | |
4994 | |
4995 inline ::uint16_t Field::Builder::getDiscriminantValue() { | |
4996 return _builder.getDataField< ::uint16_t>( | |
4997 1 * ::capnp::ELEMENTS, 65535u); | |
4998 } | |
4999 inline void Field::Builder::setDiscriminantValue( ::uint16_t value) { | |
5000 _builder.setDataField< ::uint16_t>( | |
5001 1 * ::capnp::ELEMENTS, value, 65535u); | |
5002 } | |
5003 | |
5004 inline bool Field::Reader::isSlot() const { | |
5005 return which() == Field::SLOT; | |
5006 } | |
5007 inline bool Field::Builder::isSlot() { | |
5008 return which() == Field::SLOT; | |
5009 } | |
5010 inline typename Field::Slot::Reader Field::Reader::getSlot() const { | |
5011 KJ_IREQUIRE((which() == Field::SLOT), | |
5012 "Must check which() before get()ing a union member."); | |
5013 return typename Field::Slot::Reader(_reader); | |
5014 } | |
5015 inline typename Field::Slot::Builder Field::Builder::getSlot() { | |
5016 KJ_IREQUIRE((which() == Field::SLOT), | |
5017 "Must check which() before get()ing a union member."); | |
5018 return typename Field::Slot::Builder(_builder); | |
5019 } | |
5020 inline typename Field::Slot::Builder Field::Builder::initSlot() { | |
5021 _builder.setDataField<Field::Which>( | |
5022 4 * ::capnp::ELEMENTS, Field::SLOT); | |
5023 _builder.setDataField< ::uint32_t>(1 * ::capnp::ELEMENTS, 0); | |
5024 _builder.setDataField<bool>(128 * ::capnp::ELEMENTS, 0); | |
5025 _builder.getPointerField(2 * ::capnp::POINTERS).clear(); | |
5026 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | |
5027 return typename Field::Slot::Builder(_builder); | |
5028 } | |
5029 inline bool Field::Reader::isGroup() const { | |
5030 return which() == Field::GROUP; | |
5031 } | |
5032 inline bool Field::Builder::isGroup() { | |
5033 return which() == Field::GROUP; | |
5034 } | |
5035 inline typename Field::Group::Reader Field::Reader::getGroup() const { | |
5036 KJ_IREQUIRE((which() == Field::GROUP), | |
5037 "Must check which() before get()ing a union member."); | |
5038 return typename Field::Group::Reader(_reader); | |
5039 } | |
5040 inline typename Field::Group::Builder Field::Builder::getGroup() { | |
5041 KJ_IREQUIRE((which() == Field::GROUP), | |
5042 "Must check which() before get()ing a union member."); | |
5043 return typename Field::Group::Builder(_builder); | |
5044 } | |
5045 inline typename Field::Group::Builder Field::Builder::initGroup() { | |
5046 _builder.setDataField<Field::Which>( | |
5047 4 * ::capnp::ELEMENTS, Field::GROUP); | |
5048 _builder.setDataField< ::uint64_t>(2 * ::capnp::ELEMENTS, 0); | |
5049 return typename Field::Group::Builder(_builder); | |
5050 } | |
5051 inline typename Field::Ordinal::Reader Field::Reader::getOrdinal() const { | |
5052 return typename Field::Ordinal::Reader(_reader); | |
5053 } | |
5054 inline typename Field::Ordinal::Builder Field::Builder::getOrdinal() { | |
5055 return typename Field::Ordinal::Builder(_builder); | |
5056 } | |
5057 #if !CAPNP_LITE | |
5058 inline typename Field::Ordinal::Pipeline Field::Pipeline::getOrdinal() { | |
5059 return typename Field::Ordinal::Pipeline(_typeless.noop()); | |
5060 } | |
5061 #endif // !CAPNP_LITE | |
5062 inline typename Field::Ordinal::Builder Field::Builder::initOrdinal() { | |
5063 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | |
5064 _builder.setDataField< ::uint16_t>(6 * ::capnp::ELEMENTS, 0); | |
5065 return typename Field::Ordinal::Builder(_builder); | |
5066 } | |
5067 inline ::uint32_t Field::Slot::Reader::getOffset() const { | |
5068 return _reader.getDataField< ::uint32_t>( | |
5069 1 * ::capnp::ELEMENTS); | |
5070 } | |
5071 | |
5072 inline ::uint32_t Field::Slot::Builder::getOffset() { | |
5073 return _builder.getDataField< ::uint32_t>( | |
5074 1 * ::capnp::ELEMENTS); | |
5075 } | |
5076 inline void Field::Slot::Builder::setOffset( ::uint32_t value) { | |
5077 _builder.setDataField< ::uint32_t>( | |
5078 1 * ::capnp::ELEMENTS, value); | |
5079 } | |
5080 | |
5081 inline bool Field::Slot::Reader::hasType() const { | |
5082 return !_reader.getPointerField(2 * ::capnp::POINTERS).isNull(); | |
5083 } | |
5084 inline bool Field::Slot::Builder::hasType() { | |
5085 return !_builder.getPointerField(2 * ::capnp::POINTERS).isNull(); | |
5086 } | |
5087 inline ::capnp::schema::Type::Reader Field::Slot::Reader::getType() const { | |
5088 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
5089 _reader.getPointerField(2 * ::capnp::POINTERS)); | |
5090 } | |
5091 inline ::capnp::schema::Type::Builder Field::Slot::Builder::getType() { | |
5092 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
5093 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
5094 } | |
5095 #if !CAPNP_LITE | |
5096 inline ::capnp::schema::Type::Pipeline Field::Slot::Pipeline::getType() { | |
5097 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(2)); | |
5098 } | |
5099 #endif // !CAPNP_LITE | |
5100 inline void Field::Slot::Builder::setType( ::capnp::schema::Type::Reader value) { | |
5101 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | |
5102 _builder.getPointerField(2 * ::capnp::POINTERS), value); | |
5103 } | |
5104 inline ::capnp::schema::Type::Builder Field::Slot::Builder::initType() { | |
5105 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | |
5106 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
5107 } | |
5108 inline void Field::Slot::Builder::adoptType( | |
5109 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | |
5110 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | |
5111 _builder.getPointerField(2 * ::capnp::POINTERS), kj::mv(value)); | |
5112 } | |
5113 inline ::capnp::Orphan< ::capnp::schema::Type> Field::Slot::Builder::disownType() { | |
5114 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | |
5115 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
5116 } | |
5117 | |
5118 inline bool Field::Slot::Reader::hasDefaultValue() const { | |
5119 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
5120 } | |
5121 inline bool Field::Slot::Builder::hasDefaultValue() { | |
5122 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
5123 } | |
5124 inline ::capnp::schema::Value::Reader Field::Slot::Reader::getDefaultValue() const { | |
5125 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | |
5126 _reader.getPointerField(3 * ::capnp::POINTERS)); | |
5127 } | |
5128 inline ::capnp::schema::Value::Builder Field::Slot::Builder::getDefaultValue() { | |
5129 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | |
5130 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
5131 } | |
5132 #if !CAPNP_LITE | |
5133 inline ::capnp::schema::Value::Pipeline Field::Slot::Pipeline::getDefaultValue() { | |
5134 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(3)); | |
5135 } | |
5136 #endif // !CAPNP_LITE | |
5137 inline void Field::Slot::Builder::setDefaultValue( ::capnp::schema::Value::Reader value) { | |
5138 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set( | |
5139 _builder.getPointerField(3 * ::capnp::POINTERS), value); | |
5140 } | |
5141 inline ::capnp::schema::Value::Builder Field::Slot::Builder::initDefaultValue() { | |
5142 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init( | |
5143 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
5144 } | |
5145 inline void Field::Slot::Builder::adoptDefaultValue( | |
5146 ::capnp::Orphan< ::capnp::schema::Value>&& value) { | |
5147 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt( | |
5148 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | |
5149 } | |
5150 inline ::capnp::Orphan< ::capnp::schema::Value> Field::Slot::Builder::disownDefaultValue() { | |
5151 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown( | |
5152 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
5153 } | |
5154 | |
5155 inline bool Field::Slot::Reader::getHadExplicitDefault() const { | |
5156 return _reader.getDataField<bool>( | |
5157 128 * ::capnp::ELEMENTS); | |
5158 } | |
5159 | |
5160 inline bool Field::Slot::Builder::getHadExplicitDefault() { | |
5161 return _builder.getDataField<bool>( | |
5162 128 * ::capnp::ELEMENTS); | |
5163 } | |
5164 inline void Field::Slot::Builder::setHadExplicitDefault(bool value) { | |
5165 _builder.setDataField<bool>( | |
5166 128 * ::capnp::ELEMENTS, value); | |
5167 } | |
5168 | |
5169 inline ::uint64_t Field::Group::Reader::getTypeId() const { | |
5170 return _reader.getDataField< ::uint64_t>( | |
5171 2 * ::capnp::ELEMENTS); | |
5172 } | |
5173 | |
5174 inline ::uint64_t Field::Group::Builder::getTypeId() { | |
5175 return _builder.getDataField< ::uint64_t>( | |
5176 2 * ::capnp::ELEMENTS); | |
5177 } | |
5178 inline void Field::Group::Builder::setTypeId( ::uint64_t value) { | |
5179 _builder.setDataField< ::uint64_t>( | |
5180 2 * ::capnp::ELEMENTS, value); | |
5181 } | |
5182 | |
5183 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Reader::which() const { | |
5184 return _reader.getDataField<Which>(5 * ::capnp::ELEMENTS); | |
5185 } | |
5186 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Builder::which() { | |
5187 return _builder.getDataField<Which>(5 * ::capnp::ELEMENTS); | |
5188 } | |
5189 | |
5190 inline bool Field::Ordinal::Reader::isImplicit() const { | |
5191 return which() == Field::Ordinal::IMPLICIT; | |
5192 } | |
5193 inline bool Field::Ordinal::Builder::isImplicit() { | |
5194 return which() == Field::Ordinal::IMPLICIT; | |
5195 } | |
5196 inline ::capnp::Void Field::Ordinal::Reader::getImplicit() const { | |
5197 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), | |
5198 "Must check which() before get()ing a union member."); | |
5199 return _reader.getDataField< ::capnp::Void>( | |
5200 0 * ::capnp::ELEMENTS); | |
5201 } | |
5202 | |
5203 inline ::capnp::Void Field::Ordinal::Builder::getImplicit() { | |
5204 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), | |
5205 "Must check which() before get()ing a union member."); | |
5206 return _builder.getDataField< ::capnp::Void>( | |
5207 0 * ::capnp::ELEMENTS); | |
5208 } | |
5209 inline void Field::Ordinal::Builder::setImplicit( ::capnp::Void value) { | |
5210 _builder.setDataField<Field::Ordinal::Which>( | |
5211 5 * ::capnp::ELEMENTS, Field::Ordinal::IMPLICIT); | |
5212 _builder.setDataField< ::capnp::Void>( | |
5213 0 * ::capnp::ELEMENTS, value); | |
5214 } | |
5215 | |
5216 inline bool Field::Ordinal::Reader::isExplicit() const { | |
5217 return which() == Field::Ordinal::EXPLICIT; | |
5218 } | |
5219 inline bool Field::Ordinal::Builder::isExplicit() { | |
5220 return which() == Field::Ordinal::EXPLICIT; | |
5221 } | |
5222 inline ::uint16_t Field::Ordinal::Reader::getExplicit() const { | |
5223 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), | |
5224 "Must check which() before get()ing a union member."); | |
5225 return _reader.getDataField< ::uint16_t>( | |
5226 6 * ::capnp::ELEMENTS); | |
5227 } | |
5228 | |
5229 inline ::uint16_t Field::Ordinal::Builder::getExplicit() { | |
5230 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), | |
5231 "Must check which() before get()ing a union member."); | |
5232 return _builder.getDataField< ::uint16_t>( | |
5233 6 * ::capnp::ELEMENTS); | |
5234 } | |
5235 inline void Field::Ordinal::Builder::setExplicit( ::uint16_t value) { | |
5236 _builder.setDataField<Field::Ordinal::Which>( | |
5237 5 * ::capnp::ELEMENTS, Field::Ordinal::EXPLICIT); | |
5238 _builder.setDataField< ::uint16_t>( | |
5239 6 * ::capnp::ELEMENTS, value); | |
5240 } | |
5241 | |
5242 inline bool Enumerant::Reader::hasName() const { | |
5243 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
5244 } | |
5245 inline bool Enumerant::Builder::hasName() { | |
5246 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
5247 } | |
5248 inline ::capnp::Text::Reader Enumerant::Reader::getName() const { | |
5249 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
5250 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
5251 } | |
5252 inline ::capnp::Text::Builder Enumerant::Builder::getName() { | |
5253 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
5254 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
5255 } | |
5256 inline void Enumerant::Builder::setName( ::capnp::Text::Reader value) { | |
5257 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
5258 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
5259 } | |
5260 inline ::capnp::Text::Builder Enumerant::Builder::initName(unsigned int size) { | |
5261 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
5262 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
5263 } | |
5264 inline void Enumerant::Builder::adoptName( | |
5265 ::capnp::Orphan< ::capnp::Text>&& value) { | |
5266 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
5267 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
5268 } | |
5269 inline ::capnp::Orphan< ::capnp::Text> Enumerant::Builder::disownName() { | |
5270 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
5271 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
5272 } | |
5273 | |
5274 inline ::uint16_t Enumerant::Reader::getCodeOrder() const { | |
5275 return _reader.getDataField< ::uint16_t>( | |
5276 0 * ::capnp::ELEMENTS); | |
5277 } | |
5278 | |
5279 inline ::uint16_t Enumerant::Builder::getCodeOrder() { | |
5280 return _builder.getDataField< ::uint16_t>( | |
5281 0 * ::capnp::ELEMENTS); | |
5282 } | |
5283 inline void Enumerant::Builder::setCodeOrder( ::uint16_t value) { | |
5284 _builder.setDataField< ::uint16_t>( | |
5285 0 * ::capnp::ELEMENTS, value); | |
5286 } | |
5287 | |
5288 inline bool Enumerant::Reader::hasAnnotations() const { | |
5289 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
5290 } | |
5291 inline bool Enumerant::Builder::hasAnnotations() { | |
5292 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
5293 } | |
5294 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Enumerant::Reader::getAnnotations() const { | |
5295 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
5296 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
5297 } | |
5298 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Enumerant::Builder::getAnnotations() { | |
5299 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
5300 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
5301 } | |
5302 inline void Enumerant::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | |
5303 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | |
5304 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
5305 } | |
5306 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Enumerant::Builder::initAnnotations(unsigned int size) { | |
5307 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | |
5308 _builder.getPointerField(1 * ::capnp::POINTERS), size); | |
5309 } | |
5310 inline void Enumerant::Builder::adoptAnnotations( | |
5311 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | |
5312 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | |
5313 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
5314 } | |
5315 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Enumerant::Builder::disownAnnotations() { | |
5316 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | |
5317 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
5318 } | |
5319 | |
5320 inline ::uint64_t Superclass::Reader::getId() const { | |
5321 return _reader.getDataField< ::uint64_t>( | |
5322 0 * ::capnp::ELEMENTS); | |
5323 } | |
5324 | |
5325 inline ::uint64_t Superclass::Builder::getId() { | |
5326 return _builder.getDataField< ::uint64_t>( | |
5327 0 * ::capnp::ELEMENTS); | |
5328 } | |
5329 inline void Superclass::Builder::setId( ::uint64_t value) { | |
5330 _builder.setDataField< ::uint64_t>( | |
5331 0 * ::capnp::ELEMENTS, value); | |
5332 } | |
5333 | |
5334 inline bool Superclass::Reader::hasBrand() const { | |
5335 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
5336 } | |
5337 inline bool Superclass::Builder::hasBrand() { | |
5338 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
5339 } | |
5340 inline ::capnp::schema::Brand::Reader Superclass::Reader::getBrand() const { | |
5341 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
5342 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
5343 } | |
5344 inline ::capnp::schema::Brand::Builder Superclass::Builder::getBrand() { | |
5345 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
5346 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
5347 } | |
5348 #if !CAPNP_LITE | |
5349 inline ::capnp::schema::Brand::Pipeline Superclass::Pipeline::getBrand() { | |
5350 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | |
5351 } | |
5352 #endif // !CAPNP_LITE | |
5353 inline void Superclass::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | |
5354 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | |
5355 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
5356 } | |
5357 inline ::capnp::schema::Brand::Builder Superclass::Builder::initBrand() { | |
5358 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | |
5359 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
5360 } | |
5361 inline void Superclass::Builder::adoptBrand( | |
5362 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | |
5363 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | |
5364 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
5365 } | |
5366 inline ::capnp::Orphan< ::capnp::schema::Brand> Superclass::Builder::disownBrand() { | |
5367 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | |
5368 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
5369 } | |
5370 | |
5371 inline bool Method::Reader::hasName() const { | |
5372 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
5373 } | |
5374 inline bool Method::Builder::hasName() { | |
5375 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
5376 } | |
5377 inline ::capnp::Text::Reader Method::Reader::getName() const { | |
5378 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
5379 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
5380 } | |
5381 inline ::capnp::Text::Builder Method::Builder::getName() { | |
5382 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
5383 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
5384 } | |
5385 inline void Method::Builder::setName( ::capnp::Text::Reader value) { | |
5386 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
5387 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
5388 } | |
5389 inline ::capnp::Text::Builder Method::Builder::initName(unsigned int size) { | |
5390 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
5391 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
5392 } | |
5393 inline void Method::Builder::adoptName( | |
5394 ::capnp::Orphan< ::capnp::Text>&& value) { | |
5395 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
5396 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
5397 } | |
5398 inline ::capnp::Orphan< ::capnp::Text> Method::Builder::disownName() { | |
5399 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
5400 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
5401 } | |
5402 | |
5403 inline ::uint16_t Method::Reader::getCodeOrder() const { | |
5404 return _reader.getDataField< ::uint16_t>( | |
5405 0 * ::capnp::ELEMENTS); | |
5406 } | |
5407 | |
5408 inline ::uint16_t Method::Builder::getCodeOrder() { | |
5409 return _builder.getDataField< ::uint16_t>( | |
5410 0 * ::capnp::ELEMENTS); | |
5411 } | |
5412 inline void Method::Builder::setCodeOrder( ::uint16_t value) { | |
5413 _builder.setDataField< ::uint16_t>( | |
5414 0 * ::capnp::ELEMENTS, value); | |
5415 } | |
5416 | |
5417 inline ::uint64_t Method::Reader::getParamStructType() const { | |
5418 return _reader.getDataField< ::uint64_t>( | |
5419 1 * ::capnp::ELEMENTS); | |
5420 } | |
5421 | |
5422 inline ::uint64_t Method::Builder::getParamStructType() { | |
5423 return _builder.getDataField< ::uint64_t>( | |
5424 1 * ::capnp::ELEMENTS); | |
5425 } | |
5426 inline void Method::Builder::setParamStructType( ::uint64_t value) { | |
5427 _builder.setDataField< ::uint64_t>( | |
5428 1 * ::capnp::ELEMENTS, value); | |
5429 } | |
5430 | |
5431 inline ::uint64_t Method::Reader::getResultStructType() const { | |
5432 return _reader.getDataField< ::uint64_t>( | |
5433 2 * ::capnp::ELEMENTS); | |
5434 } | |
5435 | |
5436 inline ::uint64_t Method::Builder::getResultStructType() { | |
5437 return _builder.getDataField< ::uint64_t>( | |
5438 2 * ::capnp::ELEMENTS); | |
5439 } | |
5440 inline void Method::Builder::setResultStructType( ::uint64_t value) { | |
5441 _builder.setDataField< ::uint64_t>( | |
5442 2 * ::capnp::ELEMENTS, value); | |
5443 } | |
5444 | |
5445 inline bool Method::Reader::hasAnnotations() const { | |
5446 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
5447 } | |
5448 inline bool Method::Builder::hasAnnotations() { | |
5449 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
5450 } | |
5451 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Method::Reader::getAnnotations() const { | |
5452 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
5453 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
5454 } | |
5455 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Method::Builder::getAnnotations() { | |
5456 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | |
5457 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
5458 } | |
5459 inline void Method::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | |
5460 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | |
5461 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
5462 } | |
5463 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Method::Builder::initAnnotations(unsigned int size) { | |
5464 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | |
5465 _builder.getPointerField(1 * ::capnp::POINTERS), size); | |
5466 } | |
5467 inline void Method::Builder::adoptAnnotations( | |
5468 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | |
5469 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | |
5470 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
5471 } | |
5472 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Method::Builder::disownAnnotations() { | |
5473 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | |
5474 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
5475 } | |
5476 | |
5477 inline bool Method::Reader::hasParamBrand() const { | |
5478 return !_reader.getPointerField(2 * ::capnp::POINTERS).isNull(); | |
5479 } | |
5480 inline bool Method::Builder::hasParamBrand() { | |
5481 return !_builder.getPointerField(2 * ::capnp::POINTERS).isNull(); | |
5482 } | |
5483 inline ::capnp::schema::Brand::Reader Method::Reader::getParamBrand() const { | |
5484 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
5485 _reader.getPointerField(2 * ::capnp::POINTERS)); | |
5486 } | |
5487 inline ::capnp::schema::Brand::Builder Method::Builder::getParamBrand() { | |
5488 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
5489 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
5490 } | |
5491 #if !CAPNP_LITE | |
5492 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getParamBrand() { | |
5493 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(2)); | |
5494 } | |
5495 #endif // !CAPNP_LITE | |
5496 inline void Method::Builder::setParamBrand( ::capnp::schema::Brand::Reader value) { | |
5497 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | |
5498 _builder.getPointerField(2 * ::capnp::POINTERS), value); | |
5499 } | |
5500 inline ::capnp::schema::Brand::Builder Method::Builder::initParamBrand() { | |
5501 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | |
5502 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
5503 } | |
5504 inline void Method::Builder::adoptParamBrand( | |
5505 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | |
5506 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | |
5507 _builder.getPointerField(2 * ::capnp::POINTERS), kj::mv(value)); | |
5508 } | |
5509 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownParamBrand() { | |
5510 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | |
5511 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
5512 } | |
5513 | |
5514 inline bool Method::Reader::hasResultBrand() const { | |
5515 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
5516 } | |
5517 inline bool Method::Builder::hasResultBrand() { | |
5518 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | |
5519 } | |
5520 inline ::capnp::schema::Brand::Reader Method::Reader::getResultBrand() const { | |
5521 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
5522 _reader.getPointerField(3 * ::capnp::POINTERS)); | |
5523 } | |
5524 inline ::capnp::schema::Brand::Builder Method::Builder::getResultBrand() { | |
5525 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
5526 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
5527 } | |
5528 #if !CAPNP_LITE | |
5529 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getResultBrand() { | |
5530 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(3)); | |
5531 } | |
5532 #endif // !CAPNP_LITE | |
5533 inline void Method::Builder::setResultBrand( ::capnp::schema::Brand::Reader value) { | |
5534 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | |
5535 _builder.getPointerField(3 * ::capnp::POINTERS), value); | |
5536 } | |
5537 inline ::capnp::schema::Brand::Builder Method::Builder::initResultBrand() { | |
5538 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | |
5539 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
5540 } | |
5541 inline void Method::Builder::adoptResultBrand( | |
5542 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | |
5543 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | |
5544 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | |
5545 } | |
5546 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownResultBrand() { | |
5547 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | |
5548 _builder.getPointerField(3 * ::capnp::POINTERS)); | |
5549 } | |
5550 | |
5551 inline bool Method::Reader::hasImplicitParameters() const { | |
5552 return !_reader.getPointerField(4 * ::capnp::POINTERS).isNull(); | |
5553 } | |
5554 inline bool Method::Builder::hasImplicitParameters() { | |
5555 return !_builder.getPointerField(4 * ::capnp::POINTERS).isNull(); | |
5556 } | |
5557 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader Method::Reader::getImplicitParameters() const { | |
5558 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | |
5559 _reader.getPointerField(4 * ::capnp::POINTERS)); | |
5560 } | |
5561 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Method::Builder::getImplicitParameters() { | |
5562 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | |
5563 _builder.getPointerField(4 * ::capnp::POINTERS)); | |
5564 } | |
5565 inline void Method::Builder::setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value) { | |
5566 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::set( | |
5567 _builder.getPointerField(4 * ::capnp::POINTERS), value); | |
5568 } | |
5569 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Method::Builder::initImplicitParameters(unsigned int size) { | |
5570 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::init( | |
5571 _builder.getPointerField(4 * ::capnp::POINTERS), size); | |
5572 } | |
5573 inline void Method::Builder::adoptImplicitParameters( | |
5574 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value) { | |
5575 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::adopt( | |
5576 _builder.getPointerField(4 * ::capnp::POINTERS), kj::mv(value)); | |
5577 } | |
5578 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> Method::Builder::disownImplicitParameters() { | |
5579 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::disown( | |
5580 _builder.getPointerField(4 * ::capnp::POINTERS)); | |
5581 } | |
5582 | |
5583 inline ::capnp::schema::Type::Which Type::Reader::which() const { | |
5584 return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS); | |
5585 } | |
5586 inline ::capnp::schema::Type::Which Type::Builder::which() { | |
5587 return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS); | |
5588 } | |
5589 | |
5590 inline bool Type::Reader::isVoid() const { | |
5591 return which() == Type::VOID; | |
5592 } | |
5593 inline bool Type::Builder::isVoid() { | |
5594 return which() == Type::VOID; | |
5595 } | |
5596 inline ::capnp::Void Type::Reader::getVoid() const { | |
5597 KJ_IREQUIRE((which() == Type::VOID), | |
5598 "Must check which() before get()ing a union member."); | |
5599 return _reader.getDataField< ::capnp::Void>( | |
5600 0 * ::capnp::ELEMENTS); | |
5601 } | |
5602 | |
5603 inline ::capnp::Void Type::Builder::getVoid() { | |
5604 KJ_IREQUIRE((which() == Type::VOID), | |
5605 "Must check which() before get()ing a union member."); | |
5606 return _builder.getDataField< ::capnp::Void>( | |
5607 0 * ::capnp::ELEMENTS); | |
5608 } | |
5609 inline void Type::Builder::setVoid( ::capnp::Void value) { | |
5610 _builder.setDataField<Type::Which>( | |
5611 0 * ::capnp::ELEMENTS, Type::VOID); | |
5612 _builder.setDataField< ::capnp::Void>( | |
5613 0 * ::capnp::ELEMENTS, value); | |
5614 } | |
5615 | |
5616 inline bool Type::Reader::isBool() const { | |
5617 return which() == Type::BOOL; | |
5618 } | |
5619 inline bool Type::Builder::isBool() { | |
5620 return which() == Type::BOOL; | |
5621 } | |
5622 inline ::capnp::Void Type::Reader::getBool() const { | |
5623 KJ_IREQUIRE((which() == Type::BOOL), | |
5624 "Must check which() before get()ing a union member."); | |
5625 return _reader.getDataField< ::capnp::Void>( | |
5626 0 * ::capnp::ELEMENTS); | |
5627 } | |
5628 | |
5629 inline ::capnp::Void Type::Builder::getBool() { | |
5630 KJ_IREQUIRE((which() == Type::BOOL), | |
5631 "Must check which() before get()ing a union member."); | |
5632 return _builder.getDataField< ::capnp::Void>( | |
5633 0 * ::capnp::ELEMENTS); | |
5634 } | |
5635 inline void Type::Builder::setBool( ::capnp::Void value) { | |
5636 _builder.setDataField<Type::Which>( | |
5637 0 * ::capnp::ELEMENTS, Type::BOOL); | |
5638 _builder.setDataField< ::capnp::Void>( | |
5639 0 * ::capnp::ELEMENTS, value); | |
5640 } | |
5641 | |
5642 inline bool Type::Reader::isInt8() const { | |
5643 return which() == Type::INT8; | |
5644 } | |
5645 inline bool Type::Builder::isInt8() { | |
5646 return which() == Type::INT8; | |
5647 } | |
5648 inline ::capnp::Void Type::Reader::getInt8() const { | |
5649 KJ_IREQUIRE((which() == Type::INT8), | |
5650 "Must check which() before get()ing a union member."); | |
5651 return _reader.getDataField< ::capnp::Void>( | |
5652 0 * ::capnp::ELEMENTS); | |
5653 } | |
5654 | |
5655 inline ::capnp::Void Type::Builder::getInt8() { | |
5656 KJ_IREQUIRE((which() == Type::INT8), | |
5657 "Must check which() before get()ing a union member."); | |
5658 return _builder.getDataField< ::capnp::Void>( | |
5659 0 * ::capnp::ELEMENTS); | |
5660 } | |
5661 inline void Type::Builder::setInt8( ::capnp::Void value) { | |
5662 _builder.setDataField<Type::Which>( | |
5663 0 * ::capnp::ELEMENTS, Type::INT8); | |
5664 _builder.setDataField< ::capnp::Void>( | |
5665 0 * ::capnp::ELEMENTS, value); | |
5666 } | |
5667 | |
5668 inline bool Type::Reader::isInt16() const { | |
5669 return which() == Type::INT16; | |
5670 } | |
5671 inline bool Type::Builder::isInt16() { | |
5672 return which() == Type::INT16; | |
5673 } | |
5674 inline ::capnp::Void Type::Reader::getInt16() const { | |
5675 KJ_IREQUIRE((which() == Type::INT16), | |
5676 "Must check which() before get()ing a union member."); | |
5677 return _reader.getDataField< ::capnp::Void>( | |
5678 0 * ::capnp::ELEMENTS); | |
5679 } | |
5680 | |
5681 inline ::capnp::Void Type::Builder::getInt16() { | |
5682 KJ_IREQUIRE((which() == Type::INT16), | |
5683 "Must check which() before get()ing a union member."); | |
5684 return _builder.getDataField< ::capnp::Void>( | |
5685 0 * ::capnp::ELEMENTS); | |
5686 } | |
5687 inline void Type::Builder::setInt16( ::capnp::Void value) { | |
5688 _builder.setDataField<Type::Which>( | |
5689 0 * ::capnp::ELEMENTS, Type::INT16); | |
5690 _builder.setDataField< ::capnp::Void>( | |
5691 0 * ::capnp::ELEMENTS, value); | |
5692 } | |
5693 | |
5694 inline bool Type::Reader::isInt32() const { | |
5695 return which() == Type::INT32; | |
5696 } | |
5697 inline bool Type::Builder::isInt32() { | |
5698 return which() == Type::INT32; | |
5699 } | |
5700 inline ::capnp::Void Type::Reader::getInt32() const { | |
5701 KJ_IREQUIRE((which() == Type::INT32), | |
5702 "Must check which() before get()ing a union member."); | |
5703 return _reader.getDataField< ::capnp::Void>( | |
5704 0 * ::capnp::ELEMENTS); | |
5705 } | |
5706 | |
5707 inline ::capnp::Void Type::Builder::getInt32() { | |
5708 KJ_IREQUIRE((which() == Type::INT32), | |
5709 "Must check which() before get()ing a union member."); | |
5710 return _builder.getDataField< ::capnp::Void>( | |
5711 0 * ::capnp::ELEMENTS); | |
5712 } | |
5713 inline void Type::Builder::setInt32( ::capnp::Void value) { | |
5714 _builder.setDataField<Type::Which>( | |
5715 0 * ::capnp::ELEMENTS, Type::INT32); | |
5716 _builder.setDataField< ::capnp::Void>( | |
5717 0 * ::capnp::ELEMENTS, value); | |
5718 } | |
5719 | |
5720 inline bool Type::Reader::isInt64() const { | |
5721 return which() == Type::INT64; | |
5722 } | |
5723 inline bool Type::Builder::isInt64() { | |
5724 return which() == Type::INT64; | |
5725 } | |
5726 inline ::capnp::Void Type::Reader::getInt64() const { | |
5727 KJ_IREQUIRE((which() == Type::INT64), | |
5728 "Must check which() before get()ing a union member."); | |
5729 return _reader.getDataField< ::capnp::Void>( | |
5730 0 * ::capnp::ELEMENTS); | |
5731 } | |
5732 | |
5733 inline ::capnp::Void Type::Builder::getInt64() { | |
5734 KJ_IREQUIRE((which() == Type::INT64), | |
5735 "Must check which() before get()ing a union member."); | |
5736 return _builder.getDataField< ::capnp::Void>( | |
5737 0 * ::capnp::ELEMENTS); | |
5738 } | |
5739 inline void Type::Builder::setInt64( ::capnp::Void value) { | |
5740 _builder.setDataField<Type::Which>( | |
5741 0 * ::capnp::ELEMENTS, Type::INT64); | |
5742 _builder.setDataField< ::capnp::Void>( | |
5743 0 * ::capnp::ELEMENTS, value); | |
5744 } | |
5745 | |
5746 inline bool Type::Reader::isUint8() const { | |
5747 return which() == Type::UINT8; | |
5748 } | |
5749 inline bool Type::Builder::isUint8() { | |
5750 return which() == Type::UINT8; | |
5751 } | |
5752 inline ::capnp::Void Type::Reader::getUint8() const { | |
5753 KJ_IREQUIRE((which() == Type::UINT8), | |
5754 "Must check which() before get()ing a union member."); | |
5755 return _reader.getDataField< ::capnp::Void>( | |
5756 0 * ::capnp::ELEMENTS); | |
5757 } | |
5758 | |
5759 inline ::capnp::Void Type::Builder::getUint8() { | |
5760 KJ_IREQUIRE((which() == Type::UINT8), | |
5761 "Must check which() before get()ing a union member."); | |
5762 return _builder.getDataField< ::capnp::Void>( | |
5763 0 * ::capnp::ELEMENTS); | |
5764 } | |
5765 inline void Type::Builder::setUint8( ::capnp::Void value) { | |
5766 _builder.setDataField<Type::Which>( | |
5767 0 * ::capnp::ELEMENTS, Type::UINT8); | |
5768 _builder.setDataField< ::capnp::Void>( | |
5769 0 * ::capnp::ELEMENTS, value); | |
5770 } | |
5771 | |
5772 inline bool Type::Reader::isUint16() const { | |
5773 return which() == Type::UINT16; | |
5774 } | |
5775 inline bool Type::Builder::isUint16() { | |
5776 return which() == Type::UINT16; | |
5777 } | |
5778 inline ::capnp::Void Type::Reader::getUint16() const { | |
5779 KJ_IREQUIRE((which() == Type::UINT16), | |
5780 "Must check which() before get()ing a union member."); | |
5781 return _reader.getDataField< ::capnp::Void>( | |
5782 0 * ::capnp::ELEMENTS); | |
5783 } | |
5784 | |
5785 inline ::capnp::Void Type::Builder::getUint16() { | |
5786 KJ_IREQUIRE((which() == Type::UINT16), | |
5787 "Must check which() before get()ing a union member."); | |
5788 return _builder.getDataField< ::capnp::Void>( | |
5789 0 * ::capnp::ELEMENTS); | |
5790 } | |
5791 inline void Type::Builder::setUint16( ::capnp::Void value) { | |
5792 _builder.setDataField<Type::Which>( | |
5793 0 * ::capnp::ELEMENTS, Type::UINT16); | |
5794 _builder.setDataField< ::capnp::Void>( | |
5795 0 * ::capnp::ELEMENTS, value); | |
5796 } | |
5797 | |
5798 inline bool Type::Reader::isUint32() const { | |
5799 return which() == Type::UINT32; | |
5800 } | |
5801 inline bool Type::Builder::isUint32() { | |
5802 return which() == Type::UINT32; | |
5803 } | |
5804 inline ::capnp::Void Type::Reader::getUint32() const { | |
5805 KJ_IREQUIRE((which() == Type::UINT32), | |
5806 "Must check which() before get()ing a union member."); | |
5807 return _reader.getDataField< ::capnp::Void>( | |
5808 0 * ::capnp::ELEMENTS); | |
5809 } | |
5810 | |
5811 inline ::capnp::Void Type::Builder::getUint32() { | |
5812 KJ_IREQUIRE((which() == Type::UINT32), | |
5813 "Must check which() before get()ing a union member."); | |
5814 return _builder.getDataField< ::capnp::Void>( | |
5815 0 * ::capnp::ELEMENTS); | |
5816 } | |
5817 inline void Type::Builder::setUint32( ::capnp::Void value) { | |
5818 _builder.setDataField<Type::Which>( | |
5819 0 * ::capnp::ELEMENTS, Type::UINT32); | |
5820 _builder.setDataField< ::capnp::Void>( | |
5821 0 * ::capnp::ELEMENTS, value); | |
5822 } | |
5823 | |
5824 inline bool Type::Reader::isUint64() const { | |
5825 return which() == Type::UINT64; | |
5826 } | |
5827 inline bool Type::Builder::isUint64() { | |
5828 return which() == Type::UINT64; | |
5829 } | |
5830 inline ::capnp::Void Type::Reader::getUint64() const { | |
5831 KJ_IREQUIRE((which() == Type::UINT64), | |
5832 "Must check which() before get()ing a union member."); | |
5833 return _reader.getDataField< ::capnp::Void>( | |
5834 0 * ::capnp::ELEMENTS); | |
5835 } | |
5836 | |
5837 inline ::capnp::Void Type::Builder::getUint64() { | |
5838 KJ_IREQUIRE((which() == Type::UINT64), | |
5839 "Must check which() before get()ing a union member."); | |
5840 return _builder.getDataField< ::capnp::Void>( | |
5841 0 * ::capnp::ELEMENTS); | |
5842 } | |
5843 inline void Type::Builder::setUint64( ::capnp::Void value) { | |
5844 _builder.setDataField<Type::Which>( | |
5845 0 * ::capnp::ELEMENTS, Type::UINT64); | |
5846 _builder.setDataField< ::capnp::Void>( | |
5847 0 * ::capnp::ELEMENTS, value); | |
5848 } | |
5849 | |
5850 inline bool Type::Reader::isFloat32() const { | |
5851 return which() == Type::FLOAT32; | |
5852 } | |
5853 inline bool Type::Builder::isFloat32() { | |
5854 return which() == Type::FLOAT32; | |
5855 } | |
5856 inline ::capnp::Void Type::Reader::getFloat32() const { | |
5857 KJ_IREQUIRE((which() == Type::FLOAT32), | |
5858 "Must check which() before get()ing a union member."); | |
5859 return _reader.getDataField< ::capnp::Void>( | |
5860 0 * ::capnp::ELEMENTS); | |
5861 } | |
5862 | |
5863 inline ::capnp::Void Type::Builder::getFloat32() { | |
5864 KJ_IREQUIRE((which() == Type::FLOAT32), | |
5865 "Must check which() before get()ing a union member."); | |
5866 return _builder.getDataField< ::capnp::Void>( | |
5867 0 * ::capnp::ELEMENTS); | |
5868 } | |
5869 inline void Type::Builder::setFloat32( ::capnp::Void value) { | |
5870 _builder.setDataField<Type::Which>( | |
5871 0 * ::capnp::ELEMENTS, Type::FLOAT32); | |
5872 _builder.setDataField< ::capnp::Void>( | |
5873 0 * ::capnp::ELEMENTS, value); | |
5874 } | |
5875 | |
5876 inline bool Type::Reader::isFloat64() const { | |
5877 return which() == Type::FLOAT64; | |
5878 } | |
5879 inline bool Type::Builder::isFloat64() { | |
5880 return which() == Type::FLOAT64; | |
5881 } | |
5882 inline ::capnp::Void Type::Reader::getFloat64() const { | |
5883 KJ_IREQUIRE((which() == Type::FLOAT64), | |
5884 "Must check which() before get()ing a union member."); | |
5885 return _reader.getDataField< ::capnp::Void>( | |
5886 0 * ::capnp::ELEMENTS); | |
5887 } | |
5888 | |
5889 inline ::capnp::Void Type::Builder::getFloat64() { | |
5890 KJ_IREQUIRE((which() == Type::FLOAT64), | |
5891 "Must check which() before get()ing a union member."); | |
5892 return _builder.getDataField< ::capnp::Void>( | |
5893 0 * ::capnp::ELEMENTS); | |
5894 } | |
5895 inline void Type::Builder::setFloat64( ::capnp::Void value) { | |
5896 _builder.setDataField<Type::Which>( | |
5897 0 * ::capnp::ELEMENTS, Type::FLOAT64); | |
5898 _builder.setDataField< ::capnp::Void>( | |
5899 0 * ::capnp::ELEMENTS, value); | |
5900 } | |
5901 | |
5902 inline bool Type::Reader::isText() const { | |
5903 return which() == Type::TEXT; | |
5904 } | |
5905 inline bool Type::Builder::isText() { | |
5906 return which() == Type::TEXT; | |
5907 } | |
5908 inline ::capnp::Void Type::Reader::getText() const { | |
5909 KJ_IREQUIRE((which() == Type::TEXT), | |
5910 "Must check which() before get()ing a union member."); | |
5911 return _reader.getDataField< ::capnp::Void>( | |
5912 0 * ::capnp::ELEMENTS); | |
5913 } | |
5914 | |
5915 inline ::capnp::Void Type::Builder::getText() { | |
5916 KJ_IREQUIRE((which() == Type::TEXT), | |
5917 "Must check which() before get()ing a union member."); | |
5918 return _builder.getDataField< ::capnp::Void>( | |
5919 0 * ::capnp::ELEMENTS); | |
5920 } | |
5921 inline void Type::Builder::setText( ::capnp::Void value) { | |
5922 _builder.setDataField<Type::Which>( | |
5923 0 * ::capnp::ELEMENTS, Type::TEXT); | |
5924 _builder.setDataField< ::capnp::Void>( | |
5925 0 * ::capnp::ELEMENTS, value); | |
5926 } | |
5927 | |
5928 inline bool Type::Reader::isData() const { | |
5929 return which() == Type::DATA; | |
5930 } | |
5931 inline bool Type::Builder::isData() { | |
5932 return which() == Type::DATA; | |
5933 } | |
5934 inline ::capnp::Void Type::Reader::getData() const { | |
5935 KJ_IREQUIRE((which() == Type::DATA), | |
5936 "Must check which() before get()ing a union member."); | |
5937 return _reader.getDataField< ::capnp::Void>( | |
5938 0 * ::capnp::ELEMENTS); | |
5939 } | |
5940 | |
5941 inline ::capnp::Void Type::Builder::getData() { | |
5942 KJ_IREQUIRE((which() == Type::DATA), | |
5943 "Must check which() before get()ing a union member."); | |
5944 return _builder.getDataField< ::capnp::Void>( | |
5945 0 * ::capnp::ELEMENTS); | |
5946 } | |
5947 inline void Type::Builder::setData( ::capnp::Void value) { | |
5948 _builder.setDataField<Type::Which>( | |
5949 0 * ::capnp::ELEMENTS, Type::DATA); | |
5950 _builder.setDataField< ::capnp::Void>( | |
5951 0 * ::capnp::ELEMENTS, value); | |
5952 } | |
5953 | |
5954 inline bool Type::Reader::isList() const { | |
5955 return which() == Type::LIST; | |
5956 } | |
5957 inline bool Type::Builder::isList() { | |
5958 return which() == Type::LIST; | |
5959 } | |
5960 inline typename Type::List::Reader Type::Reader::getList() const { | |
5961 KJ_IREQUIRE((which() == Type::LIST), | |
5962 "Must check which() before get()ing a union member."); | |
5963 return typename Type::List::Reader(_reader); | |
5964 } | |
5965 inline typename Type::List::Builder Type::Builder::getList() { | |
5966 KJ_IREQUIRE((which() == Type::LIST), | |
5967 "Must check which() before get()ing a union member."); | |
5968 return typename Type::List::Builder(_builder); | |
5969 } | |
5970 inline typename Type::List::Builder Type::Builder::initList() { | |
5971 _builder.setDataField<Type::Which>( | |
5972 0 * ::capnp::ELEMENTS, Type::LIST); | |
5973 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | |
5974 return typename Type::List::Builder(_builder); | |
5975 } | |
5976 inline bool Type::Reader::isEnum() const { | |
5977 return which() == Type::ENUM; | |
5978 } | |
5979 inline bool Type::Builder::isEnum() { | |
5980 return which() == Type::ENUM; | |
5981 } | |
5982 inline typename Type::Enum::Reader Type::Reader::getEnum() const { | |
5983 KJ_IREQUIRE((which() == Type::ENUM), | |
5984 "Must check which() before get()ing a union member."); | |
5985 return typename Type::Enum::Reader(_reader); | |
5986 } | |
5987 inline typename Type::Enum::Builder Type::Builder::getEnum() { | |
5988 KJ_IREQUIRE((which() == Type::ENUM), | |
5989 "Must check which() before get()ing a union member."); | |
5990 return typename Type::Enum::Builder(_builder); | |
5991 } | |
5992 inline typename Type::Enum::Builder Type::Builder::initEnum() { | |
5993 _builder.setDataField<Type::Which>( | |
5994 0 * ::capnp::ELEMENTS, Type::ENUM); | |
5995 _builder.setDataField< ::uint64_t>(1 * ::capnp::ELEMENTS, 0); | |
5996 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | |
5997 return typename Type::Enum::Builder(_builder); | |
5998 } | |
5999 inline bool Type::Reader::isStruct() const { | |
6000 return which() == Type::STRUCT; | |
6001 } | |
6002 inline bool Type::Builder::isStruct() { | |
6003 return which() == Type::STRUCT; | |
6004 } | |
6005 inline typename Type::Struct::Reader Type::Reader::getStruct() const { | |
6006 KJ_IREQUIRE((which() == Type::STRUCT), | |
6007 "Must check which() before get()ing a union member."); | |
6008 return typename Type::Struct::Reader(_reader); | |
6009 } | |
6010 inline typename Type::Struct::Builder Type::Builder::getStruct() { | |
6011 KJ_IREQUIRE((which() == Type::STRUCT), | |
6012 "Must check which() before get()ing a union member."); | |
6013 return typename Type::Struct::Builder(_builder); | |
6014 } | |
6015 inline typename Type::Struct::Builder Type::Builder::initStruct() { | |
6016 _builder.setDataField<Type::Which>( | |
6017 0 * ::capnp::ELEMENTS, Type::STRUCT); | |
6018 _builder.setDataField< ::uint64_t>(1 * ::capnp::ELEMENTS, 0); | |
6019 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | |
6020 return typename Type::Struct::Builder(_builder); | |
6021 } | |
6022 inline bool Type::Reader::isInterface() const { | |
6023 return which() == Type::INTERFACE; | |
6024 } | |
6025 inline bool Type::Builder::isInterface() { | |
6026 return which() == Type::INTERFACE; | |
6027 } | |
6028 inline typename Type::Interface::Reader Type::Reader::getInterface() const { | |
6029 KJ_IREQUIRE((which() == Type::INTERFACE), | |
6030 "Must check which() before get()ing a union member."); | |
6031 return typename Type::Interface::Reader(_reader); | |
6032 } | |
6033 inline typename Type::Interface::Builder Type::Builder::getInterface() { | |
6034 KJ_IREQUIRE((which() == Type::INTERFACE), | |
6035 "Must check which() before get()ing a union member."); | |
6036 return typename Type::Interface::Builder(_builder); | |
6037 } | |
6038 inline typename Type::Interface::Builder Type::Builder::initInterface() { | |
6039 _builder.setDataField<Type::Which>( | |
6040 0 * ::capnp::ELEMENTS, Type::INTERFACE); | |
6041 _builder.setDataField< ::uint64_t>(1 * ::capnp::ELEMENTS, 0); | |
6042 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | |
6043 return typename Type::Interface::Builder(_builder); | |
6044 } | |
6045 inline bool Type::Reader::isAnyPointer() const { | |
6046 return which() == Type::ANY_POINTER; | |
6047 } | |
6048 inline bool Type::Builder::isAnyPointer() { | |
6049 return which() == Type::ANY_POINTER; | |
6050 } | |
6051 inline typename Type::AnyPointer::Reader Type::Reader::getAnyPointer() const { | |
6052 KJ_IREQUIRE((which() == Type::ANY_POINTER), | |
6053 "Must check which() before get()ing a union member."); | |
6054 return typename Type::AnyPointer::Reader(_reader); | |
6055 } | |
6056 inline typename Type::AnyPointer::Builder Type::Builder::getAnyPointer() { | |
6057 KJ_IREQUIRE((which() == Type::ANY_POINTER), | |
6058 "Must check which() before get()ing a union member."); | |
6059 return typename Type::AnyPointer::Builder(_builder); | |
6060 } | |
6061 inline typename Type::AnyPointer::Builder Type::Builder::initAnyPointer() { | |
6062 _builder.setDataField<Type::Which>( | |
6063 0 * ::capnp::ELEMENTS, Type::ANY_POINTER); | |
6064 _builder.setDataField< ::uint16_t>(4 * ::capnp::ELEMENTS, 0); | |
6065 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | |
6066 _builder.setDataField< ::uint64_t>(2 * ::capnp::ELEMENTS, 0); | |
6067 return typename Type::AnyPointer::Builder(_builder); | |
6068 } | |
6069 inline bool Type::List::Reader::hasElementType() const { | |
6070 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6071 } | |
6072 inline bool Type::List::Builder::hasElementType() { | |
6073 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6074 } | |
6075 inline ::capnp::schema::Type::Reader Type::List::Reader::getElementType() const { | |
6076 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
6077 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
6078 } | |
6079 inline ::capnp::schema::Type::Builder Type::List::Builder::getElementType() { | |
6080 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
6081 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6082 } | |
6083 #if !CAPNP_LITE | |
6084 inline ::capnp::schema::Type::Pipeline Type::List::Pipeline::getElementType() { | |
6085 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(0)); | |
6086 } | |
6087 #endif // !CAPNP_LITE | |
6088 inline void Type::List::Builder::setElementType( ::capnp::schema::Type::Reader value) { | |
6089 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | |
6090 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
6091 } | |
6092 inline ::capnp::schema::Type::Builder Type::List::Builder::initElementType() { | |
6093 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | |
6094 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6095 } | |
6096 inline void Type::List::Builder::adoptElementType( | |
6097 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | |
6098 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | |
6099 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
6100 } | |
6101 inline ::capnp::Orphan< ::capnp::schema::Type> Type::List::Builder::disownElementType() { | |
6102 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | |
6103 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6104 } | |
6105 | |
6106 inline ::uint64_t Type::Enum::Reader::getTypeId() const { | |
6107 return _reader.getDataField< ::uint64_t>( | |
6108 1 * ::capnp::ELEMENTS); | |
6109 } | |
6110 | |
6111 inline ::uint64_t Type::Enum::Builder::getTypeId() { | |
6112 return _builder.getDataField< ::uint64_t>( | |
6113 1 * ::capnp::ELEMENTS); | |
6114 } | |
6115 inline void Type::Enum::Builder::setTypeId( ::uint64_t value) { | |
6116 _builder.setDataField< ::uint64_t>( | |
6117 1 * ::capnp::ELEMENTS, value); | |
6118 } | |
6119 | |
6120 inline bool Type::Enum::Reader::hasBrand() const { | |
6121 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6122 } | |
6123 inline bool Type::Enum::Builder::hasBrand() { | |
6124 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6125 } | |
6126 inline ::capnp::schema::Brand::Reader Type::Enum::Reader::getBrand() const { | |
6127 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
6128 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
6129 } | |
6130 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::getBrand() { | |
6131 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
6132 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6133 } | |
6134 #if !CAPNP_LITE | |
6135 inline ::capnp::schema::Brand::Pipeline Type::Enum::Pipeline::getBrand() { | |
6136 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | |
6137 } | |
6138 #endif // !CAPNP_LITE | |
6139 inline void Type::Enum::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | |
6140 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | |
6141 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
6142 } | |
6143 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::initBrand() { | |
6144 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | |
6145 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6146 } | |
6147 inline void Type::Enum::Builder::adoptBrand( | |
6148 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | |
6149 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | |
6150 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
6151 } | |
6152 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Enum::Builder::disownBrand() { | |
6153 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | |
6154 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6155 } | |
6156 | |
6157 inline ::uint64_t Type::Struct::Reader::getTypeId() const { | |
6158 return _reader.getDataField< ::uint64_t>( | |
6159 1 * ::capnp::ELEMENTS); | |
6160 } | |
6161 | |
6162 inline ::uint64_t Type::Struct::Builder::getTypeId() { | |
6163 return _builder.getDataField< ::uint64_t>( | |
6164 1 * ::capnp::ELEMENTS); | |
6165 } | |
6166 inline void Type::Struct::Builder::setTypeId( ::uint64_t value) { | |
6167 _builder.setDataField< ::uint64_t>( | |
6168 1 * ::capnp::ELEMENTS, value); | |
6169 } | |
6170 | |
6171 inline bool Type::Struct::Reader::hasBrand() const { | |
6172 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6173 } | |
6174 inline bool Type::Struct::Builder::hasBrand() { | |
6175 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6176 } | |
6177 inline ::capnp::schema::Brand::Reader Type::Struct::Reader::getBrand() const { | |
6178 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
6179 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
6180 } | |
6181 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::getBrand() { | |
6182 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
6183 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6184 } | |
6185 #if !CAPNP_LITE | |
6186 inline ::capnp::schema::Brand::Pipeline Type::Struct::Pipeline::getBrand() { | |
6187 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | |
6188 } | |
6189 #endif // !CAPNP_LITE | |
6190 inline void Type::Struct::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | |
6191 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | |
6192 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
6193 } | |
6194 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::initBrand() { | |
6195 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | |
6196 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6197 } | |
6198 inline void Type::Struct::Builder::adoptBrand( | |
6199 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | |
6200 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | |
6201 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
6202 } | |
6203 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Struct::Builder::disownBrand() { | |
6204 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | |
6205 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6206 } | |
6207 | |
6208 inline ::uint64_t Type::Interface::Reader::getTypeId() const { | |
6209 return _reader.getDataField< ::uint64_t>( | |
6210 1 * ::capnp::ELEMENTS); | |
6211 } | |
6212 | |
6213 inline ::uint64_t Type::Interface::Builder::getTypeId() { | |
6214 return _builder.getDataField< ::uint64_t>( | |
6215 1 * ::capnp::ELEMENTS); | |
6216 } | |
6217 inline void Type::Interface::Builder::setTypeId( ::uint64_t value) { | |
6218 _builder.setDataField< ::uint64_t>( | |
6219 1 * ::capnp::ELEMENTS, value); | |
6220 } | |
6221 | |
6222 inline bool Type::Interface::Reader::hasBrand() const { | |
6223 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6224 } | |
6225 inline bool Type::Interface::Builder::hasBrand() { | |
6226 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6227 } | |
6228 inline ::capnp::schema::Brand::Reader Type::Interface::Reader::getBrand() const { | |
6229 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
6230 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
6231 } | |
6232 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::getBrand() { | |
6233 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
6234 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6235 } | |
6236 #if !CAPNP_LITE | |
6237 inline ::capnp::schema::Brand::Pipeline Type::Interface::Pipeline::getBrand() { | |
6238 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | |
6239 } | |
6240 #endif // !CAPNP_LITE | |
6241 inline void Type::Interface::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | |
6242 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | |
6243 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
6244 } | |
6245 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::initBrand() { | |
6246 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | |
6247 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6248 } | |
6249 inline void Type::Interface::Builder::adoptBrand( | |
6250 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | |
6251 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | |
6252 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
6253 } | |
6254 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Interface::Builder::disownBrand() { | |
6255 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | |
6256 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6257 } | |
6258 | |
6259 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Reader::which() const { | |
6260 return _reader.getDataField<Which>(4 * ::capnp::ELEMENTS); | |
6261 } | |
6262 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Builder::which() { | |
6263 return _builder.getDataField<Which>(4 * ::capnp::ELEMENTS); | |
6264 } | |
6265 | |
6266 inline bool Type::AnyPointer::Reader::isUnconstrained() const { | |
6267 return which() == Type::AnyPointer::UNCONSTRAINED; | |
6268 } | |
6269 inline bool Type::AnyPointer::Builder::isUnconstrained() { | |
6270 return which() == Type::AnyPointer::UNCONSTRAINED; | |
6271 } | |
6272 inline typename Type::AnyPointer::Unconstrained::Reader Type::AnyPointer::Reader::getUnconstrained() const { | |
6273 KJ_IREQUIRE((which() == Type::AnyPointer::UNCONSTRAINED), | |
6274 "Must check which() before get()ing a union member."); | |
6275 return typename Type::AnyPointer::Unconstrained::Reader(_reader); | |
6276 } | |
6277 inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::getUnconstrained() { | |
6278 KJ_IREQUIRE((which() == Type::AnyPointer::UNCONSTRAINED), | |
6279 "Must check which() before get()ing a union member."); | |
6280 return typename Type::AnyPointer::Unconstrained::Builder(_builder); | |
6281 } | |
6282 inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::initUnconstrained() { | |
6283 _builder.setDataField<Type::AnyPointer::Which>( | |
6284 4 * ::capnp::ELEMENTS, Type::AnyPointer::UNCONSTRAINED); | |
6285 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | |
6286 return typename Type::AnyPointer::Unconstrained::Builder(_builder); | |
6287 } | |
6288 inline bool Type::AnyPointer::Reader::isParameter() const { | |
6289 return which() == Type::AnyPointer::PARAMETER; | |
6290 } | |
6291 inline bool Type::AnyPointer::Builder::isParameter() { | |
6292 return which() == Type::AnyPointer::PARAMETER; | |
6293 } | |
6294 inline typename Type::AnyPointer::Parameter::Reader Type::AnyPointer::Reader::getParameter() const { | |
6295 KJ_IREQUIRE((which() == Type::AnyPointer::PARAMETER), | |
6296 "Must check which() before get()ing a union member."); | |
6297 return typename Type::AnyPointer::Parameter::Reader(_reader); | |
6298 } | |
6299 inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::getParameter() { | |
6300 KJ_IREQUIRE((which() == Type::AnyPointer::PARAMETER), | |
6301 "Must check which() before get()ing a union member."); | |
6302 return typename Type::AnyPointer::Parameter::Builder(_builder); | |
6303 } | |
6304 inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::initParameter() { | |
6305 _builder.setDataField<Type::AnyPointer::Which>( | |
6306 4 * ::capnp::ELEMENTS, Type::AnyPointer::PARAMETER); | |
6307 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | |
6308 _builder.setDataField< ::uint64_t>(2 * ::capnp::ELEMENTS, 0); | |
6309 return typename Type::AnyPointer::Parameter::Builder(_builder); | |
6310 } | |
6311 inline bool Type::AnyPointer::Reader::isImplicitMethodParameter() const { | |
6312 return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; | |
6313 } | |
6314 inline bool Type::AnyPointer::Builder::isImplicitMethodParameter() { | |
6315 return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; | |
6316 } | |
6317 inline typename Type::AnyPointer::ImplicitMethodParameter::Reader Type::AnyPointer::Reader::getImplicitMethodParameter() const { | |
6318 KJ_IREQUIRE((which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER), | |
6319 "Must check which() before get()ing a union member."); | |
6320 return typename Type::AnyPointer::ImplicitMethodParameter::Reader(_reader); | |
6321 } | |
6322 inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::getImplicitMethodParameter() { | |
6323 KJ_IREQUIRE((which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER), | |
6324 "Must check which() before get()ing a union member."); | |
6325 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); | |
6326 } | |
6327 inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::initImplicitMethodParameter() { | |
6328 _builder.setDataField<Type::AnyPointer::Which>( | |
6329 4 * ::capnp::ELEMENTS, Type::AnyPointer::IMPLICIT_METHOD_PARAMETER); | |
6330 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | |
6331 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); | |
6332 } | |
6333 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Reader::which() const { | |
6334 return _reader.getDataField<Which>(5 * ::capnp::ELEMENTS); | |
6335 } | |
6336 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Builder::which() { | |
6337 return _builder.getDataField<Which>(5 * ::capnp::ELEMENTS); | |
6338 } | |
6339 | |
6340 inline bool Type::AnyPointer::Unconstrained::Reader::isAnyKind() const { | |
6341 return which() == Type::AnyPointer::Unconstrained::ANY_KIND; | |
6342 } | |
6343 inline bool Type::AnyPointer::Unconstrained::Builder::isAnyKind() { | |
6344 return which() == Type::AnyPointer::Unconstrained::ANY_KIND; | |
6345 } | |
6346 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getAnyKind() const { | |
6347 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), | |
6348 "Must check which() before get()ing a union member."); | |
6349 return _reader.getDataField< ::capnp::Void>( | |
6350 0 * ::capnp::ELEMENTS); | |
6351 } | |
6352 | |
6353 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getAnyKind() { | |
6354 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), | |
6355 "Must check which() before get()ing a union member."); | |
6356 return _builder.getDataField< ::capnp::Void>( | |
6357 0 * ::capnp::ELEMENTS); | |
6358 } | |
6359 inline void Type::AnyPointer::Unconstrained::Builder::setAnyKind( ::capnp::Void value) { | |
6360 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | |
6361 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::ANY_KIND); | |
6362 _builder.setDataField< ::capnp::Void>( | |
6363 0 * ::capnp::ELEMENTS, value); | |
6364 } | |
6365 | |
6366 inline bool Type::AnyPointer::Unconstrained::Reader::isStruct() const { | |
6367 return which() == Type::AnyPointer::Unconstrained::STRUCT; | |
6368 } | |
6369 inline bool Type::AnyPointer::Unconstrained::Builder::isStruct() { | |
6370 return which() == Type::AnyPointer::Unconstrained::STRUCT; | |
6371 } | |
6372 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getStruct() const { | |
6373 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), | |
6374 "Must check which() before get()ing a union member."); | |
6375 return _reader.getDataField< ::capnp::Void>( | |
6376 0 * ::capnp::ELEMENTS); | |
6377 } | |
6378 | |
6379 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getStruct() { | |
6380 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), | |
6381 "Must check which() before get()ing a union member."); | |
6382 return _builder.getDataField< ::capnp::Void>( | |
6383 0 * ::capnp::ELEMENTS); | |
6384 } | |
6385 inline void Type::AnyPointer::Unconstrained::Builder::setStruct( ::capnp::Void value) { | |
6386 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | |
6387 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::STRUCT); | |
6388 _builder.setDataField< ::capnp::Void>( | |
6389 0 * ::capnp::ELEMENTS, value); | |
6390 } | |
6391 | |
6392 inline bool Type::AnyPointer::Unconstrained::Reader::isList() const { | |
6393 return which() == Type::AnyPointer::Unconstrained::LIST; | |
6394 } | |
6395 inline bool Type::AnyPointer::Unconstrained::Builder::isList() { | |
6396 return which() == Type::AnyPointer::Unconstrained::LIST; | |
6397 } | |
6398 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getList() const { | |
6399 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), | |
6400 "Must check which() before get()ing a union member."); | |
6401 return _reader.getDataField< ::capnp::Void>( | |
6402 0 * ::capnp::ELEMENTS); | |
6403 } | |
6404 | |
6405 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getList() { | |
6406 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), | |
6407 "Must check which() before get()ing a union member."); | |
6408 return _builder.getDataField< ::capnp::Void>( | |
6409 0 * ::capnp::ELEMENTS); | |
6410 } | |
6411 inline void Type::AnyPointer::Unconstrained::Builder::setList( ::capnp::Void value) { | |
6412 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | |
6413 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::LIST); | |
6414 _builder.setDataField< ::capnp::Void>( | |
6415 0 * ::capnp::ELEMENTS, value); | |
6416 } | |
6417 | |
6418 inline bool Type::AnyPointer::Unconstrained::Reader::isCapability() const { | |
6419 return which() == Type::AnyPointer::Unconstrained::CAPABILITY; | |
6420 } | |
6421 inline bool Type::AnyPointer::Unconstrained::Builder::isCapability() { | |
6422 return which() == Type::AnyPointer::Unconstrained::CAPABILITY; | |
6423 } | |
6424 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getCapability() const { | |
6425 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), | |
6426 "Must check which() before get()ing a union member."); | |
6427 return _reader.getDataField< ::capnp::Void>( | |
6428 0 * ::capnp::ELEMENTS); | |
6429 } | |
6430 | |
6431 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getCapability() { | |
6432 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), | |
6433 "Must check which() before get()ing a union member."); | |
6434 return _builder.getDataField< ::capnp::Void>( | |
6435 0 * ::capnp::ELEMENTS); | |
6436 } | |
6437 inline void Type::AnyPointer::Unconstrained::Builder::setCapability( ::capnp::Void value) { | |
6438 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | |
6439 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::CAPABILITY); | |
6440 _builder.setDataField< ::capnp::Void>( | |
6441 0 * ::capnp::ELEMENTS, value); | |
6442 } | |
6443 | |
6444 inline ::uint64_t Type::AnyPointer::Parameter::Reader::getScopeId() const { | |
6445 return _reader.getDataField< ::uint64_t>( | |
6446 2 * ::capnp::ELEMENTS); | |
6447 } | |
6448 | |
6449 inline ::uint64_t Type::AnyPointer::Parameter::Builder::getScopeId() { | |
6450 return _builder.getDataField< ::uint64_t>( | |
6451 2 * ::capnp::ELEMENTS); | |
6452 } | |
6453 inline void Type::AnyPointer::Parameter::Builder::setScopeId( ::uint64_t value) { | |
6454 _builder.setDataField< ::uint64_t>( | |
6455 2 * ::capnp::ELEMENTS, value); | |
6456 } | |
6457 | |
6458 inline ::uint16_t Type::AnyPointer::Parameter::Reader::getParameterIndex() const { | |
6459 return _reader.getDataField< ::uint16_t>( | |
6460 5 * ::capnp::ELEMENTS); | |
6461 } | |
6462 | |
6463 inline ::uint16_t Type::AnyPointer::Parameter::Builder::getParameterIndex() { | |
6464 return _builder.getDataField< ::uint16_t>( | |
6465 5 * ::capnp::ELEMENTS); | |
6466 } | |
6467 inline void Type::AnyPointer::Parameter::Builder::setParameterIndex( ::uint16_t value) { | |
6468 _builder.setDataField< ::uint16_t>( | |
6469 5 * ::capnp::ELEMENTS, value); | |
6470 } | |
6471 | |
6472 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Reader::getParameterIndex() const { | |
6473 return _reader.getDataField< ::uint16_t>( | |
6474 5 * ::capnp::ELEMENTS); | |
6475 } | |
6476 | |
6477 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Builder::getParameterIndex() { | |
6478 return _builder.getDataField< ::uint16_t>( | |
6479 5 * ::capnp::ELEMENTS); | |
6480 } | |
6481 inline void Type::AnyPointer::ImplicitMethodParameter::Builder::setParameterIndex( ::uint16_t value) { | |
6482 _builder.setDataField< ::uint16_t>( | |
6483 5 * ::capnp::ELEMENTS, value); | |
6484 } | |
6485 | |
6486 inline bool Brand::Reader::hasScopes() const { | |
6487 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6488 } | |
6489 inline bool Brand::Builder::hasScopes() { | |
6490 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6491 } | |
6492 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Reader Brand::Reader::getScopes() const { | |
6493 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::get( | |
6494 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
6495 } | |
6496 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder Brand::Builder::getScopes() { | |
6497 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::get( | |
6498 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6499 } | |
6500 inline void Brand::Builder::setScopes( ::capnp::List< ::capnp::schema::Brand::Scope>::Reader value) { | |
6501 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::set( | |
6502 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
6503 } | |
6504 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder Brand::Builder::initScopes(unsigned int size) { | |
6505 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::init( | |
6506 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
6507 } | |
6508 inline void Brand::Builder::adoptScopes( | |
6509 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>>&& value) { | |
6510 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::adopt( | |
6511 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
6512 } | |
6513 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>> Brand::Builder::disownScopes() { | |
6514 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::disown( | |
6515 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6516 } | |
6517 | |
6518 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Reader::which() const { | |
6519 return _reader.getDataField<Which>(4 * ::capnp::ELEMENTS); | |
6520 } | |
6521 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Builder::which() { | |
6522 return _builder.getDataField<Which>(4 * ::capnp::ELEMENTS); | |
6523 } | |
6524 | |
6525 inline ::uint64_t Brand::Scope::Reader::getScopeId() const { | |
6526 return _reader.getDataField< ::uint64_t>( | |
6527 0 * ::capnp::ELEMENTS); | |
6528 } | |
6529 | |
6530 inline ::uint64_t Brand::Scope::Builder::getScopeId() { | |
6531 return _builder.getDataField< ::uint64_t>( | |
6532 0 * ::capnp::ELEMENTS); | |
6533 } | |
6534 inline void Brand::Scope::Builder::setScopeId( ::uint64_t value) { | |
6535 _builder.setDataField< ::uint64_t>( | |
6536 0 * ::capnp::ELEMENTS, value); | |
6537 } | |
6538 | |
6539 inline bool Brand::Scope::Reader::isBind() const { | |
6540 return which() == Brand::Scope::BIND; | |
6541 } | |
6542 inline bool Brand::Scope::Builder::isBind() { | |
6543 return which() == Brand::Scope::BIND; | |
6544 } | |
6545 inline bool Brand::Scope::Reader::hasBind() const { | |
6546 if (which() != Brand::Scope::BIND) return false; | |
6547 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6548 } | |
6549 inline bool Brand::Scope::Builder::hasBind() { | |
6550 if (which() != Brand::Scope::BIND) return false; | |
6551 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6552 } | |
6553 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Reader Brand::Scope::Reader::getBind() const { | |
6554 KJ_IREQUIRE((which() == Brand::Scope::BIND), | |
6555 "Must check which() before get()ing a union member."); | |
6556 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::get( | |
6557 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
6558 } | |
6559 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder Brand::Scope::Builder::getBind() { | |
6560 KJ_IREQUIRE((which() == Brand::Scope::BIND), | |
6561 "Must check which() before get()ing a union member."); | |
6562 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::get( | |
6563 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6564 } | |
6565 inline void Brand::Scope::Builder::setBind( ::capnp::List< ::capnp::schema::Brand::Binding>::Reader value) { | |
6566 _builder.setDataField<Brand::Scope::Which>( | |
6567 4 * ::capnp::ELEMENTS, Brand::Scope::BIND); | |
6568 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::set( | |
6569 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
6570 } | |
6571 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder Brand::Scope::Builder::initBind(unsigned int size) { | |
6572 _builder.setDataField<Brand::Scope::Which>( | |
6573 4 * ::capnp::ELEMENTS, Brand::Scope::BIND); | |
6574 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::init( | |
6575 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
6576 } | |
6577 inline void Brand::Scope::Builder::adoptBind( | |
6578 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>>&& value) { | |
6579 _builder.setDataField<Brand::Scope::Which>( | |
6580 4 * ::capnp::ELEMENTS, Brand::Scope::BIND); | |
6581 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::adopt( | |
6582 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
6583 } | |
6584 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>> Brand::Scope::Builder::disownBind() { | |
6585 KJ_IREQUIRE((which() == Brand::Scope::BIND), | |
6586 "Must check which() before get()ing a union member."); | |
6587 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::disown( | |
6588 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6589 } | |
6590 | |
6591 inline bool Brand::Scope::Reader::isInherit() const { | |
6592 return which() == Brand::Scope::INHERIT; | |
6593 } | |
6594 inline bool Brand::Scope::Builder::isInherit() { | |
6595 return which() == Brand::Scope::INHERIT; | |
6596 } | |
6597 inline ::capnp::Void Brand::Scope::Reader::getInherit() const { | |
6598 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), | |
6599 "Must check which() before get()ing a union member."); | |
6600 return _reader.getDataField< ::capnp::Void>( | |
6601 0 * ::capnp::ELEMENTS); | |
6602 } | |
6603 | |
6604 inline ::capnp::Void Brand::Scope::Builder::getInherit() { | |
6605 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), | |
6606 "Must check which() before get()ing a union member."); | |
6607 return _builder.getDataField< ::capnp::Void>( | |
6608 0 * ::capnp::ELEMENTS); | |
6609 } | |
6610 inline void Brand::Scope::Builder::setInherit( ::capnp::Void value) { | |
6611 _builder.setDataField<Brand::Scope::Which>( | |
6612 4 * ::capnp::ELEMENTS, Brand::Scope::INHERIT); | |
6613 _builder.setDataField< ::capnp::Void>( | |
6614 0 * ::capnp::ELEMENTS, value); | |
6615 } | |
6616 | |
6617 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Reader::which() const { | |
6618 return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS); | |
6619 } | |
6620 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Builder::which() { | |
6621 return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS); | |
6622 } | |
6623 | |
6624 inline bool Brand::Binding::Reader::isUnbound() const { | |
6625 return which() == Brand::Binding::UNBOUND; | |
6626 } | |
6627 inline bool Brand::Binding::Builder::isUnbound() { | |
6628 return which() == Brand::Binding::UNBOUND; | |
6629 } | |
6630 inline ::capnp::Void Brand::Binding::Reader::getUnbound() const { | |
6631 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), | |
6632 "Must check which() before get()ing a union member."); | |
6633 return _reader.getDataField< ::capnp::Void>( | |
6634 0 * ::capnp::ELEMENTS); | |
6635 } | |
6636 | |
6637 inline ::capnp::Void Brand::Binding::Builder::getUnbound() { | |
6638 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), | |
6639 "Must check which() before get()ing a union member."); | |
6640 return _builder.getDataField< ::capnp::Void>( | |
6641 0 * ::capnp::ELEMENTS); | |
6642 } | |
6643 inline void Brand::Binding::Builder::setUnbound( ::capnp::Void value) { | |
6644 _builder.setDataField<Brand::Binding::Which>( | |
6645 0 * ::capnp::ELEMENTS, Brand::Binding::UNBOUND); | |
6646 _builder.setDataField< ::capnp::Void>( | |
6647 0 * ::capnp::ELEMENTS, value); | |
6648 } | |
6649 | |
6650 inline bool Brand::Binding::Reader::isType() const { | |
6651 return which() == Brand::Binding::TYPE; | |
6652 } | |
6653 inline bool Brand::Binding::Builder::isType() { | |
6654 return which() == Brand::Binding::TYPE; | |
6655 } | |
6656 inline bool Brand::Binding::Reader::hasType() const { | |
6657 if (which() != Brand::Binding::TYPE) return false; | |
6658 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6659 } | |
6660 inline bool Brand::Binding::Builder::hasType() { | |
6661 if (which() != Brand::Binding::TYPE) return false; | |
6662 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
6663 } | |
6664 inline ::capnp::schema::Type::Reader Brand::Binding::Reader::getType() const { | |
6665 KJ_IREQUIRE((which() == Brand::Binding::TYPE), | |
6666 "Must check which() before get()ing a union member."); | |
6667 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
6668 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
6669 } | |
6670 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::getType() { | |
6671 KJ_IREQUIRE((which() == Brand::Binding::TYPE), | |
6672 "Must check which() before get()ing a union member."); | |
6673 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | |
6674 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6675 } | |
6676 inline void Brand::Binding::Builder::setType( ::capnp::schema::Type::Reader value) { | |
6677 _builder.setDataField<Brand::Binding::Which>( | |
6678 0 * ::capnp::ELEMENTS, Brand::Binding::TYPE); | |
6679 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | |
6680 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
6681 } | |
6682 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::initType() { | |
6683 _builder.setDataField<Brand::Binding::Which>( | |
6684 0 * ::capnp::ELEMENTS, Brand::Binding::TYPE); | |
6685 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | |
6686 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6687 } | |
6688 inline void Brand::Binding::Builder::adoptType( | |
6689 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | |
6690 _builder.setDataField<Brand::Binding::Which>( | |
6691 0 * ::capnp::ELEMENTS, Brand::Binding::TYPE); | |
6692 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | |
6693 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
6694 } | |
6695 inline ::capnp::Orphan< ::capnp::schema::Type> Brand::Binding::Builder::disownType() { | |
6696 KJ_IREQUIRE((which() == Brand::Binding::TYPE), | |
6697 "Must check which() before get()ing a union member."); | |
6698 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | |
6699 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
6700 } | |
6701 | |
6702 inline ::capnp::schema::Value::Which Value::Reader::which() const { | |
6703 return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS); | |
6704 } | |
6705 inline ::capnp::schema::Value::Which Value::Builder::which() { | |
6706 return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS); | |
6707 } | |
6708 | |
6709 inline bool Value::Reader::isVoid() const { | |
6710 return which() == Value::VOID; | |
6711 } | |
6712 inline bool Value::Builder::isVoid() { | |
6713 return which() == Value::VOID; | |
6714 } | |
6715 inline ::capnp::Void Value::Reader::getVoid() const { | |
6716 KJ_IREQUIRE((which() == Value::VOID), | |
6717 "Must check which() before get()ing a union member."); | |
6718 return _reader.getDataField< ::capnp::Void>( | |
6719 0 * ::capnp::ELEMENTS); | |
6720 } | |
6721 | |
6722 inline ::capnp::Void Value::Builder::getVoid() { | |
6723 KJ_IREQUIRE((which() == Value::VOID), | |
6724 "Must check which() before get()ing a union member."); | |
6725 return _builder.getDataField< ::capnp::Void>( | |
6726 0 * ::capnp::ELEMENTS); | |
6727 } | |
6728 inline void Value::Builder::setVoid( ::capnp::Void value) { | |
6729 _builder.setDataField<Value::Which>( | |
6730 0 * ::capnp::ELEMENTS, Value::VOID); | |
6731 _builder.setDataField< ::capnp::Void>( | |
6732 0 * ::capnp::ELEMENTS, value); | |
6733 } | |
6734 | |
6735 inline bool Value::Reader::isBool() const { | |
6736 return which() == Value::BOOL; | |
6737 } | |
6738 inline bool Value::Builder::isBool() { | |
6739 return which() == Value::BOOL; | |
6740 } | |
6741 inline bool Value::Reader::getBool() const { | |
6742 KJ_IREQUIRE((which() == Value::BOOL), | |
6743 "Must check which() before get()ing a union member."); | |
6744 return _reader.getDataField<bool>( | |
6745 16 * ::capnp::ELEMENTS); | |
6746 } | |
6747 | |
6748 inline bool Value::Builder::getBool() { | |
6749 KJ_IREQUIRE((which() == Value::BOOL), | |
6750 "Must check which() before get()ing a union member."); | |
6751 return _builder.getDataField<bool>( | |
6752 16 * ::capnp::ELEMENTS); | |
6753 } | |
6754 inline void Value::Builder::setBool(bool value) { | |
6755 _builder.setDataField<Value::Which>( | |
6756 0 * ::capnp::ELEMENTS, Value::BOOL); | |
6757 _builder.setDataField<bool>( | |
6758 16 * ::capnp::ELEMENTS, value); | |
6759 } | |
6760 | |
6761 inline bool Value::Reader::isInt8() const { | |
6762 return which() == Value::INT8; | |
6763 } | |
6764 inline bool Value::Builder::isInt8() { | |
6765 return which() == Value::INT8; | |
6766 } | |
6767 inline ::int8_t Value::Reader::getInt8() const { | |
6768 KJ_IREQUIRE((which() == Value::INT8), | |
6769 "Must check which() before get()ing a union member."); | |
6770 return _reader.getDataField< ::int8_t>( | |
6771 2 * ::capnp::ELEMENTS); | |
6772 } | |
6773 | |
6774 inline ::int8_t Value::Builder::getInt8() { | |
6775 KJ_IREQUIRE((which() == Value::INT8), | |
6776 "Must check which() before get()ing a union member."); | |
6777 return _builder.getDataField< ::int8_t>( | |
6778 2 * ::capnp::ELEMENTS); | |
6779 } | |
6780 inline void Value::Builder::setInt8( ::int8_t value) { | |
6781 _builder.setDataField<Value::Which>( | |
6782 0 * ::capnp::ELEMENTS, Value::INT8); | |
6783 _builder.setDataField< ::int8_t>( | |
6784 2 * ::capnp::ELEMENTS, value); | |
6785 } | |
6786 | |
6787 inline bool Value::Reader::isInt16() const { | |
6788 return which() == Value::INT16; | |
6789 } | |
6790 inline bool Value::Builder::isInt16() { | |
6791 return which() == Value::INT16; | |
6792 } | |
6793 inline ::int16_t Value::Reader::getInt16() const { | |
6794 KJ_IREQUIRE((which() == Value::INT16), | |
6795 "Must check which() before get()ing a union member."); | |
6796 return _reader.getDataField< ::int16_t>( | |
6797 1 * ::capnp::ELEMENTS); | |
6798 } | |
6799 | |
6800 inline ::int16_t Value::Builder::getInt16() { | |
6801 KJ_IREQUIRE((which() == Value::INT16), | |
6802 "Must check which() before get()ing a union member."); | |
6803 return _builder.getDataField< ::int16_t>( | |
6804 1 * ::capnp::ELEMENTS); | |
6805 } | |
6806 inline void Value::Builder::setInt16( ::int16_t value) { | |
6807 _builder.setDataField<Value::Which>( | |
6808 0 * ::capnp::ELEMENTS, Value::INT16); | |
6809 _builder.setDataField< ::int16_t>( | |
6810 1 * ::capnp::ELEMENTS, value); | |
6811 } | |
6812 | |
6813 inline bool Value::Reader::isInt32() const { | |
6814 return which() == Value::INT32; | |
6815 } | |
6816 inline bool Value::Builder::isInt32() { | |
6817 return which() == Value::INT32; | |
6818 } | |
6819 inline ::int32_t Value::Reader::getInt32() const { | |
6820 KJ_IREQUIRE((which() == Value::INT32), | |
6821 "Must check which() before get()ing a union member."); | |
6822 return _reader.getDataField< ::int32_t>( | |
6823 1 * ::capnp::ELEMENTS); | |
6824 } | |
6825 | |
6826 inline ::int32_t Value::Builder::getInt32() { | |
6827 KJ_IREQUIRE((which() == Value::INT32), | |
6828 "Must check which() before get()ing a union member."); | |
6829 return _builder.getDataField< ::int32_t>( | |
6830 1 * ::capnp::ELEMENTS); | |
6831 } | |
6832 inline void Value::Builder::setInt32( ::int32_t value) { | |
6833 _builder.setDataField<Value::Which>( | |
6834 0 * ::capnp::ELEMENTS, Value::INT32); | |
6835 _builder.setDataField< ::int32_t>( | |
6836 1 * ::capnp::ELEMENTS, value); | |
6837 } | |
6838 | |
6839 inline bool Value::Reader::isInt64() const { | |
6840 return which() == Value::INT64; | |
6841 } | |
6842 inline bool Value::Builder::isInt64() { | |
6843 return which() == Value::INT64; | |
6844 } | |
6845 inline ::int64_t Value::Reader::getInt64() const { | |
6846 KJ_IREQUIRE((which() == Value::INT64), | |
6847 "Must check which() before get()ing a union member."); | |
6848 return _reader.getDataField< ::int64_t>( | |
6849 1 * ::capnp::ELEMENTS); | |
6850 } | |
6851 | |
6852 inline ::int64_t Value::Builder::getInt64() { | |
6853 KJ_IREQUIRE((which() == Value::INT64), | |
6854 "Must check which() before get()ing a union member."); | |
6855 return _builder.getDataField< ::int64_t>( | |
6856 1 * ::capnp::ELEMENTS); | |
6857 } | |
6858 inline void Value::Builder::setInt64( ::int64_t value) { | |
6859 _builder.setDataField<Value::Which>( | |
6860 0 * ::capnp::ELEMENTS, Value::INT64); | |
6861 _builder.setDataField< ::int64_t>( | |
6862 1 * ::capnp::ELEMENTS, value); | |
6863 } | |
6864 | |
6865 inline bool Value::Reader::isUint8() const { | |
6866 return which() == Value::UINT8; | |
6867 } | |
6868 inline bool Value::Builder::isUint8() { | |
6869 return which() == Value::UINT8; | |
6870 } | |
6871 inline ::uint8_t Value::Reader::getUint8() const { | |
6872 KJ_IREQUIRE((which() == Value::UINT8), | |
6873 "Must check which() before get()ing a union member."); | |
6874 return _reader.getDataField< ::uint8_t>( | |
6875 2 * ::capnp::ELEMENTS); | |
6876 } | |
6877 | |
6878 inline ::uint8_t Value::Builder::getUint8() { | |
6879 KJ_IREQUIRE((which() == Value::UINT8), | |
6880 "Must check which() before get()ing a union member."); | |
6881 return _builder.getDataField< ::uint8_t>( | |
6882 2 * ::capnp::ELEMENTS); | |
6883 } | |
6884 inline void Value::Builder::setUint8( ::uint8_t value) { | |
6885 _builder.setDataField<Value::Which>( | |
6886 0 * ::capnp::ELEMENTS, Value::UINT8); | |
6887 _builder.setDataField< ::uint8_t>( | |
6888 2 * ::capnp::ELEMENTS, value); | |
6889 } | |
6890 | |
6891 inline bool Value::Reader::isUint16() const { | |
6892 return which() == Value::UINT16; | |
6893 } | |
6894 inline bool Value::Builder::isUint16() { | |
6895 return which() == Value::UINT16; | |
6896 } | |
6897 inline ::uint16_t Value::Reader::getUint16() const { | |
6898 KJ_IREQUIRE((which() == Value::UINT16), | |
6899 "Must check which() before get()ing a union member."); | |
6900 return _reader.getDataField< ::uint16_t>( | |
6901 1 * ::capnp::ELEMENTS); | |
6902 } | |
6903 | |
6904 inline ::uint16_t Value::Builder::getUint16() { | |
6905 KJ_IREQUIRE((which() == Value::UINT16), | |
6906 "Must check which() before get()ing a union member."); | |
6907 return _builder.getDataField< ::uint16_t>( | |
6908 1 * ::capnp::ELEMENTS); | |
6909 } | |
6910 inline void Value::Builder::setUint16( ::uint16_t value) { | |
6911 _builder.setDataField<Value::Which>( | |
6912 0 * ::capnp::ELEMENTS, Value::UINT16); | |
6913 _builder.setDataField< ::uint16_t>( | |
6914 1 * ::capnp::ELEMENTS, value); | |
6915 } | |
6916 | |
6917 inline bool Value::Reader::isUint32() const { | |
6918 return which() == Value::UINT32; | |
6919 } | |
6920 inline bool Value::Builder::isUint32() { | |
6921 return which() == Value::UINT32; | |
6922 } | |
6923 inline ::uint32_t Value::Reader::getUint32() const { | |
6924 KJ_IREQUIRE((which() == Value::UINT32), | |
6925 "Must check which() before get()ing a union member."); | |
6926 return _reader.getDataField< ::uint32_t>( | |
6927 1 * ::capnp::ELEMENTS); | |
6928 } | |
6929 | |
6930 inline ::uint32_t Value::Builder::getUint32() { | |
6931 KJ_IREQUIRE((which() == Value::UINT32), | |
6932 "Must check which() before get()ing a union member."); | |
6933 return _builder.getDataField< ::uint32_t>( | |
6934 1 * ::capnp::ELEMENTS); | |
6935 } | |
6936 inline void Value::Builder::setUint32( ::uint32_t value) { | |
6937 _builder.setDataField<Value::Which>( | |
6938 0 * ::capnp::ELEMENTS, Value::UINT32); | |
6939 _builder.setDataField< ::uint32_t>( | |
6940 1 * ::capnp::ELEMENTS, value); | |
6941 } | |
6942 | |
6943 inline bool Value::Reader::isUint64() const { | |
6944 return which() == Value::UINT64; | |
6945 } | |
6946 inline bool Value::Builder::isUint64() { | |
6947 return which() == Value::UINT64; | |
6948 } | |
6949 inline ::uint64_t Value::Reader::getUint64() const { | |
6950 KJ_IREQUIRE((which() == Value::UINT64), | |
6951 "Must check which() before get()ing a union member."); | |
6952 return _reader.getDataField< ::uint64_t>( | |
6953 1 * ::capnp::ELEMENTS); | |
6954 } | |
6955 | |
6956 inline ::uint64_t Value::Builder::getUint64() { | |
6957 KJ_IREQUIRE((which() == Value::UINT64), | |
6958 "Must check which() before get()ing a union member."); | |
6959 return _builder.getDataField< ::uint64_t>( | |
6960 1 * ::capnp::ELEMENTS); | |
6961 } | |
6962 inline void Value::Builder::setUint64( ::uint64_t value) { | |
6963 _builder.setDataField<Value::Which>( | |
6964 0 * ::capnp::ELEMENTS, Value::UINT64); | |
6965 _builder.setDataField< ::uint64_t>( | |
6966 1 * ::capnp::ELEMENTS, value); | |
6967 } | |
6968 | |
6969 inline bool Value::Reader::isFloat32() const { | |
6970 return which() == Value::FLOAT32; | |
6971 } | |
6972 inline bool Value::Builder::isFloat32() { | |
6973 return which() == Value::FLOAT32; | |
6974 } | |
6975 inline float Value::Reader::getFloat32() const { | |
6976 KJ_IREQUIRE((which() == Value::FLOAT32), | |
6977 "Must check which() before get()ing a union member."); | |
6978 return _reader.getDataField<float>( | |
6979 1 * ::capnp::ELEMENTS); | |
6980 } | |
6981 | |
6982 inline float Value::Builder::getFloat32() { | |
6983 KJ_IREQUIRE((which() == Value::FLOAT32), | |
6984 "Must check which() before get()ing a union member."); | |
6985 return _builder.getDataField<float>( | |
6986 1 * ::capnp::ELEMENTS); | |
6987 } | |
6988 inline void Value::Builder::setFloat32(float value) { | |
6989 _builder.setDataField<Value::Which>( | |
6990 0 * ::capnp::ELEMENTS, Value::FLOAT32); | |
6991 _builder.setDataField<float>( | |
6992 1 * ::capnp::ELEMENTS, value); | |
6993 } | |
6994 | |
6995 inline bool Value::Reader::isFloat64() const { | |
6996 return which() == Value::FLOAT64; | |
6997 } | |
6998 inline bool Value::Builder::isFloat64() { | |
6999 return which() == Value::FLOAT64; | |
7000 } | |
7001 inline double Value::Reader::getFloat64() const { | |
7002 KJ_IREQUIRE((which() == Value::FLOAT64), | |
7003 "Must check which() before get()ing a union member."); | |
7004 return _reader.getDataField<double>( | |
7005 1 * ::capnp::ELEMENTS); | |
7006 } | |
7007 | |
7008 inline double Value::Builder::getFloat64() { | |
7009 KJ_IREQUIRE((which() == Value::FLOAT64), | |
7010 "Must check which() before get()ing a union member."); | |
7011 return _builder.getDataField<double>( | |
7012 1 * ::capnp::ELEMENTS); | |
7013 } | |
7014 inline void Value::Builder::setFloat64(double value) { | |
7015 _builder.setDataField<Value::Which>( | |
7016 0 * ::capnp::ELEMENTS, Value::FLOAT64); | |
7017 _builder.setDataField<double>( | |
7018 1 * ::capnp::ELEMENTS, value); | |
7019 } | |
7020 | |
7021 inline bool Value::Reader::isText() const { | |
7022 return which() == Value::TEXT; | |
7023 } | |
7024 inline bool Value::Builder::isText() { | |
7025 return which() == Value::TEXT; | |
7026 } | |
7027 inline bool Value::Reader::hasText() const { | |
7028 if (which() != Value::TEXT) return false; | |
7029 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7030 } | |
7031 inline bool Value::Builder::hasText() { | |
7032 if (which() != Value::TEXT) return false; | |
7033 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7034 } | |
7035 inline ::capnp::Text::Reader Value::Reader::getText() const { | |
7036 KJ_IREQUIRE((which() == Value::TEXT), | |
7037 "Must check which() before get()ing a union member."); | |
7038 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
7039 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7040 } | |
7041 inline ::capnp::Text::Builder Value::Builder::getText() { | |
7042 KJ_IREQUIRE((which() == Value::TEXT), | |
7043 "Must check which() before get()ing a union member."); | |
7044 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
7045 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7046 } | |
7047 inline void Value::Builder::setText( ::capnp::Text::Reader value) { | |
7048 _builder.setDataField<Value::Which>( | |
7049 0 * ::capnp::ELEMENTS, Value::TEXT); | |
7050 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
7051 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
7052 } | |
7053 inline ::capnp::Text::Builder Value::Builder::initText(unsigned int size) { | |
7054 _builder.setDataField<Value::Which>( | |
7055 0 * ::capnp::ELEMENTS, Value::TEXT); | |
7056 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
7057 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
7058 } | |
7059 inline void Value::Builder::adoptText( | |
7060 ::capnp::Orphan< ::capnp::Text>&& value) { | |
7061 _builder.setDataField<Value::Which>( | |
7062 0 * ::capnp::ELEMENTS, Value::TEXT); | |
7063 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
7064 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
7065 } | |
7066 inline ::capnp::Orphan< ::capnp::Text> Value::Builder::disownText() { | |
7067 KJ_IREQUIRE((which() == Value::TEXT), | |
7068 "Must check which() before get()ing a union member."); | |
7069 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
7070 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7071 } | |
7072 | |
7073 inline bool Value::Reader::isData() const { | |
7074 return which() == Value::DATA; | |
7075 } | |
7076 inline bool Value::Builder::isData() { | |
7077 return which() == Value::DATA; | |
7078 } | |
7079 inline bool Value::Reader::hasData() const { | |
7080 if (which() != Value::DATA) return false; | |
7081 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7082 } | |
7083 inline bool Value::Builder::hasData() { | |
7084 if (which() != Value::DATA) return false; | |
7085 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7086 } | |
7087 inline ::capnp::Data::Reader Value::Reader::getData() const { | |
7088 KJ_IREQUIRE((which() == Value::DATA), | |
7089 "Must check which() before get()ing a union member."); | |
7090 return ::capnp::_::PointerHelpers< ::capnp::Data>::get( | |
7091 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7092 } | |
7093 inline ::capnp::Data::Builder Value::Builder::getData() { | |
7094 KJ_IREQUIRE((which() == Value::DATA), | |
7095 "Must check which() before get()ing a union member."); | |
7096 return ::capnp::_::PointerHelpers< ::capnp::Data>::get( | |
7097 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7098 } | |
7099 inline void Value::Builder::setData( ::capnp::Data::Reader value) { | |
7100 _builder.setDataField<Value::Which>( | |
7101 0 * ::capnp::ELEMENTS, Value::DATA); | |
7102 ::capnp::_::PointerHelpers< ::capnp::Data>::set( | |
7103 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
7104 } | |
7105 inline ::capnp::Data::Builder Value::Builder::initData(unsigned int size) { | |
7106 _builder.setDataField<Value::Which>( | |
7107 0 * ::capnp::ELEMENTS, Value::DATA); | |
7108 return ::capnp::_::PointerHelpers< ::capnp::Data>::init( | |
7109 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
7110 } | |
7111 inline void Value::Builder::adoptData( | |
7112 ::capnp::Orphan< ::capnp::Data>&& value) { | |
7113 _builder.setDataField<Value::Which>( | |
7114 0 * ::capnp::ELEMENTS, Value::DATA); | |
7115 ::capnp::_::PointerHelpers< ::capnp::Data>::adopt( | |
7116 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
7117 } | |
7118 inline ::capnp::Orphan< ::capnp::Data> Value::Builder::disownData() { | |
7119 KJ_IREQUIRE((which() == Value::DATA), | |
7120 "Must check which() before get()ing a union member."); | |
7121 return ::capnp::_::PointerHelpers< ::capnp::Data>::disown( | |
7122 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7123 } | |
7124 | |
7125 inline bool Value::Reader::isList() const { | |
7126 return which() == Value::LIST; | |
7127 } | |
7128 inline bool Value::Builder::isList() { | |
7129 return which() == Value::LIST; | |
7130 } | |
7131 inline bool Value::Reader::hasList() const { | |
7132 if (which() != Value::LIST) return false; | |
7133 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7134 } | |
7135 inline bool Value::Builder::hasList() { | |
7136 if (which() != Value::LIST) return false; | |
7137 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7138 } | |
7139 inline ::capnp::AnyPointer::Reader Value::Reader::getList() const { | |
7140 KJ_IREQUIRE((which() == Value::LIST), | |
7141 "Must check which() before get()ing a union member."); | |
7142 return ::capnp::AnyPointer::Reader( | |
7143 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7144 } | |
7145 inline ::capnp::AnyPointer::Builder Value::Builder::getList() { | |
7146 KJ_IREQUIRE((which() == Value::LIST), | |
7147 "Must check which() before get()ing a union member."); | |
7148 return ::capnp::AnyPointer::Builder( | |
7149 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7150 } | |
7151 inline ::capnp::AnyPointer::Builder Value::Builder::initList() { | |
7152 _builder.setDataField<Value::Which>( | |
7153 0 * ::capnp::ELEMENTS, Value::LIST); | |
7154 auto result = ::capnp::AnyPointer::Builder( | |
7155 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7156 result.clear(); | |
7157 return result; | |
7158 } | |
7159 | |
7160 inline bool Value::Reader::isEnum() const { | |
7161 return which() == Value::ENUM; | |
7162 } | |
7163 inline bool Value::Builder::isEnum() { | |
7164 return which() == Value::ENUM; | |
7165 } | |
7166 inline ::uint16_t Value::Reader::getEnum() const { | |
7167 KJ_IREQUIRE((which() == Value::ENUM), | |
7168 "Must check which() before get()ing a union member."); | |
7169 return _reader.getDataField< ::uint16_t>( | |
7170 1 * ::capnp::ELEMENTS); | |
7171 } | |
7172 | |
7173 inline ::uint16_t Value::Builder::getEnum() { | |
7174 KJ_IREQUIRE((which() == Value::ENUM), | |
7175 "Must check which() before get()ing a union member."); | |
7176 return _builder.getDataField< ::uint16_t>( | |
7177 1 * ::capnp::ELEMENTS); | |
7178 } | |
7179 inline void Value::Builder::setEnum( ::uint16_t value) { | |
7180 _builder.setDataField<Value::Which>( | |
7181 0 * ::capnp::ELEMENTS, Value::ENUM); | |
7182 _builder.setDataField< ::uint16_t>( | |
7183 1 * ::capnp::ELEMENTS, value); | |
7184 } | |
7185 | |
7186 inline bool Value::Reader::isStruct() const { | |
7187 return which() == Value::STRUCT; | |
7188 } | |
7189 inline bool Value::Builder::isStruct() { | |
7190 return which() == Value::STRUCT; | |
7191 } | |
7192 inline bool Value::Reader::hasStruct() const { | |
7193 if (which() != Value::STRUCT) return false; | |
7194 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7195 } | |
7196 inline bool Value::Builder::hasStruct() { | |
7197 if (which() != Value::STRUCT) return false; | |
7198 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7199 } | |
7200 inline ::capnp::AnyPointer::Reader Value::Reader::getStruct() const { | |
7201 KJ_IREQUIRE((which() == Value::STRUCT), | |
7202 "Must check which() before get()ing a union member."); | |
7203 return ::capnp::AnyPointer::Reader( | |
7204 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7205 } | |
7206 inline ::capnp::AnyPointer::Builder Value::Builder::getStruct() { | |
7207 KJ_IREQUIRE((which() == Value::STRUCT), | |
7208 "Must check which() before get()ing a union member."); | |
7209 return ::capnp::AnyPointer::Builder( | |
7210 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7211 } | |
7212 inline ::capnp::AnyPointer::Builder Value::Builder::initStruct() { | |
7213 _builder.setDataField<Value::Which>( | |
7214 0 * ::capnp::ELEMENTS, Value::STRUCT); | |
7215 auto result = ::capnp::AnyPointer::Builder( | |
7216 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7217 result.clear(); | |
7218 return result; | |
7219 } | |
7220 | |
7221 inline bool Value::Reader::isInterface() const { | |
7222 return which() == Value::INTERFACE; | |
7223 } | |
7224 inline bool Value::Builder::isInterface() { | |
7225 return which() == Value::INTERFACE; | |
7226 } | |
7227 inline ::capnp::Void Value::Reader::getInterface() const { | |
7228 KJ_IREQUIRE((which() == Value::INTERFACE), | |
7229 "Must check which() before get()ing a union member."); | |
7230 return _reader.getDataField< ::capnp::Void>( | |
7231 0 * ::capnp::ELEMENTS); | |
7232 } | |
7233 | |
7234 inline ::capnp::Void Value::Builder::getInterface() { | |
7235 KJ_IREQUIRE((which() == Value::INTERFACE), | |
7236 "Must check which() before get()ing a union member."); | |
7237 return _builder.getDataField< ::capnp::Void>( | |
7238 0 * ::capnp::ELEMENTS); | |
7239 } | |
7240 inline void Value::Builder::setInterface( ::capnp::Void value) { | |
7241 _builder.setDataField<Value::Which>( | |
7242 0 * ::capnp::ELEMENTS, Value::INTERFACE); | |
7243 _builder.setDataField< ::capnp::Void>( | |
7244 0 * ::capnp::ELEMENTS, value); | |
7245 } | |
7246 | |
7247 inline bool Value::Reader::isAnyPointer() const { | |
7248 return which() == Value::ANY_POINTER; | |
7249 } | |
7250 inline bool Value::Builder::isAnyPointer() { | |
7251 return which() == Value::ANY_POINTER; | |
7252 } | |
7253 inline bool Value::Reader::hasAnyPointer() const { | |
7254 if (which() != Value::ANY_POINTER) return false; | |
7255 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7256 } | |
7257 inline bool Value::Builder::hasAnyPointer() { | |
7258 if (which() != Value::ANY_POINTER) return false; | |
7259 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7260 } | |
7261 inline ::capnp::AnyPointer::Reader Value::Reader::getAnyPointer() const { | |
7262 KJ_IREQUIRE((which() == Value::ANY_POINTER), | |
7263 "Must check which() before get()ing a union member."); | |
7264 return ::capnp::AnyPointer::Reader( | |
7265 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7266 } | |
7267 inline ::capnp::AnyPointer::Builder Value::Builder::getAnyPointer() { | |
7268 KJ_IREQUIRE((which() == Value::ANY_POINTER), | |
7269 "Must check which() before get()ing a union member."); | |
7270 return ::capnp::AnyPointer::Builder( | |
7271 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7272 } | |
7273 inline ::capnp::AnyPointer::Builder Value::Builder::initAnyPointer() { | |
7274 _builder.setDataField<Value::Which>( | |
7275 0 * ::capnp::ELEMENTS, Value::ANY_POINTER); | |
7276 auto result = ::capnp::AnyPointer::Builder( | |
7277 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7278 result.clear(); | |
7279 return result; | |
7280 } | |
7281 | |
7282 inline ::uint64_t Annotation::Reader::getId() const { | |
7283 return _reader.getDataField< ::uint64_t>( | |
7284 0 * ::capnp::ELEMENTS); | |
7285 } | |
7286 | |
7287 inline ::uint64_t Annotation::Builder::getId() { | |
7288 return _builder.getDataField< ::uint64_t>( | |
7289 0 * ::capnp::ELEMENTS); | |
7290 } | |
7291 inline void Annotation::Builder::setId( ::uint64_t value) { | |
7292 _builder.setDataField< ::uint64_t>( | |
7293 0 * ::capnp::ELEMENTS, value); | |
7294 } | |
7295 | |
7296 inline bool Annotation::Reader::hasValue() const { | |
7297 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7298 } | |
7299 inline bool Annotation::Builder::hasValue() { | |
7300 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7301 } | |
7302 inline ::capnp::schema::Value::Reader Annotation::Reader::getValue() const { | |
7303 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | |
7304 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7305 } | |
7306 inline ::capnp::schema::Value::Builder Annotation::Builder::getValue() { | |
7307 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | |
7308 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7309 } | |
7310 #if !CAPNP_LITE | |
7311 inline ::capnp::schema::Value::Pipeline Annotation::Pipeline::getValue() { | |
7312 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(0)); | |
7313 } | |
7314 #endif // !CAPNP_LITE | |
7315 inline void Annotation::Builder::setValue( ::capnp::schema::Value::Reader value) { | |
7316 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set( | |
7317 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
7318 } | |
7319 inline ::capnp::schema::Value::Builder Annotation::Builder::initValue() { | |
7320 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init( | |
7321 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7322 } | |
7323 inline void Annotation::Builder::adoptValue( | |
7324 ::capnp::Orphan< ::capnp::schema::Value>&& value) { | |
7325 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt( | |
7326 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
7327 } | |
7328 inline ::capnp::Orphan< ::capnp::schema::Value> Annotation::Builder::disownValue() { | |
7329 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown( | |
7330 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7331 } | |
7332 | |
7333 inline bool Annotation::Reader::hasBrand() const { | |
7334 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
7335 } | |
7336 inline bool Annotation::Builder::hasBrand() { | |
7337 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
7338 } | |
7339 inline ::capnp::schema::Brand::Reader Annotation::Reader::getBrand() const { | |
7340 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
7341 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
7342 } | |
7343 inline ::capnp::schema::Brand::Builder Annotation::Builder::getBrand() { | |
7344 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | |
7345 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
7346 } | |
7347 #if !CAPNP_LITE | |
7348 inline ::capnp::schema::Brand::Pipeline Annotation::Pipeline::getBrand() { | |
7349 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(1)); | |
7350 } | |
7351 #endif // !CAPNP_LITE | |
7352 inline void Annotation::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | |
7353 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | |
7354 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
7355 } | |
7356 inline ::capnp::schema::Brand::Builder Annotation::Builder::initBrand() { | |
7357 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | |
7358 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
7359 } | |
7360 inline void Annotation::Builder::adoptBrand( | |
7361 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | |
7362 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | |
7363 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
7364 } | |
7365 inline ::capnp::Orphan< ::capnp::schema::Brand> Annotation::Builder::disownBrand() { | |
7366 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | |
7367 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
7368 } | |
7369 | |
7370 inline bool CodeGeneratorRequest::Reader::hasNodes() const { | |
7371 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7372 } | |
7373 inline bool CodeGeneratorRequest::Builder::hasNodes() { | |
7374 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7375 } | |
7376 inline ::capnp::List< ::capnp::schema::Node>::Reader CodeGeneratorRequest::Reader::getNodes() const { | |
7377 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::get( | |
7378 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7379 } | |
7380 inline ::capnp::List< ::capnp::schema::Node>::Builder CodeGeneratorRequest::Builder::getNodes() { | |
7381 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::get( | |
7382 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7383 } | |
7384 inline void CodeGeneratorRequest::Builder::setNodes( ::capnp::List< ::capnp::schema::Node>::Reader value) { | |
7385 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::set( | |
7386 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
7387 } | |
7388 inline ::capnp::List< ::capnp::schema::Node>::Builder CodeGeneratorRequest::Builder::initNodes(unsigned int size) { | |
7389 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::init( | |
7390 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
7391 } | |
7392 inline void CodeGeneratorRequest::Builder::adoptNodes( | |
7393 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>>&& value) { | |
7394 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::adopt( | |
7395 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
7396 } | |
7397 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>> CodeGeneratorRequest::Builder::disownNodes() { | |
7398 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::disown( | |
7399 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7400 } | |
7401 | |
7402 inline bool CodeGeneratorRequest::Reader::hasRequestedFiles() const { | |
7403 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
7404 } | |
7405 inline bool CodeGeneratorRequest::Builder::hasRequestedFiles() { | |
7406 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
7407 } | |
7408 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader CodeGeneratorRequest::Reader::getRequestedFiles() const { | |
7409 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::get( | |
7410 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
7411 } | |
7412 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder CodeGeneratorRequest::Builder::getRequestedFiles() { | |
7413 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::get( | |
7414 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
7415 } | |
7416 inline void CodeGeneratorRequest::Builder::setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader value) { | |
7417 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::set( | |
7418 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
7419 } | |
7420 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder CodeGeneratorRequest::Builder::initRequestedFiles(unsigned int size) { | |
7421 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::init( | |
7422 _builder.getPointerField(1 * ::capnp::POINTERS), size); | |
7423 } | |
7424 inline void CodeGeneratorRequest::Builder::adoptRequestedFiles( | |
7425 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>&& value) { | |
7426 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::adopt( | |
7427 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
7428 } | |
7429 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>> CodeGeneratorRequest::Builder::disownRequestedFiles() { | |
7430 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::disown( | |
7431 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
7432 } | |
7433 | |
7434 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Reader::getId() const { | |
7435 return _reader.getDataField< ::uint64_t>( | |
7436 0 * ::capnp::ELEMENTS); | |
7437 } | |
7438 | |
7439 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Builder::getId() { | |
7440 return _builder.getDataField< ::uint64_t>( | |
7441 0 * ::capnp::ELEMENTS); | |
7442 } | |
7443 inline void CodeGeneratorRequest::RequestedFile::Builder::setId( ::uint64_t value) { | |
7444 _builder.setDataField< ::uint64_t>( | |
7445 0 * ::capnp::ELEMENTS, value); | |
7446 } | |
7447 | |
7448 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasFilename() const { | |
7449 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7450 } | |
7451 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasFilename() { | |
7452 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7453 } | |
7454 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Reader::getFilename() const { | |
7455 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
7456 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7457 } | |
7458 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::getFilename() { | |
7459 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
7460 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7461 } | |
7462 inline void CodeGeneratorRequest::RequestedFile::Builder::setFilename( ::capnp::Text::Reader value) { | |
7463 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
7464 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
7465 } | |
7466 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::initFilename(unsigned int size) { | |
7467 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
7468 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
7469 } | |
7470 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptFilename( | |
7471 ::capnp::Orphan< ::capnp::Text>&& value) { | |
7472 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
7473 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
7474 } | |
7475 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Builder::disownFilename() { | |
7476 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
7477 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7478 } | |
7479 | |
7480 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasImports() const { | |
7481 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
7482 } | |
7483 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasImports() { | |
7484 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
7485 } | |
7486 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader CodeGeneratorRequest::RequestedFile::Reader::getImports() const { | |
7487 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::get( | |
7488 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
7489 } | |
7490 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder CodeGeneratorRequest::RequestedFile::Builder::getImports() { | |
7491 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::get( | |
7492 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
7493 } | |
7494 inline void CodeGeneratorRequest::RequestedFile::Builder::setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader value) { | |
7495 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::set( | |
7496 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
7497 } | |
7498 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder CodeGeneratorRequest::RequestedFile::Builder::initImports(unsigned int size) { | |
7499 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::init( | |
7500 _builder.getPointerField(1 * ::capnp::POINTERS), size); | |
7501 } | |
7502 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptImports( | |
7503 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>&& value) { | |
7504 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::adopt( | |
7505 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
7506 } | |
7507 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>> CodeGeneratorRequest::RequestedFile::Builder::disownImports() { | |
7508 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::disown( | |
7509 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
7510 } | |
7511 | |
7512 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Reader::getId() const { | |
7513 return _reader.getDataField< ::uint64_t>( | |
7514 0 * ::capnp::ELEMENTS); | |
7515 } | |
7516 | |
7517 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Builder::getId() { | |
7518 return _builder.getDataField< ::uint64_t>( | |
7519 0 * ::capnp::ELEMENTS); | |
7520 } | |
7521 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setId( ::uint64_t value) { | |
7522 _builder.setDataField< ::uint64_t>( | |
7523 0 * ::capnp::ELEMENTS, value); | |
7524 } | |
7525 | |
7526 inline bool CodeGeneratorRequest::RequestedFile::Import::Reader::hasName() const { | |
7527 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7528 } | |
7529 inline bool CodeGeneratorRequest::RequestedFile::Import::Builder::hasName() { | |
7530 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
7531 } | |
7532 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Import::Reader::getName() const { | |
7533 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
7534 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
7535 } | |
7536 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::getName() { | |
7537 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | |
7538 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7539 } | |
7540 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setName( ::capnp::Text::Reader value) { | |
7541 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | |
7542 _builder.getPointerField(0 * ::capnp::POINTERS), value); | |
7543 } | |
7544 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::initName(unsigned int size) { | |
7545 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | |
7546 _builder.getPointerField(0 * ::capnp::POINTERS), size); | |
7547 } | |
7548 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::adoptName( | |
7549 ::capnp::Orphan< ::capnp::Text>&& value) { | |
7550 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | |
7551 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | |
7552 } | |
7553 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Import::Builder::disownName() { | |
7554 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | |
7555 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
7556 } | |
7557 | |
7558 } // namespace | |
7559 } // namespace | |
7560 | |
7561 #endif // CAPNP_INCLUDED_a93fc509624c72d9_ |