1 | // Generated by Cap'n Proto compiler, DO NOT EDIT |
2 | // source: schema.capnp |
3 | |
4 | #pragma once |
5 | |
6 | #include <capnp/generated-header-support.h> |
7 | #include <kj/windows-sanity.h> |
8 | |
9 | #if CAPNP_VERSION != 8000 |
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(f38e1de3041357ae); |
21 | CAPNP_DECLARE_SCHEMA(c2ba9038898e1fa2); |
22 | CAPNP_DECLARE_SCHEMA(9ea0b19b37fb4435); |
23 | CAPNP_DECLARE_SCHEMA(b54ab3364333f598); |
24 | CAPNP_DECLARE_SCHEMA(e82753cff0c2218f); |
25 | CAPNP_DECLARE_SCHEMA(b18aa5ac7a0d9420); |
26 | CAPNP_DECLARE_SCHEMA(ec1619d4400a0290); |
27 | CAPNP_DECLARE_SCHEMA(9aad50a41f4af45f); |
28 | CAPNP_DECLARE_SCHEMA(97b14cbe7cfec712); |
29 | CAPNP_DECLARE_SCHEMA(c42305476bb4746f); |
30 | CAPNP_DECLARE_SCHEMA(cafccddb68db1d11); |
31 | CAPNP_DECLARE_SCHEMA(bb90d5c287870be6); |
32 | CAPNP_DECLARE_SCHEMA(978a7cebdc549a4d); |
33 | CAPNP_DECLARE_SCHEMA(a9962a9ed0a4d7f8); |
34 | CAPNP_DECLARE_SCHEMA(9500cce23b334d80); |
35 | CAPNP_DECLARE_SCHEMA(d07378ede1f9cc60); |
36 | CAPNP_DECLARE_SCHEMA(87e739250a60ea97); |
37 | CAPNP_DECLARE_SCHEMA(9e0e78711a7f87a9); |
38 | CAPNP_DECLARE_SCHEMA(ac3a6f60ef4cc6d3); |
39 | CAPNP_DECLARE_SCHEMA(ed8bca69f7fb0cbf); |
40 | CAPNP_DECLARE_SCHEMA(c2573fe8a23e49f1); |
41 | CAPNP_DECLARE_SCHEMA(8e3b5f79fe593656); |
42 | CAPNP_DECLARE_SCHEMA(9dd1f724f4614a85); |
43 | CAPNP_DECLARE_SCHEMA(baefc9120c56e274); |
44 | CAPNP_DECLARE_SCHEMA(903455f06065422b); |
45 | CAPNP_DECLARE_SCHEMA(abd73485a9636bc9); |
46 | CAPNP_DECLARE_SCHEMA(c863cd16969ee7fc); |
47 | CAPNP_DECLARE_SCHEMA(ce23dcd2d7b00c9b); |
48 | CAPNP_DECLARE_SCHEMA(f1c8950dab257542); |
49 | CAPNP_DECLARE_SCHEMA(d1958f7dba521926); |
50 | enum class ElementSize_d1958f7dba521926: uint16_t { |
51 | EMPTY, |
52 | BIT, |
53 | BYTE, |
54 | TWO_BYTES, |
55 | FOUR_BYTES, |
56 | EIGHT_BYTES, |
57 | POINTER, |
58 | INLINE_COMPOSITE, |
59 | }; |
60 | CAPNP_DECLARE_ENUM(ElementSize, d1958f7dba521926); |
61 | CAPNP_DECLARE_SCHEMA(d85d305b7d839963); |
62 | CAPNP_DECLARE_SCHEMA(bfc546f6210ad7ce); |
63 | CAPNP_DECLARE_SCHEMA(cfea0eb02e810062); |
64 | CAPNP_DECLARE_SCHEMA(ae504193122357e5); |
65 | |
66 | } // namespace schemas |
67 | } // namespace capnp |
68 | |
69 | namespace capnp { |
70 | namespace schema { |
71 | |
72 | struct Node { |
73 | Node() = delete; |
74 | |
75 | class Reader; |
76 | class Builder; |
77 | class Pipeline; |
78 | enum Which: uint16_t { |
79 | FILE, |
80 | STRUCT, |
81 | ENUM, |
82 | INTERFACE, |
83 | CONST, |
84 | ANNOTATION, |
85 | }; |
86 | struct Parameter; |
87 | struct NestedNode; |
88 | struct SourceInfo; |
89 | struct Struct; |
90 | struct Enum; |
91 | struct Interface; |
92 | struct Const; |
93 | struct Annotation; |
94 | |
95 | struct _capnpPrivate { |
96 | CAPNP_DECLARE_STRUCT_HEADER(e682ab4cf923a417, 5, 6) |
97 | #if !CAPNP_LITE |
98 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
99 | #endif // !CAPNP_LITE |
100 | }; |
101 | }; |
102 | |
103 | struct Node::Parameter { |
104 | Parameter() = delete; |
105 | |
106 | class Reader; |
107 | class Builder; |
108 | class Pipeline; |
109 | |
110 | struct _capnpPrivate { |
111 | CAPNP_DECLARE_STRUCT_HEADER(b9521bccf10fa3b1, 0, 1) |
112 | #if !CAPNP_LITE |
113 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
114 | #endif // !CAPNP_LITE |
115 | }; |
116 | }; |
117 | |
118 | struct Node::NestedNode { |
119 | NestedNode() = delete; |
120 | |
121 | class Reader; |
122 | class Builder; |
123 | class Pipeline; |
124 | |
125 | struct _capnpPrivate { |
126 | CAPNP_DECLARE_STRUCT_HEADER(debf55bbfa0fc242, 1, 1) |
127 | #if !CAPNP_LITE |
128 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
129 | #endif // !CAPNP_LITE |
130 | }; |
131 | }; |
132 | |
133 | struct Node::SourceInfo { |
134 | SourceInfo() = delete; |
135 | |
136 | class Reader; |
137 | class Builder; |
138 | class Pipeline; |
139 | struct Member; |
140 | |
141 | struct _capnpPrivate { |
142 | CAPNP_DECLARE_STRUCT_HEADER(f38e1de3041357ae, 1, 2) |
143 | #if !CAPNP_LITE |
144 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
145 | #endif // !CAPNP_LITE |
146 | }; |
147 | }; |
148 | |
149 | struct Node::SourceInfo::Member { |
150 | Member() = delete; |
151 | |
152 | class Reader; |
153 | class Builder; |
154 | class Pipeline; |
155 | |
156 | struct _capnpPrivate { |
157 | CAPNP_DECLARE_STRUCT_HEADER(c2ba9038898e1fa2, 0, 1) |
158 | #if !CAPNP_LITE |
159 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
160 | #endif // !CAPNP_LITE |
161 | }; |
162 | }; |
163 | |
164 | struct Node::Struct { |
165 | Struct() = delete; |
166 | |
167 | class Reader; |
168 | class Builder; |
169 | class Pipeline; |
170 | |
171 | struct _capnpPrivate { |
172 | CAPNP_DECLARE_STRUCT_HEADER(9ea0b19b37fb4435, 5, 6) |
173 | #if !CAPNP_LITE |
174 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
175 | #endif // !CAPNP_LITE |
176 | }; |
177 | }; |
178 | |
179 | struct Node::Enum { |
180 | Enum() = delete; |
181 | |
182 | class Reader; |
183 | class Builder; |
184 | class Pipeline; |
185 | |
186 | struct _capnpPrivate { |
187 | CAPNP_DECLARE_STRUCT_HEADER(b54ab3364333f598, 5, 6) |
188 | #if !CAPNP_LITE |
189 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
190 | #endif // !CAPNP_LITE |
191 | }; |
192 | }; |
193 | |
194 | struct Node::Interface { |
195 | Interface() = delete; |
196 | |
197 | class Reader; |
198 | class Builder; |
199 | class Pipeline; |
200 | |
201 | struct _capnpPrivate { |
202 | CAPNP_DECLARE_STRUCT_HEADER(e82753cff0c2218f, 5, 6) |
203 | #if !CAPNP_LITE |
204 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
205 | #endif // !CAPNP_LITE |
206 | }; |
207 | }; |
208 | |
209 | struct Node::Const { |
210 | Const() = delete; |
211 | |
212 | class Reader; |
213 | class Builder; |
214 | class Pipeline; |
215 | |
216 | struct _capnpPrivate { |
217 | CAPNP_DECLARE_STRUCT_HEADER(b18aa5ac7a0d9420, 5, 6) |
218 | #if !CAPNP_LITE |
219 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
220 | #endif // !CAPNP_LITE |
221 | }; |
222 | }; |
223 | |
224 | struct Node::Annotation { |
225 | Annotation() = delete; |
226 | |
227 | class Reader; |
228 | class Builder; |
229 | class Pipeline; |
230 | |
231 | struct _capnpPrivate { |
232 | CAPNP_DECLARE_STRUCT_HEADER(ec1619d4400a0290, 5, 6) |
233 | #if !CAPNP_LITE |
234 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
235 | #endif // !CAPNP_LITE |
236 | }; |
237 | }; |
238 | |
239 | struct Field { |
240 | Field() = delete; |
241 | |
242 | class Reader; |
243 | class Builder; |
244 | class Pipeline; |
245 | enum Which: uint16_t { |
246 | SLOT, |
247 | GROUP, |
248 | }; |
249 | static constexpr ::uint16_t NO_DISCRIMINANT = 65535u; |
250 | struct Slot; |
251 | struct Group; |
252 | struct Ordinal; |
253 | |
254 | struct _capnpPrivate { |
255 | CAPNP_DECLARE_STRUCT_HEADER(9aad50a41f4af45f, 3, 4) |
256 | #if !CAPNP_LITE |
257 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
258 | #endif // !CAPNP_LITE |
259 | }; |
260 | }; |
261 | |
262 | struct Field::Slot { |
263 | Slot() = delete; |
264 | |
265 | class Reader; |
266 | class Builder; |
267 | class Pipeline; |
268 | |
269 | struct _capnpPrivate { |
270 | CAPNP_DECLARE_STRUCT_HEADER(c42305476bb4746f, 3, 4) |
271 | #if !CAPNP_LITE |
272 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
273 | #endif // !CAPNP_LITE |
274 | }; |
275 | }; |
276 | |
277 | struct Field::Group { |
278 | Group() = delete; |
279 | |
280 | class Reader; |
281 | class Builder; |
282 | class Pipeline; |
283 | |
284 | struct _capnpPrivate { |
285 | CAPNP_DECLARE_STRUCT_HEADER(cafccddb68db1d11, 3, 4) |
286 | #if !CAPNP_LITE |
287 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
288 | #endif // !CAPNP_LITE |
289 | }; |
290 | }; |
291 | |
292 | struct Field::Ordinal { |
293 | Ordinal() = delete; |
294 | |
295 | class Reader; |
296 | class Builder; |
297 | class Pipeline; |
298 | enum Which: uint16_t { |
299 | IMPLICIT, |
300 | EXPLICIT, |
301 | }; |
302 | |
303 | struct _capnpPrivate { |
304 | CAPNP_DECLARE_STRUCT_HEADER(bb90d5c287870be6, 3, 4) |
305 | #if !CAPNP_LITE |
306 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
307 | #endif // !CAPNP_LITE |
308 | }; |
309 | }; |
310 | |
311 | struct Enumerant { |
312 | Enumerant() = delete; |
313 | |
314 | class Reader; |
315 | class Builder; |
316 | class Pipeline; |
317 | |
318 | struct _capnpPrivate { |
319 | CAPNP_DECLARE_STRUCT_HEADER(978a7cebdc549a4d, 1, 2) |
320 | #if !CAPNP_LITE |
321 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
322 | #endif // !CAPNP_LITE |
323 | }; |
324 | }; |
325 | |
326 | struct Superclass { |
327 | Superclass() = delete; |
328 | |
329 | class Reader; |
330 | class Builder; |
331 | class Pipeline; |
332 | |
333 | struct _capnpPrivate { |
334 | CAPNP_DECLARE_STRUCT_HEADER(a9962a9ed0a4d7f8, 1, 1) |
335 | #if !CAPNP_LITE |
336 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
337 | #endif // !CAPNP_LITE |
338 | }; |
339 | }; |
340 | |
341 | struct Method { |
342 | Method() = delete; |
343 | |
344 | class Reader; |
345 | class Builder; |
346 | class Pipeline; |
347 | |
348 | struct _capnpPrivate { |
349 | CAPNP_DECLARE_STRUCT_HEADER(9500cce23b334d80, 3, 5) |
350 | #if !CAPNP_LITE |
351 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
352 | #endif // !CAPNP_LITE |
353 | }; |
354 | }; |
355 | |
356 | struct Type { |
357 | Type() = delete; |
358 | |
359 | class Reader; |
360 | class Builder; |
361 | class Pipeline; |
362 | enum Which: uint16_t { |
363 | VOID, |
364 | BOOL, |
365 | INT8, |
366 | INT16, |
367 | INT32, |
368 | INT64, |
369 | UINT8, |
370 | UINT16, |
371 | UINT32, |
372 | UINT64, |
373 | FLOAT32, |
374 | FLOAT64, |
375 | TEXT, |
376 | DATA, |
377 | LIST, |
378 | ENUM, |
379 | STRUCT, |
380 | INTERFACE, |
381 | ANY_POINTER, |
382 | }; |
383 | struct List; |
384 | struct Enum; |
385 | struct Struct; |
386 | struct Interface; |
387 | struct AnyPointer; |
388 | |
389 | struct _capnpPrivate { |
390 | CAPNP_DECLARE_STRUCT_HEADER(d07378ede1f9cc60, 3, 1) |
391 | #if !CAPNP_LITE |
392 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
393 | #endif // !CAPNP_LITE |
394 | }; |
395 | }; |
396 | |
397 | struct Type::List { |
398 | List() = delete; |
399 | |
400 | class Reader; |
401 | class Builder; |
402 | class Pipeline; |
403 | |
404 | struct _capnpPrivate { |
405 | CAPNP_DECLARE_STRUCT_HEADER(87e739250a60ea97, 3, 1) |
406 | #if !CAPNP_LITE |
407 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
408 | #endif // !CAPNP_LITE |
409 | }; |
410 | }; |
411 | |
412 | struct Type::Enum { |
413 | Enum() = delete; |
414 | |
415 | class Reader; |
416 | class Builder; |
417 | class Pipeline; |
418 | |
419 | struct _capnpPrivate { |
420 | CAPNP_DECLARE_STRUCT_HEADER(9e0e78711a7f87a9, 3, 1) |
421 | #if !CAPNP_LITE |
422 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
423 | #endif // !CAPNP_LITE |
424 | }; |
425 | }; |
426 | |
427 | struct Type::Struct { |
428 | Struct() = delete; |
429 | |
430 | class Reader; |
431 | class Builder; |
432 | class Pipeline; |
433 | |
434 | struct _capnpPrivate { |
435 | CAPNP_DECLARE_STRUCT_HEADER(ac3a6f60ef4cc6d3, 3, 1) |
436 | #if !CAPNP_LITE |
437 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
438 | #endif // !CAPNP_LITE |
439 | }; |
440 | }; |
441 | |
442 | struct Type::Interface { |
443 | Interface() = delete; |
444 | |
445 | class Reader; |
446 | class Builder; |
447 | class Pipeline; |
448 | |
449 | struct _capnpPrivate { |
450 | CAPNP_DECLARE_STRUCT_HEADER(ed8bca69f7fb0cbf, 3, 1) |
451 | #if !CAPNP_LITE |
452 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
453 | #endif // !CAPNP_LITE |
454 | }; |
455 | }; |
456 | |
457 | struct Type::AnyPointer { |
458 | AnyPointer() = delete; |
459 | |
460 | class Reader; |
461 | class Builder; |
462 | class Pipeline; |
463 | enum Which: uint16_t { |
464 | UNCONSTRAINED, |
465 | PARAMETER, |
466 | IMPLICIT_METHOD_PARAMETER, |
467 | }; |
468 | struct Unconstrained; |
469 | struct Parameter; |
470 | struct ImplicitMethodParameter; |
471 | |
472 | struct _capnpPrivate { |
473 | CAPNP_DECLARE_STRUCT_HEADER(c2573fe8a23e49f1, 3, 1) |
474 | #if !CAPNP_LITE |
475 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
476 | #endif // !CAPNP_LITE |
477 | }; |
478 | }; |
479 | |
480 | struct Type::AnyPointer::Unconstrained { |
481 | Unconstrained() = delete; |
482 | |
483 | class Reader; |
484 | class Builder; |
485 | class Pipeline; |
486 | enum Which: uint16_t { |
487 | ANY_KIND, |
488 | STRUCT, |
489 | LIST, |
490 | CAPABILITY, |
491 | }; |
492 | |
493 | struct _capnpPrivate { |
494 | CAPNP_DECLARE_STRUCT_HEADER(8e3b5f79fe593656, 3, 1) |
495 | #if !CAPNP_LITE |
496 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
497 | #endif // !CAPNP_LITE |
498 | }; |
499 | }; |
500 | |
501 | struct Type::AnyPointer::Parameter { |
502 | Parameter() = delete; |
503 | |
504 | class Reader; |
505 | class Builder; |
506 | class Pipeline; |
507 | |
508 | struct _capnpPrivate { |
509 | CAPNP_DECLARE_STRUCT_HEADER(9dd1f724f4614a85, 3, 1) |
510 | #if !CAPNP_LITE |
511 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
512 | #endif // !CAPNP_LITE |
513 | }; |
514 | }; |
515 | |
516 | struct Type::AnyPointer::ImplicitMethodParameter { |
517 | ImplicitMethodParameter() = delete; |
518 | |
519 | class Reader; |
520 | class Builder; |
521 | class Pipeline; |
522 | |
523 | struct _capnpPrivate { |
524 | CAPNP_DECLARE_STRUCT_HEADER(baefc9120c56e274, 3, 1) |
525 | #if !CAPNP_LITE |
526 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
527 | #endif // !CAPNP_LITE |
528 | }; |
529 | }; |
530 | |
531 | struct Brand { |
532 | Brand() = delete; |
533 | |
534 | class Reader; |
535 | class Builder; |
536 | class Pipeline; |
537 | struct Scope; |
538 | struct Binding; |
539 | |
540 | struct _capnpPrivate { |
541 | CAPNP_DECLARE_STRUCT_HEADER(903455f06065422b, 0, 1) |
542 | #if !CAPNP_LITE |
543 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
544 | #endif // !CAPNP_LITE |
545 | }; |
546 | }; |
547 | |
548 | struct Brand::Scope { |
549 | Scope() = delete; |
550 | |
551 | class Reader; |
552 | class Builder; |
553 | class Pipeline; |
554 | enum Which: uint16_t { |
555 | BIND, |
556 | INHERIT, |
557 | }; |
558 | |
559 | struct _capnpPrivate { |
560 | CAPNP_DECLARE_STRUCT_HEADER(abd73485a9636bc9, 2, 1) |
561 | #if !CAPNP_LITE |
562 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
563 | #endif // !CAPNP_LITE |
564 | }; |
565 | }; |
566 | |
567 | struct Brand::Binding { |
568 | Binding() = delete; |
569 | |
570 | class Reader; |
571 | class Builder; |
572 | class Pipeline; |
573 | enum Which: uint16_t { |
574 | UNBOUND, |
575 | TYPE, |
576 | }; |
577 | |
578 | struct _capnpPrivate { |
579 | CAPNP_DECLARE_STRUCT_HEADER(c863cd16969ee7fc, 1, 1) |
580 | #if !CAPNP_LITE |
581 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
582 | #endif // !CAPNP_LITE |
583 | }; |
584 | }; |
585 | |
586 | struct Value { |
587 | Value() = delete; |
588 | |
589 | class Reader; |
590 | class Builder; |
591 | class Pipeline; |
592 | enum Which: uint16_t { |
593 | VOID, |
594 | BOOL, |
595 | INT8, |
596 | INT16, |
597 | INT32, |
598 | INT64, |
599 | UINT8, |
600 | UINT16, |
601 | UINT32, |
602 | UINT64, |
603 | FLOAT32, |
604 | FLOAT64, |
605 | TEXT, |
606 | DATA, |
607 | LIST, |
608 | ENUM, |
609 | STRUCT, |
610 | INTERFACE, |
611 | ANY_POINTER, |
612 | }; |
613 | |
614 | struct _capnpPrivate { |
615 | CAPNP_DECLARE_STRUCT_HEADER(ce23dcd2d7b00c9b, 2, 1) |
616 | #if !CAPNP_LITE |
617 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
618 | #endif // !CAPNP_LITE |
619 | }; |
620 | }; |
621 | |
622 | struct Annotation { |
623 | Annotation() = delete; |
624 | |
625 | class Reader; |
626 | class Builder; |
627 | class Pipeline; |
628 | |
629 | struct _capnpPrivate { |
630 | CAPNP_DECLARE_STRUCT_HEADER(f1c8950dab257542, 1, 2) |
631 | #if !CAPNP_LITE |
632 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
633 | #endif // !CAPNP_LITE |
634 | }; |
635 | }; |
636 | |
637 | typedef ::capnp::schemas::ElementSize_d1958f7dba521926 ElementSize; |
638 | |
639 | struct CapnpVersion { |
640 | CapnpVersion() = delete; |
641 | |
642 | class Reader; |
643 | class Builder; |
644 | class Pipeline; |
645 | |
646 | struct _capnpPrivate { |
647 | CAPNP_DECLARE_STRUCT_HEADER(d85d305b7d839963, 1, 0) |
648 | #if !CAPNP_LITE |
649 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
650 | #endif // !CAPNP_LITE |
651 | }; |
652 | }; |
653 | |
654 | struct CodeGeneratorRequest { |
655 | CodeGeneratorRequest() = delete; |
656 | |
657 | class Reader; |
658 | class Builder; |
659 | class Pipeline; |
660 | struct RequestedFile; |
661 | |
662 | struct _capnpPrivate { |
663 | CAPNP_DECLARE_STRUCT_HEADER(bfc546f6210ad7ce, 0, 4) |
664 | #if !CAPNP_LITE |
665 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
666 | #endif // !CAPNP_LITE |
667 | }; |
668 | }; |
669 | |
670 | struct CodeGeneratorRequest::RequestedFile { |
671 | RequestedFile() = delete; |
672 | |
673 | class Reader; |
674 | class Builder; |
675 | class Pipeline; |
676 | struct Import; |
677 | |
678 | struct _capnpPrivate { |
679 | CAPNP_DECLARE_STRUCT_HEADER(cfea0eb02e810062, 1, 2) |
680 | #if !CAPNP_LITE |
681 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
682 | #endif // !CAPNP_LITE |
683 | }; |
684 | }; |
685 | |
686 | struct CodeGeneratorRequest::RequestedFile::Import { |
687 | Import() = delete; |
688 | |
689 | class Reader; |
690 | class Builder; |
691 | class Pipeline; |
692 | |
693 | struct _capnpPrivate { |
694 | CAPNP_DECLARE_STRUCT_HEADER(ae504193122357e5, 1, 1) |
695 | #if !CAPNP_LITE |
696 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
697 | #endif // !CAPNP_LITE |
698 | }; |
699 | }; |
700 | |
701 | // ======================================================================================= |
702 | |
703 | class Node::Reader { |
704 | public: |
705 | typedef Node Reads; |
706 | |
707 | Reader() = default; |
708 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
709 | |
710 | inline ::capnp::MessageSize totalSize() const { |
711 | return _reader.totalSize().asPublic(); |
712 | } |
713 | |
714 | #if !CAPNP_LITE |
715 | inline ::kj::StringTree toString() const { |
716 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
717 | } |
718 | #endif // !CAPNP_LITE |
719 | |
720 | inline Which which() const; |
721 | inline ::uint64_t getId() const; |
722 | |
723 | inline bool hasDisplayName() const; |
724 | inline ::capnp::Text::Reader getDisplayName() const; |
725 | |
726 | inline ::uint32_t getDisplayNamePrefixLength() const; |
727 | |
728 | inline ::uint64_t getScopeId() const; |
729 | |
730 | inline bool hasNestedNodes() const; |
731 | inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader getNestedNodes() const; |
732 | |
733 | inline bool hasAnnotations() const; |
734 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; |
735 | |
736 | inline bool isFile() const; |
737 | inline ::capnp::Void getFile() const; |
738 | |
739 | inline bool isStruct() const; |
740 | inline typename Struct::Reader getStruct() const; |
741 | |
742 | inline bool isEnum() const; |
743 | inline typename Enum::Reader getEnum() const; |
744 | |
745 | inline bool isInterface() const; |
746 | inline typename Interface::Reader getInterface() const; |
747 | |
748 | inline bool isConst() const; |
749 | inline typename Const::Reader getConst() const; |
750 | |
751 | inline bool isAnnotation() const; |
752 | inline typename Annotation::Reader getAnnotation() const; |
753 | |
754 | inline bool hasParameters() const; |
755 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader getParameters() const; |
756 | |
757 | inline bool getIsGeneric() const; |
758 | |
759 | private: |
760 | ::capnp::_::StructReader _reader; |
761 | template <typename, ::capnp::Kind> |
762 | friend struct ::capnp::ToDynamic_; |
763 | template <typename, ::capnp::Kind> |
764 | friend struct ::capnp::_::PointerHelpers; |
765 | template <typename, ::capnp::Kind> |
766 | friend struct ::capnp::List; |
767 | friend class ::capnp::MessageBuilder; |
768 | friend class ::capnp::Orphanage; |
769 | }; |
770 | |
771 | class Node::Builder { |
772 | public: |
773 | typedef Node Builds; |
774 | |
775 | Builder() = delete; // Deleted to discourage incorrect usage. |
776 | // You can explicitly initialize to nullptr instead. |
777 | inline Builder(decltype(nullptr)) {} |
778 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
779 | inline operator Reader() const { return Reader(_builder.asReader()); } |
780 | inline Reader asReader() const { return *this; } |
781 | |
782 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
783 | #if !CAPNP_LITE |
784 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
785 | #endif // !CAPNP_LITE |
786 | |
787 | inline Which which(); |
788 | inline ::uint64_t getId(); |
789 | inline void setId( ::uint64_t value); |
790 | |
791 | inline bool hasDisplayName(); |
792 | inline ::capnp::Text::Builder getDisplayName(); |
793 | inline void setDisplayName( ::capnp::Text::Reader value); |
794 | inline ::capnp::Text::Builder initDisplayName(unsigned int size); |
795 | inline void adoptDisplayName(::capnp::Orphan< ::capnp::Text>&& value); |
796 | inline ::capnp::Orphan< ::capnp::Text> disownDisplayName(); |
797 | |
798 | inline ::uint32_t getDisplayNamePrefixLength(); |
799 | inline void setDisplayNamePrefixLength( ::uint32_t value); |
800 | |
801 | inline ::uint64_t getScopeId(); |
802 | inline void setScopeId( ::uint64_t value); |
803 | |
804 | inline bool hasNestedNodes(); |
805 | inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder getNestedNodes(); |
806 | inline void setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader value); |
807 | inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder initNestedNodes(unsigned int size); |
808 | inline void adoptNestedNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>&& value); |
809 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>> disownNestedNodes(); |
810 | |
811 | inline bool hasAnnotations(); |
812 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); |
813 | inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); |
814 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); |
815 | inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); |
816 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); |
817 | |
818 | inline bool isFile(); |
819 | inline ::capnp::Void getFile(); |
820 | inline void setFile( ::capnp::Void value = ::capnp::VOID); |
821 | |
822 | inline bool isStruct(); |
823 | inline typename Struct::Builder getStruct(); |
824 | inline typename Struct::Builder initStruct(); |
825 | |
826 | inline bool isEnum(); |
827 | inline typename Enum::Builder getEnum(); |
828 | inline typename Enum::Builder initEnum(); |
829 | |
830 | inline bool isInterface(); |
831 | inline typename Interface::Builder getInterface(); |
832 | inline typename Interface::Builder initInterface(); |
833 | |
834 | inline bool isConst(); |
835 | inline typename Const::Builder getConst(); |
836 | inline typename Const::Builder initConst(); |
837 | |
838 | inline bool isAnnotation(); |
839 | inline typename Annotation::Builder getAnnotation(); |
840 | inline typename Annotation::Builder initAnnotation(); |
841 | |
842 | inline bool hasParameters(); |
843 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder getParameters(); |
844 | inline void setParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value); |
845 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder initParameters(unsigned int size); |
846 | inline void adoptParameters(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value); |
847 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> disownParameters(); |
848 | |
849 | inline bool getIsGeneric(); |
850 | inline void setIsGeneric(bool value); |
851 | |
852 | private: |
853 | ::capnp::_::StructBuilder _builder; |
854 | template <typename, ::capnp::Kind> |
855 | friend struct ::capnp::ToDynamic_; |
856 | friend class ::capnp::Orphanage; |
857 | template <typename, ::capnp::Kind> |
858 | friend struct ::capnp::_::PointerHelpers; |
859 | }; |
860 | |
861 | #if !CAPNP_LITE |
862 | class Node::Pipeline { |
863 | public: |
864 | typedef Node Pipelines; |
865 | |
866 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
867 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
868 | : _typeless(kj::mv(typeless)) {} |
869 | |
870 | private: |
871 | ::capnp::AnyPointer::Pipeline _typeless; |
872 | friend class ::capnp::PipelineHook; |
873 | template <typename, ::capnp::Kind> |
874 | friend struct ::capnp::ToDynamic_; |
875 | }; |
876 | #endif // !CAPNP_LITE |
877 | |
878 | class Node::Parameter::Reader { |
879 | public: |
880 | typedef Parameter Reads; |
881 | |
882 | Reader() = default; |
883 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
884 | |
885 | inline ::capnp::MessageSize totalSize() const { |
886 | return _reader.totalSize().asPublic(); |
887 | } |
888 | |
889 | #if !CAPNP_LITE |
890 | inline ::kj::StringTree toString() const { |
891 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
892 | } |
893 | #endif // !CAPNP_LITE |
894 | |
895 | inline bool hasName() const; |
896 | inline ::capnp::Text::Reader getName() const; |
897 | |
898 | private: |
899 | ::capnp::_::StructReader _reader; |
900 | template <typename, ::capnp::Kind> |
901 | friend struct ::capnp::ToDynamic_; |
902 | template <typename, ::capnp::Kind> |
903 | friend struct ::capnp::_::PointerHelpers; |
904 | template <typename, ::capnp::Kind> |
905 | friend struct ::capnp::List; |
906 | friend class ::capnp::MessageBuilder; |
907 | friend class ::capnp::Orphanage; |
908 | }; |
909 | |
910 | class Node::Parameter::Builder { |
911 | public: |
912 | typedef Parameter Builds; |
913 | |
914 | Builder() = delete; // Deleted to discourage incorrect usage. |
915 | // You can explicitly initialize to nullptr instead. |
916 | inline Builder(decltype(nullptr)) {} |
917 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
918 | inline operator Reader() const { return Reader(_builder.asReader()); } |
919 | inline Reader asReader() const { return *this; } |
920 | |
921 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
922 | #if !CAPNP_LITE |
923 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
924 | #endif // !CAPNP_LITE |
925 | |
926 | inline bool hasName(); |
927 | inline ::capnp::Text::Builder getName(); |
928 | inline void setName( ::capnp::Text::Reader value); |
929 | inline ::capnp::Text::Builder initName(unsigned int size); |
930 | inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); |
931 | inline ::capnp::Orphan< ::capnp::Text> disownName(); |
932 | |
933 | private: |
934 | ::capnp::_::StructBuilder _builder; |
935 | template <typename, ::capnp::Kind> |
936 | friend struct ::capnp::ToDynamic_; |
937 | friend class ::capnp::Orphanage; |
938 | template <typename, ::capnp::Kind> |
939 | friend struct ::capnp::_::PointerHelpers; |
940 | }; |
941 | |
942 | #if !CAPNP_LITE |
943 | class Node::Parameter::Pipeline { |
944 | public: |
945 | typedef Parameter Pipelines; |
946 | |
947 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
948 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
949 | : _typeless(kj::mv(typeless)) {} |
950 | |
951 | private: |
952 | ::capnp::AnyPointer::Pipeline _typeless; |
953 | friend class ::capnp::PipelineHook; |
954 | template <typename, ::capnp::Kind> |
955 | friend struct ::capnp::ToDynamic_; |
956 | }; |
957 | #endif // !CAPNP_LITE |
958 | |
959 | class Node::NestedNode::Reader { |
960 | public: |
961 | typedef NestedNode Reads; |
962 | |
963 | Reader() = default; |
964 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
965 | |
966 | inline ::capnp::MessageSize totalSize() const { |
967 | return _reader.totalSize().asPublic(); |
968 | } |
969 | |
970 | #if !CAPNP_LITE |
971 | inline ::kj::StringTree toString() const { |
972 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
973 | } |
974 | #endif // !CAPNP_LITE |
975 | |
976 | inline bool hasName() const; |
977 | inline ::capnp::Text::Reader getName() const; |
978 | |
979 | inline ::uint64_t getId() const; |
980 | |
981 | private: |
982 | ::capnp::_::StructReader _reader; |
983 | template <typename, ::capnp::Kind> |
984 | friend struct ::capnp::ToDynamic_; |
985 | template <typename, ::capnp::Kind> |
986 | friend struct ::capnp::_::PointerHelpers; |
987 | template <typename, ::capnp::Kind> |
988 | friend struct ::capnp::List; |
989 | friend class ::capnp::MessageBuilder; |
990 | friend class ::capnp::Orphanage; |
991 | }; |
992 | |
993 | class Node::NestedNode::Builder { |
994 | public: |
995 | typedef NestedNode Builds; |
996 | |
997 | Builder() = delete; // Deleted to discourage incorrect usage. |
998 | // You can explicitly initialize to nullptr instead. |
999 | inline Builder(decltype(nullptr)) {} |
1000 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1001 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1002 | inline Reader asReader() const { return *this; } |
1003 | |
1004 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1005 | #if !CAPNP_LITE |
1006 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1007 | #endif // !CAPNP_LITE |
1008 | |
1009 | inline bool hasName(); |
1010 | inline ::capnp::Text::Builder getName(); |
1011 | inline void setName( ::capnp::Text::Reader value); |
1012 | inline ::capnp::Text::Builder initName(unsigned int size); |
1013 | inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); |
1014 | inline ::capnp::Orphan< ::capnp::Text> disownName(); |
1015 | |
1016 | inline ::uint64_t getId(); |
1017 | inline void setId( ::uint64_t value); |
1018 | |
1019 | private: |
1020 | ::capnp::_::StructBuilder _builder; |
1021 | template <typename, ::capnp::Kind> |
1022 | friend struct ::capnp::ToDynamic_; |
1023 | friend class ::capnp::Orphanage; |
1024 | template <typename, ::capnp::Kind> |
1025 | friend struct ::capnp::_::PointerHelpers; |
1026 | }; |
1027 | |
1028 | #if !CAPNP_LITE |
1029 | class Node::NestedNode::Pipeline { |
1030 | public: |
1031 | typedef NestedNode Pipelines; |
1032 | |
1033 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1034 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1035 | : _typeless(kj::mv(typeless)) {} |
1036 | |
1037 | private: |
1038 | ::capnp::AnyPointer::Pipeline _typeless; |
1039 | friend class ::capnp::PipelineHook; |
1040 | template <typename, ::capnp::Kind> |
1041 | friend struct ::capnp::ToDynamic_; |
1042 | }; |
1043 | #endif // !CAPNP_LITE |
1044 | |
1045 | class Node::SourceInfo::Reader { |
1046 | public: |
1047 | typedef SourceInfo Reads; |
1048 | |
1049 | Reader() = default; |
1050 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1051 | |
1052 | inline ::capnp::MessageSize totalSize() const { |
1053 | return _reader.totalSize().asPublic(); |
1054 | } |
1055 | |
1056 | #if !CAPNP_LITE |
1057 | inline ::kj::StringTree toString() const { |
1058 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1059 | } |
1060 | #endif // !CAPNP_LITE |
1061 | |
1062 | inline ::uint64_t getId() const; |
1063 | |
1064 | inline bool hasDocComment() const; |
1065 | inline ::capnp::Text::Reader getDocComment() const; |
1066 | |
1067 | inline bool hasMembers() const; |
1068 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader getMembers() const; |
1069 | |
1070 | private: |
1071 | ::capnp::_::StructReader _reader; |
1072 | template <typename, ::capnp::Kind> |
1073 | friend struct ::capnp::ToDynamic_; |
1074 | template <typename, ::capnp::Kind> |
1075 | friend struct ::capnp::_::PointerHelpers; |
1076 | template <typename, ::capnp::Kind> |
1077 | friend struct ::capnp::List; |
1078 | friend class ::capnp::MessageBuilder; |
1079 | friend class ::capnp::Orphanage; |
1080 | }; |
1081 | |
1082 | class Node::SourceInfo::Builder { |
1083 | public: |
1084 | typedef SourceInfo Builds; |
1085 | |
1086 | Builder() = delete; // Deleted to discourage incorrect usage. |
1087 | // You can explicitly initialize to nullptr instead. |
1088 | inline Builder(decltype(nullptr)) {} |
1089 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1090 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1091 | inline Reader asReader() const { return *this; } |
1092 | |
1093 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1094 | #if !CAPNP_LITE |
1095 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1096 | #endif // !CAPNP_LITE |
1097 | |
1098 | inline ::uint64_t getId(); |
1099 | inline void setId( ::uint64_t value); |
1100 | |
1101 | inline bool hasDocComment(); |
1102 | inline ::capnp::Text::Builder getDocComment(); |
1103 | inline void setDocComment( ::capnp::Text::Reader value); |
1104 | inline ::capnp::Text::Builder initDocComment(unsigned int size); |
1105 | inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value); |
1106 | inline ::capnp::Orphan< ::capnp::Text> disownDocComment(); |
1107 | |
1108 | inline bool hasMembers(); |
1109 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder getMembers(); |
1110 | inline void setMembers( ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader value); |
1111 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder initMembers(unsigned int size); |
1112 | inline void adoptMembers(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>&& value); |
1113 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>> disownMembers(); |
1114 | |
1115 | private: |
1116 | ::capnp::_::StructBuilder _builder; |
1117 | template <typename, ::capnp::Kind> |
1118 | friend struct ::capnp::ToDynamic_; |
1119 | friend class ::capnp::Orphanage; |
1120 | template <typename, ::capnp::Kind> |
1121 | friend struct ::capnp::_::PointerHelpers; |
1122 | }; |
1123 | |
1124 | #if !CAPNP_LITE |
1125 | class Node::SourceInfo::Pipeline { |
1126 | public: |
1127 | typedef SourceInfo Pipelines; |
1128 | |
1129 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1130 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1131 | : _typeless(kj::mv(typeless)) {} |
1132 | |
1133 | private: |
1134 | ::capnp::AnyPointer::Pipeline _typeless; |
1135 | friend class ::capnp::PipelineHook; |
1136 | template <typename, ::capnp::Kind> |
1137 | friend struct ::capnp::ToDynamic_; |
1138 | }; |
1139 | #endif // !CAPNP_LITE |
1140 | |
1141 | class Node::SourceInfo::Member::Reader { |
1142 | public: |
1143 | typedef Member Reads; |
1144 | |
1145 | Reader() = default; |
1146 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1147 | |
1148 | inline ::capnp::MessageSize totalSize() const { |
1149 | return _reader.totalSize().asPublic(); |
1150 | } |
1151 | |
1152 | #if !CAPNP_LITE |
1153 | inline ::kj::StringTree toString() const { |
1154 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1155 | } |
1156 | #endif // !CAPNP_LITE |
1157 | |
1158 | inline bool hasDocComment() const; |
1159 | inline ::capnp::Text::Reader getDocComment() const; |
1160 | |
1161 | private: |
1162 | ::capnp::_::StructReader _reader; |
1163 | template <typename, ::capnp::Kind> |
1164 | friend struct ::capnp::ToDynamic_; |
1165 | template <typename, ::capnp::Kind> |
1166 | friend struct ::capnp::_::PointerHelpers; |
1167 | template <typename, ::capnp::Kind> |
1168 | friend struct ::capnp::List; |
1169 | friend class ::capnp::MessageBuilder; |
1170 | friend class ::capnp::Orphanage; |
1171 | }; |
1172 | |
1173 | class Node::SourceInfo::Member::Builder { |
1174 | public: |
1175 | typedef Member Builds; |
1176 | |
1177 | Builder() = delete; // Deleted to discourage incorrect usage. |
1178 | // You can explicitly initialize to nullptr instead. |
1179 | inline Builder(decltype(nullptr)) {} |
1180 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1181 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1182 | inline Reader asReader() const { return *this; } |
1183 | |
1184 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1185 | #if !CAPNP_LITE |
1186 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1187 | #endif // !CAPNP_LITE |
1188 | |
1189 | inline bool hasDocComment(); |
1190 | inline ::capnp::Text::Builder getDocComment(); |
1191 | inline void setDocComment( ::capnp::Text::Reader value); |
1192 | inline ::capnp::Text::Builder initDocComment(unsigned int size); |
1193 | inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value); |
1194 | inline ::capnp::Orphan< ::capnp::Text> disownDocComment(); |
1195 | |
1196 | private: |
1197 | ::capnp::_::StructBuilder _builder; |
1198 | template <typename, ::capnp::Kind> |
1199 | friend struct ::capnp::ToDynamic_; |
1200 | friend class ::capnp::Orphanage; |
1201 | template <typename, ::capnp::Kind> |
1202 | friend struct ::capnp::_::PointerHelpers; |
1203 | }; |
1204 | |
1205 | #if !CAPNP_LITE |
1206 | class Node::SourceInfo::Member::Pipeline { |
1207 | public: |
1208 | typedef Member Pipelines; |
1209 | |
1210 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1211 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1212 | : _typeless(kj::mv(typeless)) {} |
1213 | |
1214 | private: |
1215 | ::capnp::AnyPointer::Pipeline _typeless; |
1216 | friend class ::capnp::PipelineHook; |
1217 | template <typename, ::capnp::Kind> |
1218 | friend struct ::capnp::ToDynamic_; |
1219 | }; |
1220 | #endif // !CAPNP_LITE |
1221 | |
1222 | class Node::Struct::Reader { |
1223 | public: |
1224 | typedef Struct Reads; |
1225 | |
1226 | Reader() = default; |
1227 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1228 | |
1229 | inline ::capnp::MessageSize totalSize() const { |
1230 | return _reader.totalSize().asPublic(); |
1231 | } |
1232 | |
1233 | #if !CAPNP_LITE |
1234 | inline ::kj::StringTree toString() const { |
1235 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1236 | } |
1237 | #endif // !CAPNP_LITE |
1238 | |
1239 | inline ::uint16_t getDataWordCount() const; |
1240 | |
1241 | inline ::uint16_t getPointerCount() const; |
1242 | |
1243 | inline ::capnp::schema::ElementSize getPreferredListEncoding() const; |
1244 | |
1245 | inline bool getIsGroup() const; |
1246 | |
1247 | inline ::uint16_t getDiscriminantCount() const; |
1248 | |
1249 | inline ::uint32_t getDiscriminantOffset() const; |
1250 | |
1251 | inline bool hasFields() const; |
1252 | inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader getFields() const; |
1253 | |
1254 | private: |
1255 | ::capnp::_::StructReader _reader; |
1256 | template <typename, ::capnp::Kind> |
1257 | friend struct ::capnp::ToDynamic_; |
1258 | template <typename, ::capnp::Kind> |
1259 | friend struct ::capnp::_::PointerHelpers; |
1260 | template <typename, ::capnp::Kind> |
1261 | friend struct ::capnp::List; |
1262 | friend class ::capnp::MessageBuilder; |
1263 | friend class ::capnp::Orphanage; |
1264 | }; |
1265 | |
1266 | class Node::Struct::Builder { |
1267 | public: |
1268 | typedef Struct Builds; |
1269 | |
1270 | Builder() = delete; // Deleted to discourage incorrect usage. |
1271 | // You can explicitly initialize to nullptr instead. |
1272 | inline Builder(decltype(nullptr)) {} |
1273 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1274 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1275 | inline Reader asReader() const { return *this; } |
1276 | |
1277 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1278 | #if !CAPNP_LITE |
1279 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1280 | #endif // !CAPNP_LITE |
1281 | |
1282 | inline ::uint16_t getDataWordCount(); |
1283 | inline void setDataWordCount( ::uint16_t value); |
1284 | |
1285 | inline ::uint16_t getPointerCount(); |
1286 | inline void setPointerCount( ::uint16_t value); |
1287 | |
1288 | inline ::capnp::schema::ElementSize getPreferredListEncoding(); |
1289 | inline void setPreferredListEncoding( ::capnp::schema::ElementSize value); |
1290 | |
1291 | inline bool getIsGroup(); |
1292 | inline void setIsGroup(bool value); |
1293 | |
1294 | inline ::uint16_t getDiscriminantCount(); |
1295 | inline void setDiscriminantCount( ::uint16_t value); |
1296 | |
1297 | inline ::uint32_t getDiscriminantOffset(); |
1298 | inline void setDiscriminantOffset( ::uint32_t value); |
1299 | |
1300 | inline bool hasFields(); |
1301 | inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder getFields(); |
1302 | inline void setFields( ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader value); |
1303 | inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder initFields(unsigned int size); |
1304 | inline void adoptFields(::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>&& value); |
1305 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>> disownFields(); |
1306 | |
1307 | private: |
1308 | ::capnp::_::StructBuilder _builder; |
1309 | template <typename, ::capnp::Kind> |
1310 | friend struct ::capnp::ToDynamic_; |
1311 | friend class ::capnp::Orphanage; |
1312 | template <typename, ::capnp::Kind> |
1313 | friend struct ::capnp::_::PointerHelpers; |
1314 | }; |
1315 | |
1316 | #if !CAPNP_LITE |
1317 | class Node::Struct::Pipeline { |
1318 | public: |
1319 | typedef Struct Pipelines; |
1320 | |
1321 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1322 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1323 | : _typeless(kj::mv(typeless)) {} |
1324 | |
1325 | private: |
1326 | ::capnp::AnyPointer::Pipeline _typeless; |
1327 | friend class ::capnp::PipelineHook; |
1328 | template <typename, ::capnp::Kind> |
1329 | friend struct ::capnp::ToDynamic_; |
1330 | }; |
1331 | #endif // !CAPNP_LITE |
1332 | |
1333 | class Node::Enum::Reader { |
1334 | public: |
1335 | typedef Enum Reads; |
1336 | |
1337 | Reader() = default; |
1338 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1339 | |
1340 | inline ::capnp::MessageSize totalSize() const { |
1341 | return _reader.totalSize().asPublic(); |
1342 | } |
1343 | |
1344 | #if !CAPNP_LITE |
1345 | inline ::kj::StringTree toString() const { |
1346 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1347 | } |
1348 | #endif // !CAPNP_LITE |
1349 | |
1350 | inline bool hasEnumerants() const; |
1351 | inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader getEnumerants() const; |
1352 | |
1353 | private: |
1354 | ::capnp::_::StructReader _reader; |
1355 | template <typename, ::capnp::Kind> |
1356 | friend struct ::capnp::ToDynamic_; |
1357 | template <typename, ::capnp::Kind> |
1358 | friend struct ::capnp::_::PointerHelpers; |
1359 | template <typename, ::capnp::Kind> |
1360 | friend struct ::capnp::List; |
1361 | friend class ::capnp::MessageBuilder; |
1362 | friend class ::capnp::Orphanage; |
1363 | }; |
1364 | |
1365 | class Node::Enum::Builder { |
1366 | public: |
1367 | typedef Enum Builds; |
1368 | |
1369 | Builder() = delete; // Deleted to discourage incorrect usage. |
1370 | // You can explicitly initialize to nullptr instead. |
1371 | inline Builder(decltype(nullptr)) {} |
1372 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1373 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1374 | inline Reader asReader() const { return *this; } |
1375 | |
1376 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1377 | #if !CAPNP_LITE |
1378 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1379 | #endif // !CAPNP_LITE |
1380 | |
1381 | inline bool hasEnumerants(); |
1382 | inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder getEnumerants(); |
1383 | inline void setEnumerants( ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader value); |
1384 | inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder initEnumerants(unsigned int size); |
1385 | inline void adoptEnumerants(::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>&& value); |
1386 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>> disownEnumerants(); |
1387 | |
1388 | private: |
1389 | ::capnp::_::StructBuilder _builder; |
1390 | template <typename, ::capnp::Kind> |
1391 | friend struct ::capnp::ToDynamic_; |
1392 | friend class ::capnp::Orphanage; |
1393 | template <typename, ::capnp::Kind> |
1394 | friend struct ::capnp::_::PointerHelpers; |
1395 | }; |
1396 | |
1397 | #if !CAPNP_LITE |
1398 | class Node::Enum::Pipeline { |
1399 | public: |
1400 | typedef Enum Pipelines; |
1401 | |
1402 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1403 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1404 | : _typeless(kj::mv(typeless)) {} |
1405 | |
1406 | private: |
1407 | ::capnp::AnyPointer::Pipeline _typeless; |
1408 | friend class ::capnp::PipelineHook; |
1409 | template <typename, ::capnp::Kind> |
1410 | friend struct ::capnp::ToDynamic_; |
1411 | }; |
1412 | #endif // !CAPNP_LITE |
1413 | |
1414 | class Node::Interface::Reader { |
1415 | public: |
1416 | typedef Interface Reads; |
1417 | |
1418 | Reader() = default; |
1419 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1420 | |
1421 | inline ::capnp::MessageSize totalSize() const { |
1422 | return _reader.totalSize().asPublic(); |
1423 | } |
1424 | |
1425 | #if !CAPNP_LITE |
1426 | inline ::kj::StringTree toString() const { |
1427 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1428 | } |
1429 | #endif // !CAPNP_LITE |
1430 | |
1431 | inline bool hasMethods() const; |
1432 | inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader getMethods() const; |
1433 | |
1434 | inline bool hasSuperclasses() const; |
1435 | inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader getSuperclasses() const; |
1436 | |
1437 | private: |
1438 | ::capnp::_::StructReader _reader; |
1439 | template <typename, ::capnp::Kind> |
1440 | friend struct ::capnp::ToDynamic_; |
1441 | template <typename, ::capnp::Kind> |
1442 | friend struct ::capnp::_::PointerHelpers; |
1443 | template <typename, ::capnp::Kind> |
1444 | friend struct ::capnp::List; |
1445 | friend class ::capnp::MessageBuilder; |
1446 | friend class ::capnp::Orphanage; |
1447 | }; |
1448 | |
1449 | class Node::Interface::Builder { |
1450 | public: |
1451 | typedef Interface Builds; |
1452 | |
1453 | Builder() = delete; // Deleted to discourage incorrect usage. |
1454 | // You can explicitly initialize to nullptr instead. |
1455 | inline Builder(decltype(nullptr)) {} |
1456 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1457 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1458 | inline Reader asReader() const { return *this; } |
1459 | |
1460 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1461 | #if !CAPNP_LITE |
1462 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1463 | #endif // !CAPNP_LITE |
1464 | |
1465 | inline bool hasMethods(); |
1466 | inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder getMethods(); |
1467 | inline void setMethods( ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader value); |
1468 | inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder initMethods(unsigned int size); |
1469 | inline void adoptMethods(::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>&& value); |
1470 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>> disownMethods(); |
1471 | |
1472 | inline bool hasSuperclasses(); |
1473 | inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder getSuperclasses(); |
1474 | inline void setSuperclasses( ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader value); |
1475 | inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder initSuperclasses(unsigned int size); |
1476 | inline void adoptSuperclasses(::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>&& value); |
1477 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>> disownSuperclasses(); |
1478 | |
1479 | private: |
1480 | ::capnp::_::StructBuilder _builder; |
1481 | template <typename, ::capnp::Kind> |
1482 | friend struct ::capnp::ToDynamic_; |
1483 | friend class ::capnp::Orphanage; |
1484 | template <typename, ::capnp::Kind> |
1485 | friend struct ::capnp::_::PointerHelpers; |
1486 | }; |
1487 | |
1488 | #if !CAPNP_LITE |
1489 | class Node::Interface::Pipeline { |
1490 | public: |
1491 | typedef Interface Pipelines; |
1492 | |
1493 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1494 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1495 | : _typeless(kj::mv(typeless)) {} |
1496 | |
1497 | private: |
1498 | ::capnp::AnyPointer::Pipeline _typeless; |
1499 | friend class ::capnp::PipelineHook; |
1500 | template <typename, ::capnp::Kind> |
1501 | friend struct ::capnp::ToDynamic_; |
1502 | }; |
1503 | #endif // !CAPNP_LITE |
1504 | |
1505 | class Node::Const::Reader { |
1506 | public: |
1507 | typedef Const Reads; |
1508 | |
1509 | Reader() = default; |
1510 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1511 | |
1512 | inline ::capnp::MessageSize totalSize() const { |
1513 | return _reader.totalSize().asPublic(); |
1514 | } |
1515 | |
1516 | #if !CAPNP_LITE |
1517 | inline ::kj::StringTree toString() const { |
1518 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1519 | } |
1520 | #endif // !CAPNP_LITE |
1521 | |
1522 | inline bool hasType() const; |
1523 | inline ::capnp::schema::Type::Reader getType() const; |
1524 | |
1525 | inline bool hasValue() const; |
1526 | inline ::capnp::schema::Value::Reader getValue() const; |
1527 | |
1528 | private: |
1529 | ::capnp::_::StructReader _reader; |
1530 | template <typename, ::capnp::Kind> |
1531 | friend struct ::capnp::ToDynamic_; |
1532 | template <typename, ::capnp::Kind> |
1533 | friend struct ::capnp::_::PointerHelpers; |
1534 | template <typename, ::capnp::Kind> |
1535 | friend struct ::capnp::List; |
1536 | friend class ::capnp::MessageBuilder; |
1537 | friend class ::capnp::Orphanage; |
1538 | }; |
1539 | |
1540 | class Node::Const::Builder { |
1541 | public: |
1542 | typedef Const Builds; |
1543 | |
1544 | Builder() = delete; // Deleted to discourage incorrect usage. |
1545 | // You can explicitly initialize to nullptr instead. |
1546 | inline Builder(decltype(nullptr)) {} |
1547 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1548 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1549 | inline Reader asReader() const { return *this; } |
1550 | |
1551 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1552 | #if !CAPNP_LITE |
1553 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1554 | #endif // !CAPNP_LITE |
1555 | |
1556 | inline bool hasType(); |
1557 | inline ::capnp::schema::Type::Builder getType(); |
1558 | inline void setType( ::capnp::schema::Type::Reader value); |
1559 | inline ::capnp::schema::Type::Builder initType(); |
1560 | inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); |
1561 | inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); |
1562 | |
1563 | inline bool hasValue(); |
1564 | inline ::capnp::schema::Value::Builder getValue(); |
1565 | inline void setValue( ::capnp::schema::Value::Reader value); |
1566 | inline ::capnp::schema::Value::Builder initValue(); |
1567 | inline void adoptValue(::capnp::Orphan< ::capnp::schema::Value>&& value); |
1568 | inline ::capnp::Orphan< ::capnp::schema::Value> disownValue(); |
1569 | |
1570 | private: |
1571 | ::capnp::_::StructBuilder _builder; |
1572 | template <typename, ::capnp::Kind> |
1573 | friend struct ::capnp::ToDynamic_; |
1574 | friend class ::capnp::Orphanage; |
1575 | template <typename, ::capnp::Kind> |
1576 | friend struct ::capnp::_::PointerHelpers; |
1577 | }; |
1578 | |
1579 | #if !CAPNP_LITE |
1580 | class Node::Const::Pipeline { |
1581 | public: |
1582 | typedef Const Pipelines; |
1583 | |
1584 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1585 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1586 | : _typeless(kj::mv(typeless)) {} |
1587 | |
1588 | inline ::capnp::schema::Type::Pipeline getType(); |
1589 | inline ::capnp::schema::Value::Pipeline getValue(); |
1590 | private: |
1591 | ::capnp::AnyPointer::Pipeline _typeless; |
1592 | friend class ::capnp::PipelineHook; |
1593 | template <typename, ::capnp::Kind> |
1594 | friend struct ::capnp::ToDynamic_; |
1595 | }; |
1596 | #endif // !CAPNP_LITE |
1597 | |
1598 | class Node::Annotation::Reader { |
1599 | public: |
1600 | typedef Annotation Reads; |
1601 | |
1602 | Reader() = default; |
1603 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1604 | |
1605 | inline ::capnp::MessageSize totalSize() const { |
1606 | return _reader.totalSize().asPublic(); |
1607 | } |
1608 | |
1609 | #if !CAPNP_LITE |
1610 | inline ::kj::StringTree toString() const { |
1611 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1612 | } |
1613 | #endif // !CAPNP_LITE |
1614 | |
1615 | inline bool hasType() const; |
1616 | inline ::capnp::schema::Type::Reader getType() const; |
1617 | |
1618 | inline bool getTargetsFile() const; |
1619 | |
1620 | inline bool getTargetsConst() const; |
1621 | |
1622 | inline bool getTargetsEnum() const; |
1623 | |
1624 | inline bool getTargetsEnumerant() const; |
1625 | |
1626 | inline bool getTargetsStruct() const; |
1627 | |
1628 | inline bool getTargetsField() const; |
1629 | |
1630 | inline bool getTargetsUnion() const; |
1631 | |
1632 | inline bool getTargetsGroup() const; |
1633 | |
1634 | inline bool getTargetsInterface() const; |
1635 | |
1636 | inline bool getTargetsMethod() const; |
1637 | |
1638 | inline bool getTargetsParam() const; |
1639 | |
1640 | inline bool getTargetsAnnotation() const; |
1641 | |
1642 | private: |
1643 | ::capnp::_::StructReader _reader; |
1644 | template <typename, ::capnp::Kind> |
1645 | friend struct ::capnp::ToDynamic_; |
1646 | template <typename, ::capnp::Kind> |
1647 | friend struct ::capnp::_::PointerHelpers; |
1648 | template <typename, ::capnp::Kind> |
1649 | friend struct ::capnp::List; |
1650 | friend class ::capnp::MessageBuilder; |
1651 | friend class ::capnp::Orphanage; |
1652 | }; |
1653 | |
1654 | class Node::Annotation::Builder { |
1655 | public: |
1656 | typedef Annotation Builds; |
1657 | |
1658 | Builder() = delete; // Deleted to discourage incorrect usage. |
1659 | // You can explicitly initialize to nullptr instead. |
1660 | inline Builder(decltype(nullptr)) {} |
1661 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1662 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1663 | inline Reader asReader() const { return *this; } |
1664 | |
1665 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1666 | #if !CAPNP_LITE |
1667 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1668 | #endif // !CAPNP_LITE |
1669 | |
1670 | inline bool hasType(); |
1671 | inline ::capnp::schema::Type::Builder getType(); |
1672 | inline void setType( ::capnp::schema::Type::Reader value); |
1673 | inline ::capnp::schema::Type::Builder initType(); |
1674 | inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); |
1675 | inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); |
1676 | |
1677 | inline bool getTargetsFile(); |
1678 | inline void setTargetsFile(bool value); |
1679 | |
1680 | inline bool getTargetsConst(); |
1681 | inline void setTargetsConst(bool value); |
1682 | |
1683 | inline bool getTargetsEnum(); |
1684 | inline void setTargetsEnum(bool value); |
1685 | |
1686 | inline bool getTargetsEnumerant(); |
1687 | inline void setTargetsEnumerant(bool value); |
1688 | |
1689 | inline bool getTargetsStruct(); |
1690 | inline void setTargetsStruct(bool value); |
1691 | |
1692 | inline bool getTargetsField(); |
1693 | inline void setTargetsField(bool value); |
1694 | |
1695 | inline bool getTargetsUnion(); |
1696 | inline void setTargetsUnion(bool value); |
1697 | |
1698 | inline bool getTargetsGroup(); |
1699 | inline void setTargetsGroup(bool value); |
1700 | |
1701 | inline bool getTargetsInterface(); |
1702 | inline void setTargetsInterface(bool value); |
1703 | |
1704 | inline bool getTargetsMethod(); |
1705 | inline void setTargetsMethod(bool value); |
1706 | |
1707 | inline bool getTargetsParam(); |
1708 | inline void setTargetsParam(bool value); |
1709 | |
1710 | inline bool getTargetsAnnotation(); |
1711 | inline void setTargetsAnnotation(bool value); |
1712 | |
1713 | private: |
1714 | ::capnp::_::StructBuilder _builder; |
1715 | template <typename, ::capnp::Kind> |
1716 | friend struct ::capnp::ToDynamic_; |
1717 | friend class ::capnp::Orphanage; |
1718 | template <typename, ::capnp::Kind> |
1719 | friend struct ::capnp::_::PointerHelpers; |
1720 | }; |
1721 | |
1722 | #if !CAPNP_LITE |
1723 | class Node::Annotation::Pipeline { |
1724 | public: |
1725 | typedef Annotation Pipelines; |
1726 | |
1727 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1728 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1729 | : _typeless(kj::mv(typeless)) {} |
1730 | |
1731 | inline ::capnp::schema::Type::Pipeline getType(); |
1732 | private: |
1733 | ::capnp::AnyPointer::Pipeline _typeless; |
1734 | friend class ::capnp::PipelineHook; |
1735 | template <typename, ::capnp::Kind> |
1736 | friend struct ::capnp::ToDynamic_; |
1737 | }; |
1738 | #endif // !CAPNP_LITE |
1739 | |
1740 | class Field::Reader { |
1741 | public: |
1742 | typedef Field Reads; |
1743 | |
1744 | Reader() = default; |
1745 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1746 | |
1747 | inline ::capnp::MessageSize totalSize() const { |
1748 | return _reader.totalSize().asPublic(); |
1749 | } |
1750 | |
1751 | #if !CAPNP_LITE |
1752 | inline ::kj::StringTree toString() const { |
1753 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1754 | } |
1755 | #endif // !CAPNP_LITE |
1756 | |
1757 | inline Which which() const; |
1758 | inline bool hasName() const; |
1759 | inline ::capnp::Text::Reader getName() const; |
1760 | |
1761 | inline ::uint16_t getCodeOrder() const; |
1762 | |
1763 | inline bool hasAnnotations() const; |
1764 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; |
1765 | |
1766 | inline ::uint16_t getDiscriminantValue() const; |
1767 | |
1768 | inline bool isSlot() const; |
1769 | inline typename Slot::Reader getSlot() const; |
1770 | |
1771 | inline bool isGroup() const; |
1772 | inline typename Group::Reader getGroup() const; |
1773 | |
1774 | inline typename Ordinal::Reader getOrdinal() const; |
1775 | |
1776 | private: |
1777 | ::capnp::_::StructReader _reader; |
1778 | template <typename, ::capnp::Kind> |
1779 | friend struct ::capnp::ToDynamic_; |
1780 | template <typename, ::capnp::Kind> |
1781 | friend struct ::capnp::_::PointerHelpers; |
1782 | template <typename, ::capnp::Kind> |
1783 | friend struct ::capnp::List; |
1784 | friend class ::capnp::MessageBuilder; |
1785 | friend class ::capnp::Orphanage; |
1786 | }; |
1787 | |
1788 | class Field::Builder { |
1789 | public: |
1790 | typedef Field Builds; |
1791 | |
1792 | Builder() = delete; // Deleted to discourage incorrect usage. |
1793 | // You can explicitly initialize to nullptr instead. |
1794 | inline Builder(decltype(nullptr)) {} |
1795 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1796 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1797 | inline Reader asReader() const { return *this; } |
1798 | |
1799 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1800 | #if !CAPNP_LITE |
1801 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1802 | #endif // !CAPNP_LITE |
1803 | |
1804 | inline Which which(); |
1805 | inline bool hasName(); |
1806 | inline ::capnp::Text::Builder getName(); |
1807 | inline void setName( ::capnp::Text::Reader value); |
1808 | inline ::capnp::Text::Builder initName(unsigned int size); |
1809 | inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); |
1810 | inline ::capnp::Orphan< ::capnp::Text> disownName(); |
1811 | |
1812 | inline ::uint16_t getCodeOrder(); |
1813 | inline void setCodeOrder( ::uint16_t value); |
1814 | |
1815 | inline bool hasAnnotations(); |
1816 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); |
1817 | inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); |
1818 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); |
1819 | inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); |
1820 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); |
1821 | |
1822 | inline ::uint16_t getDiscriminantValue(); |
1823 | inline void setDiscriminantValue( ::uint16_t value); |
1824 | |
1825 | inline bool isSlot(); |
1826 | inline typename Slot::Builder getSlot(); |
1827 | inline typename Slot::Builder initSlot(); |
1828 | |
1829 | inline bool isGroup(); |
1830 | inline typename Group::Builder getGroup(); |
1831 | inline typename Group::Builder initGroup(); |
1832 | |
1833 | inline typename Ordinal::Builder getOrdinal(); |
1834 | inline typename Ordinal::Builder initOrdinal(); |
1835 | |
1836 | private: |
1837 | ::capnp::_::StructBuilder _builder; |
1838 | template <typename, ::capnp::Kind> |
1839 | friend struct ::capnp::ToDynamic_; |
1840 | friend class ::capnp::Orphanage; |
1841 | template <typename, ::capnp::Kind> |
1842 | friend struct ::capnp::_::PointerHelpers; |
1843 | }; |
1844 | |
1845 | #if !CAPNP_LITE |
1846 | class Field::Pipeline { |
1847 | public: |
1848 | typedef Field Pipelines; |
1849 | |
1850 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1851 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1852 | : _typeless(kj::mv(typeless)) {} |
1853 | |
1854 | inline typename Ordinal::Pipeline getOrdinal(); |
1855 | private: |
1856 | ::capnp::AnyPointer::Pipeline _typeless; |
1857 | friend class ::capnp::PipelineHook; |
1858 | template <typename, ::capnp::Kind> |
1859 | friend struct ::capnp::ToDynamic_; |
1860 | }; |
1861 | #endif // !CAPNP_LITE |
1862 | |
1863 | class Field::Slot::Reader { |
1864 | public: |
1865 | typedef Slot Reads; |
1866 | |
1867 | Reader() = default; |
1868 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1869 | |
1870 | inline ::capnp::MessageSize totalSize() const { |
1871 | return _reader.totalSize().asPublic(); |
1872 | } |
1873 | |
1874 | #if !CAPNP_LITE |
1875 | inline ::kj::StringTree toString() const { |
1876 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1877 | } |
1878 | #endif // !CAPNP_LITE |
1879 | |
1880 | inline ::uint32_t getOffset() const; |
1881 | |
1882 | inline bool hasType() const; |
1883 | inline ::capnp::schema::Type::Reader getType() const; |
1884 | |
1885 | inline bool hasDefaultValue() const; |
1886 | inline ::capnp::schema::Value::Reader getDefaultValue() const; |
1887 | |
1888 | inline bool getHadExplicitDefault() const; |
1889 | |
1890 | private: |
1891 | ::capnp::_::StructReader _reader; |
1892 | template <typename, ::capnp::Kind> |
1893 | friend struct ::capnp::ToDynamic_; |
1894 | template <typename, ::capnp::Kind> |
1895 | friend struct ::capnp::_::PointerHelpers; |
1896 | template <typename, ::capnp::Kind> |
1897 | friend struct ::capnp::List; |
1898 | friend class ::capnp::MessageBuilder; |
1899 | friend class ::capnp::Orphanage; |
1900 | }; |
1901 | |
1902 | class Field::Slot::Builder { |
1903 | public: |
1904 | typedef Slot Builds; |
1905 | |
1906 | Builder() = delete; // Deleted to discourage incorrect usage. |
1907 | // You can explicitly initialize to nullptr instead. |
1908 | inline Builder(decltype(nullptr)) {} |
1909 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1910 | inline operator Reader() const { return Reader(_builder.asReader()); } |
1911 | inline Reader asReader() const { return *this; } |
1912 | |
1913 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1914 | #if !CAPNP_LITE |
1915 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
1916 | #endif // !CAPNP_LITE |
1917 | |
1918 | inline ::uint32_t getOffset(); |
1919 | inline void setOffset( ::uint32_t value); |
1920 | |
1921 | inline bool hasType(); |
1922 | inline ::capnp::schema::Type::Builder getType(); |
1923 | inline void setType( ::capnp::schema::Type::Reader value); |
1924 | inline ::capnp::schema::Type::Builder initType(); |
1925 | inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); |
1926 | inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); |
1927 | |
1928 | inline bool hasDefaultValue(); |
1929 | inline ::capnp::schema::Value::Builder getDefaultValue(); |
1930 | inline void setDefaultValue( ::capnp::schema::Value::Reader value); |
1931 | inline ::capnp::schema::Value::Builder initDefaultValue(); |
1932 | inline void adoptDefaultValue(::capnp::Orphan< ::capnp::schema::Value>&& value); |
1933 | inline ::capnp::Orphan< ::capnp::schema::Value> disownDefaultValue(); |
1934 | |
1935 | inline bool getHadExplicitDefault(); |
1936 | inline void setHadExplicitDefault(bool value); |
1937 | |
1938 | private: |
1939 | ::capnp::_::StructBuilder _builder; |
1940 | template <typename, ::capnp::Kind> |
1941 | friend struct ::capnp::ToDynamic_; |
1942 | friend class ::capnp::Orphanage; |
1943 | template <typename, ::capnp::Kind> |
1944 | friend struct ::capnp::_::PointerHelpers; |
1945 | }; |
1946 | |
1947 | #if !CAPNP_LITE |
1948 | class Field::Slot::Pipeline { |
1949 | public: |
1950 | typedef Slot Pipelines; |
1951 | |
1952 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1953 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1954 | : _typeless(kj::mv(typeless)) {} |
1955 | |
1956 | inline ::capnp::schema::Type::Pipeline getType(); |
1957 | inline ::capnp::schema::Value::Pipeline getDefaultValue(); |
1958 | private: |
1959 | ::capnp::AnyPointer::Pipeline _typeless; |
1960 | friend class ::capnp::PipelineHook; |
1961 | template <typename, ::capnp::Kind> |
1962 | friend struct ::capnp::ToDynamic_; |
1963 | }; |
1964 | #endif // !CAPNP_LITE |
1965 | |
1966 | class Field::Group::Reader { |
1967 | public: |
1968 | typedef Group Reads; |
1969 | |
1970 | Reader() = default; |
1971 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1972 | |
1973 | inline ::capnp::MessageSize totalSize() const { |
1974 | return _reader.totalSize().asPublic(); |
1975 | } |
1976 | |
1977 | #if !CAPNP_LITE |
1978 | inline ::kj::StringTree toString() const { |
1979 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1980 | } |
1981 | #endif // !CAPNP_LITE |
1982 | |
1983 | inline ::uint64_t getTypeId() const; |
1984 | |
1985 | private: |
1986 | ::capnp::_::StructReader _reader; |
1987 | template <typename, ::capnp::Kind> |
1988 | friend struct ::capnp::ToDynamic_; |
1989 | template <typename, ::capnp::Kind> |
1990 | friend struct ::capnp::_::PointerHelpers; |
1991 | template <typename, ::capnp::Kind> |
1992 | friend struct ::capnp::List; |
1993 | friend class ::capnp::MessageBuilder; |
1994 | friend class ::capnp::Orphanage; |
1995 | }; |
1996 | |
1997 | class Field::Group::Builder { |
1998 | public: |
1999 | typedef Group Builds; |
2000 | |
2001 | Builder() = delete; // Deleted to discourage incorrect usage. |
2002 | // You can explicitly initialize to nullptr instead. |
2003 | inline Builder(decltype(nullptr)) {} |
2004 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2005 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2006 | inline Reader asReader() const { return *this; } |
2007 | |
2008 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2009 | #if !CAPNP_LITE |
2010 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2011 | #endif // !CAPNP_LITE |
2012 | |
2013 | inline ::uint64_t getTypeId(); |
2014 | inline void setTypeId( ::uint64_t value); |
2015 | |
2016 | private: |
2017 | ::capnp::_::StructBuilder _builder; |
2018 | template <typename, ::capnp::Kind> |
2019 | friend struct ::capnp::ToDynamic_; |
2020 | friend class ::capnp::Orphanage; |
2021 | template <typename, ::capnp::Kind> |
2022 | friend struct ::capnp::_::PointerHelpers; |
2023 | }; |
2024 | |
2025 | #if !CAPNP_LITE |
2026 | class Field::Group::Pipeline { |
2027 | public: |
2028 | typedef Group Pipelines; |
2029 | |
2030 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2031 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2032 | : _typeless(kj::mv(typeless)) {} |
2033 | |
2034 | private: |
2035 | ::capnp::AnyPointer::Pipeline _typeless; |
2036 | friend class ::capnp::PipelineHook; |
2037 | template <typename, ::capnp::Kind> |
2038 | friend struct ::capnp::ToDynamic_; |
2039 | }; |
2040 | #endif // !CAPNP_LITE |
2041 | |
2042 | class Field::Ordinal::Reader { |
2043 | public: |
2044 | typedef Ordinal Reads; |
2045 | |
2046 | Reader() = default; |
2047 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2048 | |
2049 | inline ::capnp::MessageSize totalSize() const { |
2050 | return _reader.totalSize().asPublic(); |
2051 | } |
2052 | |
2053 | #if !CAPNP_LITE |
2054 | inline ::kj::StringTree toString() const { |
2055 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2056 | } |
2057 | #endif // !CAPNP_LITE |
2058 | |
2059 | inline Which which() const; |
2060 | inline bool isImplicit() const; |
2061 | inline ::capnp::Void getImplicit() const; |
2062 | |
2063 | inline bool isExplicit() const; |
2064 | inline ::uint16_t getExplicit() const; |
2065 | |
2066 | private: |
2067 | ::capnp::_::StructReader _reader; |
2068 | template <typename, ::capnp::Kind> |
2069 | friend struct ::capnp::ToDynamic_; |
2070 | template <typename, ::capnp::Kind> |
2071 | friend struct ::capnp::_::PointerHelpers; |
2072 | template <typename, ::capnp::Kind> |
2073 | friend struct ::capnp::List; |
2074 | friend class ::capnp::MessageBuilder; |
2075 | friend class ::capnp::Orphanage; |
2076 | }; |
2077 | |
2078 | class Field::Ordinal::Builder { |
2079 | public: |
2080 | typedef Ordinal Builds; |
2081 | |
2082 | Builder() = delete; // Deleted to discourage incorrect usage. |
2083 | // You can explicitly initialize to nullptr instead. |
2084 | inline Builder(decltype(nullptr)) {} |
2085 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2086 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2087 | inline Reader asReader() const { return *this; } |
2088 | |
2089 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2090 | #if !CAPNP_LITE |
2091 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2092 | #endif // !CAPNP_LITE |
2093 | |
2094 | inline Which which(); |
2095 | inline bool isImplicit(); |
2096 | inline ::capnp::Void getImplicit(); |
2097 | inline void setImplicit( ::capnp::Void value = ::capnp::VOID); |
2098 | |
2099 | inline bool isExplicit(); |
2100 | inline ::uint16_t getExplicit(); |
2101 | inline void setExplicit( ::uint16_t value); |
2102 | |
2103 | private: |
2104 | ::capnp::_::StructBuilder _builder; |
2105 | template <typename, ::capnp::Kind> |
2106 | friend struct ::capnp::ToDynamic_; |
2107 | friend class ::capnp::Orphanage; |
2108 | template <typename, ::capnp::Kind> |
2109 | friend struct ::capnp::_::PointerHelpers; |
2110 | }; |
2111 | |
2112 | #if !CAPNP_LITE |
2113 | class Field::Ordinal::Pipeline { |
2114 | public: |
2115 | typedef Ordinal Pipelines; |
2116 | |
2117 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2118 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2119 | : _typeless(kj::mv(typeless)) {} |
2120 | |
2121 | private: |
2122 | ::capnp::AnyPointer::Pipeline _typeless; |
2123 | friend class ::capnp::PipelineHook; |
2124 | template <typename, ::capnp::Kind> |
2125 | friend struct ::capnp::ToDynamic_; |
2126 | }; |
2127 | #endif // !CAPNP_LITE |
2128 | |
2129 | class Enumerant::Reader { |
2130 | public: |
2131 | typedef Enumerant Reads; |
2132 | |
2133 | Reader() = default; |
2134 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2135 | |
2136 | inline ::capnp::MessageSize totalSize() const { |
2137 | return _reader.totalSize().asPublic(); |
2138 | } |
2139 | |
2140 | #if !CAPNP_LITE |
2141 | inline ::kj::StringTree toString() const { |
2142 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2143 | } |
2144 | #endif // !CAPNP_LITE |
2145 | |
2146 | inline bool hasName() const; |
2147 | inline ::capnp::Text::Reader getName() const; |
2148 | |
2149 | inline ::uint16_t getCodeOrder() const; |
2150 | |
2151 | inline bool hasAnnotations() const; |
2152 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; |
2153 | |
2154 | private: |
2155 | ::capnp::_::StructReader _reader; |
2156 | template <typename, ::capnp::Kind> |
2157 | friend struct ::capnp::ToDynamic_; |
2158 | template <typename, ::capnp::Kind> |
2159 | friend struct ::capnp::_::PointerHelpers; |
2160 | template <typename, ::capnp::Kind> |
2161 | friend struct ::capnp::List; |
2162 | friend class ::capnp::MessageBuilder; |
2163 | friend class ::capnp::Orphanage; |
2164 | }; |
2165 | |
2166 | class Enumerant::Builder { |
2167 | public: |
2168 | typedef Enumerant Builds; |
2169 | |
2170 | Builder() = delete; // Deleted to discourage incorrect usage. |
2171 | // You can explicitly initialize to nullptr instead. |
2172 | inline Builder(decltype(nullptr)) {} |
2173 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2174 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2175 | inline Reader asReader() const { return *this; } |
2176 | |
2177 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2178 | #if !CAPNP_LITE |
2179 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2180 | #endif // !CAPNP_LITE |
2181 | |
2182 | inline bool hasName(); |
2183 | inline ::capnp::Text::Builder getName(); |
2184 | inline void setName( ::capnp::Text::Reader value); |
2185 | inline ::capnp::Text::Builder initName(unsigned int size); |
2186 | inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); |
2187 | inline ::capnp::Orphan< ::capnp::Text> disownName(); |
2188 | |
2189 | inline ::uint16_t getCodeOrder(); |
2190 | inline void setCodeOrder( ::uint16_t value); |
2191 | |
2192 | inline bool hasAnnotations(); |
2193 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); |
2194 | inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); |
2195 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); |
2196 | inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); |
2197 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); |
2198 | |
2199 | private: |
2200 | ::capnp::_::StructBuilder _builder; |
2201 | template <typename, ::capnp::Kind> |
2202 | friend struct ::capnp::ToDynamic_; |
2203 | friend class ::capnp::Orphanage; |
2204 | template <typename, ::capnp::Kind> |
2205 | friend struct ::capnp::_::PointerHelpers; |
2206 | }; |
2207 | |
2208 | #if !CAPNP_LITE |
2209 | class Enumerant::Pipeline { |
2210 | public: |
2211 | typedef Enumerant Pipelines; |
2212 | |
2213 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2214 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2215 | : _typeless(kj::mv(typeless)) {} |
2216 | |
2217 | private: |
2218 | ::capnp::AnyPointer::Pipeline _typeless; |
2219 | friend class ::capnp::PipelineHook; |
2220 | template <typename, ::capnp::Kind> |
2221 | friend struct ::capnp::ToDynamic_; |
2222 | }; |
2223 | #endif // !CAPNP_LITE |
2224 | |
2225 | class Superclass::Reader { |
2226 | public: |
2227 | typedef Superclass Reads; |
2228 | |
2229 | Reader() = default; |
2230 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2231 | |
2232 | inline ::capnp::MessageSize totalSize() const { |
2233 | return _reader.totalSize().asPublic(); |
2234 | } |
2235 | |
2236 | #if !CAPNP_LITE |
2237 | inline ::kj::StringTree toString() const { |
2238 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2239 | } |
2240 | #endif // !CAPNP_LITE |
2241 | |
2242 | inline ::uint64_t getId() const; |
2243 | |
2244 | inline bool hasBrand() const; |
2245 | inline ::capnp::schema::Brand::Reader getBrand() const; |
2246 | |
2247 | private: |
2248 | ::capnp::_::StructReader _reader; |
2249 | template <typename, ::capnp::Kind> |
2250 | friend struct ::capnp::ToDynamic_; |
2251 | template <typename, ::capnp::Kind> |
2252 | friend struct ::capnp::_::PointerHelpers; |
2253 | template <typename, ::capnp::Kind> |
2254 | friend struct ::capnp::List; |
2255 | friend class ::capnp::MessageBuilder; |
2256 | friend class ::capnp::Orphanage; |
2257 | }; |
2258 | |
2259 | class Superclass::Builder { |
2260 | public: |
2261 | typedef Superclass Builds; |
2262 | |
2263 | Builder() = delete; // Deleted to discourage incorrect usage. |
2264 | // You can explicitly initialize to nullptr instead. |
2265 | inline Builder(decltype(nullptr)) {} |
2266 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2267 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2268 | inline Reader asReader() const { return *this; } |
2269 | |
2270 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2271 | #if !CAPNP_LITE |
2272 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2273 | #endif // !CAPNP_LITE |
2274 | |
2275 | inline ::uint64_t getId(); |
2276 | inline void setId( ::uint64_t value); |
2277 | |
2278 | inline bool hasBrand(); |
2279 | inline ::capnp::schema::Brand::Builder getBrand(); |
2280 | inline void setBrand( ::capnp::schema::Brand::Reader value); |
2281 | inline ::capnp::schema::Brand::Builder initBrand(); |
2282 | inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); |
2283 | inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); |
2284 | |
2285 | private: |
2286 | ::capnp::_::StructBuilder _builder; |
2287 | template <typename, ::capnp::Kind> |
2288 | friend struct ::capnp::ToDynamic_; |
2289 | friend class ::capnp::Orphanage; |
2290 | template <typename, ::capnp::Kind> |
2291 | friend struct ::capnp::_::PointerHelpers; |
2292 | }; |
2293 | |
2294 | #if !CAPNP_LITE |
2295 | class Superclass::Pipeline { |
2296 | public: |
2297 | typedef Superclass Pipelines; |
2298 | |
2299 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2300 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2301 | : _typeless(kj::mv(typeless)) {} |
2302 | |
2303 | inline ::capnp::schema::Brand::Pipeline getBrand(); |
2304 | private: |
2305 | ::capnp::AnyPointer::Pipeline _typeless; |
2306 | friend class ::capnp::PipelineHook; |
2307 | template <typename, ::capnp::Kind> |
2308 | friend struct ::capnp::ToDynamic_; |
2309 | }; |
2310 | #endif // !CAPNP_LITE |
2311 | |
2312 | class Method::Reader { |
2313 | public: |
2314 | typedef Method Reads; |
2315 | |
2316 | Reader() = default; |
2317 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2318 | |
2319 | inline ::capnp::MessageSize totalSize() const { |
2320 | return _reader.totalSize().asPublic(); |
2321 | } |
2322 | |
2323 | #if !CAPNP_LITE |
2324 | inline ::kj::StringTree toString() const { |
2325 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2326 | } |
2327 | #endif // !CAPNP_LITE |
2328 | |
2329 | inline bool hasName() const; |
2330 | inline ::capnp::Text::Reader getName() const; |
2331 | |
2332 | inline ::uint16_t getCodeOrder() const; |
2333 | |
2334 | inline ::uint64_t getParamStructType() const; |
2335 | |
2336 | inline ::uint64_t getResultStructType() const; |
2337 | |
2338 | inline bool hasAnnotations() const; |
2339 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; |
2340 | |
2341 | inline bool hasParamBrand() const; |
2342 | inline ::capnp::schema::Brand::Reader getParamBrand() const; |
2343 | |
2344 | inline bool hasResultBrand() const; |
2345 | inline ::capnp::schema::Brand::Reader getResultBrand() const; |
2346 | |
2347 | inline bool hasImplicitParameters() const; |
2348 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader getImplicitParameters() const; |
2349 | |
2350 | private: |
2351 | ::capnp::_::StructReader _reader; |
2352 | template <typename, ::capnp::Kind> |
2353 | friend struct ::capnp::ToDynamic_; |
2354 | template <typename, ::capnp::Kind> |
2355 | friend struct ::capnp::_::PointerHelpers; |
2356 | template <typename, ::capnp::Kind> |
2357 | friend struct ::capnp::List; |
2358 | friend class ::capnp::MessageBuilder; |
2359 | friend class ::capnp::Orphanage; |
2360 | }; |
2361 | |
2362 | class Method::Builder { |
2363 | public: |
2364 | typedef Method Builds; |
2365 | |
2366 | Builder() = delete; // Deleted to discourage incorrect usage. |
2367 | // You can explicitly initialize to nullptr instead. |
2368 | inline Builder(decltype(nullptr)) {} |
2369 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2370 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2371 | inline Reader asReader() const { return *this; } |
2372 | |
2373 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2374 | #if !CAPNP_LITE |
2375 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2376 | #endif // !CAPNP_LITE |
2377 | |
2378 | inline bool hasName(); |
2379 | inline ::capnp::Text::Builder getName(); |
2380 | inline void setName( ::capnp::Text::Reader value); |
2381 | inline ::capnp::Text::Builder initName(unsigned int size); |
2382 | inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); |
2383 | inline ::capnp::Orphan< ::capnp::Text> disownName(); |
2384 | |
2385 | inline ::uint16_t getCodeOrder(); |
2386 | inline void setCodeOrder( ::uint16_t value); |
2387 | |
2388 | inline ::uint64_t getParamStructType(); |
2389 | inline void setParamStructType( ::uint64_t value); |
2390 | |
2391 | inline ::uint64_t getResultStructType(); |
2392 | inline void setResultStructType( ::uint64_t value); |
2393 | |
2394 | inline bool hasAnnotations(); |
2395 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); |
2396 | inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); |
2397 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); |
2398 | inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); |
2399 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); |
2400 | |
2401 | inline bool hasParamBrand(); |
2402 | inline ::capnp::schema::Brand::Builder getParamBrand(); |
2403 | inline void setParamBrand( ::capnp::schema::Brand::Reader value); |
2404 | inline ::capnp::schema::Brand::Builder initParamBrand(); |
2405 | inline void adoptParamBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); |
2406 | inline ::capnp::Orphan< ::capnp::schema::Brand> disownParamBrand(); |
2407 | |
2408 | inline bool hasResultBrand(); |
2409 | inline ::capnp::schema::Brand::Builder getResultBrand(); |
2410 | inline void setResultBrand( ::capnp::schema::Brand::Reader value); |
2411 | inline ::capnp::schema::Brand::Builder initResultBrand(); |
2412 | inline void adoptResultBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); |
2413 | inline ::capnp::Orphan< ::capnp::schema::Brand> disownResultBrand(); |
2414 | |
2415 | inline bool hasImplicitParameters(); |
2416 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder getImplicitParameters(); |
2417 | inline void setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value); |
2418 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder initImplicitParameters(unsigned int size); |
2419 | inline void adoptImplicitParameters(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value); |
2420 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> disownImplicitParameters(); |
2421 | |
2422 | private: |
2423 | ::capnp::_::StructBuilder _builder; |
2424 | template <typename, ::capnp::Kind> |
2425 | friend struct ::capnp::ToDynamic_; |
2426 | friend class ::capnp::Orphanage; |
2427 | template <typename, ::capnp::Kind> |
2428 | friend struct ::capnp::_::PointerHelpers; |
2429 | }; |
2430 | |
2431 | #if !CAPNP_LITE |
2432 | class Method::Pipeline { |
2433 | public: |
2434 | typedef Method Pipelines; |
2435 | |
2436 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2437 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2438 | : _typeless(kj::mv(typeless)) {} |
2439 | |
2440 | inline ::capnp::schema::Brand::Pipeline getParamBrand(); |
2441 | inline ::capnp::schema::Brand::Pipeline getResultBrand(); |
2442 | private: |
2443 | ::capnp::AnyPointer::Pipeline _typeless; |
2444 | friend class ::capnp::PipelineHook; |
2445 | template <typename, ::capnp::Kind> |
2446 | friend struct ::capnp::ToDynamic_; |
2447 | }; |
2448 | #endif // !CAPNP_LITE |
2449 | |
2450 | class Type::Reader { |
2451 | public: |
2452 | typedef Type Reads; |
2453 | |
2454 | Reader() = default; |
2455 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2456 | |
2457 | inline ::capnp::MessageSize totalSize() const { |
2458 | return _reader.totalSize().asPublic(); |
2459 | } |
2460 | |
2461 | #if !CAPNP_LITE |
2462 | inline ::kj::StringTree toString() const { |
2463 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2464 | } |
2465 | #endif // !CAPNP_LITE |
2466 | |
2467 | inline Which which() const; |
2468 | inline bool isVoid() const; |
2469 | inline ::capnp::Void getVoid() const; |
2470 | |
2471 | inline bool isBool() const; |
2472 | inline ::capnp::Void getBool() const; |
2473 | |
2474 | inline bool isInt8() const; |
2475 | inline ::capnp::Void getInt8() const; |
2476 | |
2477 | inline bool isInt16() const; |
2478 | inline ::capnp::Void getInt16() const; |
2479 | |
2480 | inline bool isInt32() const; |
2481 | inline ::capnp::Void getInt32() const; |
2482 | |
2483 | inline bool isInt64() const; |
2484 | inline ::capnp::Void getInt64() const; |
2485 | |
2486 | inline bool isUint8() const; |
2487 | inline ::capnp::Void getUint8() const; |
2488 | |
2489 | inline bool isUint16() const; |
2490 | inline ::capnp::Void getUint16() const; |
2491 | |
2492 | inline bool isUint32() const; |
2493 | inline ::capnp::Void getUint32() const; |
2494 | |
2495 | inline bool isUint64() const; |
2496 | inline ::capnp::Void getUint64() const; |
2497 | |
2498 | inline bool isFloat32() const; |
2499 | inline ::capnp::Void getFloat32() const; |
2500 | |
2501 | inline bool isFloat64() const; |
2502 | inline ::capnp::Void getFloat64() const; |
2503 | |
2504 | inline bool isText() const; |
2505 | inline ::capnp::Void getText() const; |
2506 | |
2507 | inline bool isData() const; |
2508 | inline ::capnp::Void getData() const; |
2509 | |
2510 | inline bool isList() const; |
2511 | inline typename List::Reader getList() const; |
2512 | |
2513 | inline bool isEnum() const; |
2514 | inline typename Enum::Reader getEnum() const; |
2515 | |
2516 | inline bool isStruct() const; |
2517 | inline typename Struct::Reader getStruct() const; |
2518 | |
2519 | inline bool isInterface() const; |
2520 | inline typename Interface::Reader getInterface() const; |
2521 | |
2522 | inline bool isAnyPointer() const; |
2523 | inline typename AnyPointer::Reader getAnyPointer() const; |
2524 | |
2525 | private: |
2526 | ::capnp::_::StructReader _reader; |
2527 | template <typename, ::capnp::Kind> |
2528 | friend struct ::capnp::ToDynamic_; |
2529 | template <typename, ::capnp::Kind> |
2530 | friend struct ::capnp::_::PointerHelpers; |
2531 | template <typename, ::capnp::Kind> |
2532 | friend struct ::capnp::List; |
2533 | friend class ::capnp::MessageBuilder; |
2534 | friend class ::capnp::Orphanage; |
2535 | }; |
2536 | |
2537 | class Type::Builder { |
2538 | public: |
2539 | typedef Type Builds; |
2540 | |
2541 | Builder() = delete; // Deleted to discourage incorrect usage. |
2542 | // You can explicitly initialize to nullptr instead. |
2543 | inline Builder(decltype(nullptr)) {} |
2544 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2545 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2546 | inline Reader asReader() const { return *this; } |
2547 | |
2548 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2549 | #if !CAPNP_LITE |
2550 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2551 | #endif // !CAPNP_LITE |
2552 | |
2553 | inline Which which(); |
2554 | inline bool isVoid(); |
2555 | inline ::capnp::Void getVoid(); |
2556 | inline void setVoid( ::capnp::Void value = ::capnp::VOID); |
2557 | |
2558 | inline bool isBool(); |
2559 | inline ::capnp::Void getBool(); |
2560 | inline void setBool( ::capnp::Void value = ::capnp::VOID); |
2561 | |
2562 | inline bool isInt8(); |
2563 | inline ::capnp::Void getInt8(); |
2564 | inline void setInt8( ::capnp::Void value = ::capnp::VOID); |
2565 | |
2566 | inline bool isInt16(); |
2567 | inline ::capnp::Void getInt16(); |
2568 | inline void setInt16( ::capnp::Void value = ::capnp::VOID); |
2569 | |
2570 | inline bool isInt32(); |
2571 | inline ::capnp::Void getInt32(); |
2572 | inline void setInt32( ::capnp::Void value = ::capnp::VOID); |
2573 | |
2574 | inline bool isInt64(); |
2575 | inline ::capnp::Void getInt64(); |
2576 | inline void setInt64( ::capnp::Void value = ::capnp::VOID); |
2577 | |
2578 | inline bool isUint8(); |
2579 | inline ::capnp::Void getUint8(); |
2580 | inline void setUint8( ::capnp::Void value = ::capnp::VOID); |
2581 | |
2582 | inline bool isUint16(); |
2583 | inline ::capnp::Void getUint16(); |
2584 | inline void setUint16( ::capnp::Void value = ::capnp::VOID); |
2585 | |
2586 | inline bool isUint32(); |
2587 | inline ::capnp::Void getUint32(); |
2588 | inline void setUint32( ::capnp::Void value = ::capnp::VOID); |
2589 | |
2590 | inline bool isUint64(); |
2591 | inline ::capnp::Void getUint64(); |
2592 | inline void setUint64( ::capnp::Void value = ::capnp::VOID); |
2593 | |
2594 | inline bool isFloat32(); |
2595 | inline ::capnp::Void getFloat32(); |
2596 | inline void setFloat32( ::capnp::Void value = ::capnp::VOID); |
2597 | |
2598 | inline bool isFloat64(); |
2599 | inline ::capnp::Void getFloat64(); |
2600 | inline void setFloat64( ::capnp::Void value = ::capnp::VOID); |
2601 | |
2602 | inline bool isText(); |
2603 | inline ::capnp::Void getText(); |
2604 | inline void setText( ::capnp::Void value = ::capnp::VOID); |
2605 | |
2606 | inline bool isData(); |
2607 | inline ::capnp::Void getData(); |
2608 | inline void setData( ::capnp::Void value = ::capnp::VOID); |
2609 | |
2610 | inline bool isList(); |
2611 | inline typename List::Builder getList(); |
2612 | inline typename List::Builder initList(); |
2613 | |
2614 | inline bool isEnum(); |
2615 | inline typename Enum::Builder getEnum(); |
2616 | inline typename Enum::Builder initEnum(); |
2617 | |
2618 | inline bool isStruct(); |
2619 | inline typename Struct::Builder getStruct(); |
2620 | inline typename Struct::Builder initStruct(); |
2621 | |
2622 | inline bool isInterface(); |
2623 | inline typename Interface::Builder getInterface(); |
2624 | inline typename Interface::Builder initInterface(); |
2625 | |
2626 | inline bool isAnyPointer(); |
2627 | inline typename AnyPointer::Builder getAnyPointer(); |
2628 | inline typename AnyPointer::Builder initAnyPointer(); |
2629 | |
2630 | private: |
2631 | ::capnp::_::StructBuilder _builder; |
2632 | template <typename, ::capnp::Kind> |
2633 | friend struct ::capnp::ToDynamic_; |
2634 | friend class ::capnp::Orphanage; |
2635 | template <typename, ::capnp::Kind> |
2636 | friend struct ::capnp::_::PointerHelpers; |
2637 | }; |
2638 | |
2639 | #if !CAPNP_LITE |
2640 | class Type::Pipeline { |
2641 | public: |
2642 | typedef Type Pipelines; |
2643 | |
2644 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2645 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2646 | : _typeless(kj::mv(typeless)) {} |
2647 | |
2648 | private: |
2649 | ::capnp::AnyPointer::Pipeline _typeless; |
2650 | friend class ::capnp::PipelineHook; |
2651 | template <typename, ::capnp::Kind> |
2652 | friend struct ::capnp::ToDynamic_; |
2653 | }; |
2654 | #endif // !CAPNP_LITE |
2655 | |
2656 | class Type::List::Reader { |
2657 | public: |
2658 | typedef List Reads; |
2659 | |
2660 | Reader() = default; |
2661 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2662 | |
2663 | inline ::capnp::MessageSize totalSize() const { |
2664 | return _reader.totalSize().asPublic(); |
2665 | } |
2666 | |
2667 | #if !CAPNP_LITE |
2668 | inline ::kj::StringTree toString() const { |
2669 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2670 | } |
2671 | #endif // !CAPNP_LITE |
2672 | |
2673 | inline bool hasElementType() const; |
2674 | inline ::capnp::schema::Type::Reader getElementType() const; |
2675 | |
2676 | private: |
2677 | ::capnp::_::StructReader _reader; |
2678 | template <typename, ::capnp::Kind> |
2679 | friend struct ::capnp::ToDynamic_; |
2680 | template <typename, ::capnp::Kind> |
2681 | friend struct ::capnp::_::PointerHelpers; |
2682 | template <typename, ::capnp::Kind> |
2683 | friend struct ::capnp::List; |
2684 | friend class ::capnp::MessageBuilder; |
2685 | friend class ::capnp::Orphanage; |
2686 | }; |
2687 | |
2688 | class Type::List::Builder { |
2689 | public: |
2690 | typedef List Builds; |
2691 | |
2692 | Builder() = delete; // Deleted to discourage incorrect usage. |
2693 | // You can explicitly initialize to nullptr instead. |
2694 | inline Builder(decltype(nullptr)) {} |
2695 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2696 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2697 | inline Reader asReader() const { return *this; } |
2698 | |
2699 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2700 | #if !CAPNP_LITE |
2701 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2702 | #endif // !CAPNP_LITE |
2703 | |
2704 | inline bool hasElementType(); |
2705 | inline ::capnp::schema::Type::Builder getElementType(); |
2706 | inline void setElementType( ::capnp::schema::Type::Reader value); |
2707 | inline ::capnp::schema::Type::Builder initElementType(); |
2708 | inline void adoptElementType(::capnp::Orphan< ::capnp::schema::Type>&& value); |
2709 | inline ::capnp::Orphan< ::capnp::schema::Type> disownElementType(); |
2710 | |
2711 | private: |
2712 | ::capnp::_::StructBuilder _builder; |
2713 | template <typename, ::capnp::Kind> |
2714 | friend struct ::capnp::ToDynamic_; |
2715 | friend class ::capnp::Orphanage; |
2716 | template <typename, ::capnp::Kind> |
2717 | friend struct ::capnp::_::PointerHelpers; |
2718 | }; |
2719 | |
2720 | #if !CAPNP_LITE |
2721 | class Type::List::Pipeline { |
2722 | public: |
2723 | typedef List Pipelines; |
2724 | |
2725 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2726 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2727 | : _typeless(kj::mv(typeless)) {} |
2728 | |
2729 | inline ::capnp::schema::Type::Pipeline getElementType(); |
2730 | private: |
2731 | ::capnp::AnyPointer::Pipeline _typeless; |
2732 | friend class ::capnp::PipelineHook; |
2733 | template <typename, ::capnp::Kind> |
2734 | friend struct ::capnp::ToDynamic_; |
2735 | }; |
2736 | #endif // !CAPNP_LITE |
2737 | |
2738 | class Type::Enum::Reader { |
2739 | public: |
2740 | typedef Enum Reads; |
2741 | |
2742 | Reader() = default; |
2743 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2744 | |
2745 | inline ::capnp::MessageSize totalSize() const { |
2746 | return _reader.totalSize().asPublic(); |
2747 | } |
2748 | |
2749 | #if !CAPNP_LITE |
2750 | inline ::kj::StringTree toString() const { |
2751 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2752 | } |
2753 | #endif // !CAPNP_LITE |
2754 | |
2755 | inline ::uint64_t getTypeId() const; |
2756 | |
2757 | inline bool hasBrand() const; |
2758 | inline ::capnp::schema::Brand::Reader getBrand() const; |
2759 | |
2760 | private: |
2761 | ::capnp::_::StructReader _reader; |
2762 | template <typename, ::capnp::Kind> |
2763 | friend struct ::capnp::ToDynamic_; |
2764 | template <typename, ::capnp::Kind> |
2765 | friend struct ::capnp::_::PointerHelpers; |
2766 | template <typename, ::capnp::Kind> |
2767 | friend struct ::capnp::List; |
2768 | friend class ::capnp::MessageBuilder; |
2769 | friend class ::capnp::Orphanage; |
2770 | }; |
2771 | |
2772 | class Type::Enum::Builder { |
2773 | public: |
2774 | typedef Enum Builds; |
2775 | |
2776 | Builder() = delete; // Deleted to discourage incorrect usage. |
2777 | // You can explicitly initialize to nullptr instead. |
2778 | inline Builder(decltype(nullptr)) {} |
2779 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2780 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2781 | inline Reader asReader() const { return *this; } |
2782 | |
2783 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2784 | #if !CAPNP_LITE |
2785 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2786 | #endif // !CAPNP_LITE |
2787 | |
2788 | inline ::uint64_t getTypeId(); |
2789 | inline void setTypeId( ::uint64_t value); |
2790 | |
2791 | inline bool hasBrand(); |
2792 | inline ::capnp::schema::Brand::Builder getBrand(); |
2793 | inline void setBrand( ::capnp::schema::Brand::Reader value); |
2794 | inline ::capnp::schema::Brand::Builder initBrand(); |
2795 | inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); |
2796 | inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); |
2797 | |
2798 | private: |
2799 | ::capnp::_::StructBuilder _builder; |
2800 | template <typename, ::capnp::Kind> |
2801 | friend struct ::capnp::ToDynamic_; |
2802 | friend class ::capnp::Orphanage; |
2803 | template <typename, ::capnp::Kind> |
2804 | friend struct ::capnp::_::PointerHelpers; |
2805 | }; |
2806 | |
2807 | #if !CAPNP_LITE |
2808 | class Type::Enum::Pipeline { |
2809 | public: |
2810 | typedef Enum Pipelines; |
2811 | |
2812 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2813 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2814 | : _typeless(kj::mv(typeless)) {} |
2815 | |
2816 | inline ::capnp::schema::Brand::Pipeline getBrand(); |
2817 | private: |
2818 | ::capnp::AnyPointer::Pipeline _typeless; |
2819 | friend class ::capnp::PipelineHook; |
2820 | template <typename, ::capnp::Kind> |
2821 | friend struct ::capnp::ToDynamic_; |
2822 | }; |
2823 | #endif // !CAPNP_LITE |
2824 | |
2825 | class Type::Struct::Reader { |
2826 | public: |
2827 | typedef Struct Reads; |
2828 | |
2829 | Reader() = default; |
2830 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2831 | |
2832 | inline ::capnp::MessageSize totalSize() const { |
2833 | return _reader.totalSize().asPublic(); |
2834 | } |
2835 | |
2836 | #if !CAPNP_LITE |
2837 | inline ::kj::StringTree toString() const { |
2838 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2839 | } |
2840 | #endif // !CAPNP_LITE |
2841 | |
2842 | inline ::uint64_t getTypeId() const; |
2843 | |
2844 | inline bool hasBrand() const; |
2845 | inline ::capnp::schema::Brand::Reader getBrand() const; |
2846 | |
2847 | private: |
2848 | ::capnp::_::StructReader _reader; |
2849 | template <typename, ::capnp::Kind> |
2850 | friend struct ::capnp::ToDynamic_; |
2851 | template <typename, ::capnp::Kind> |
2852 | friend struct ::capnp::_::PointerHelpers; |
2853 | template <typename, ::capnp::Kind> |
2854 | friend struct ::capnp::List; |
2855 | friend class ::capnp::MessageBuilder; |
2856 | friend class ::capnp::Orphanage; |
2857 | }; |
2858 | |
2859 | class Type::Struct::Builder { |
2860 | public: |
2861 | typedef Struct Builds; |
2862 | |
2863 | Builder() = delete; // Deleted to discourage incorrect usage. |
2864 | // You can explicitly initialize to nullptr instead. |
2865 | inline Builder(decltype(nullptr)) {} |
2866 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2867 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2868 | inline Reader asReader() const { return *this; } |
2869 | |
2870 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2871 | #if !CAPNP_LITE |
2872 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2873 | #endif // !CAPNP_LITE |
2874 | |
2875 | inline ::uint64_t getTypeId(); |
2876 | inline void setTypeId( ::uint64_t value); |
2877 | |
2878 | inline bool hasBrand(); |
2879 | inline ::capnp::schema::Brand::Builder getBrand(); |
2880 | inline void setBrand( ::capnp::schema::Brand::Reader value); |
2881 | inline ::capnp::schema::Brand::Builder initBrand(); |
2882 | inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); |
2883 | inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); |
2884 | |
2885 | private: |
2886 | ::capnp::_::StructBuilder _builder; |
2887 | template <typename, ::capnp::Kind> |
2888 | friend struct ::capnp::ToDynamic_; |
2889 | friend class ::capnp::Orphanage; |
2890 | template <typename, ::capnp::Kind> |
2891 | friend struct ::capnp::_::PointerHelpers; |
2892 | }; |
2893 | |
2894 | #if !CAPNP_LITE |
2895 | class Type::Struct::Pipeline { |
2896 | public: |
2897 | typedef Struct Pipelines; |
2898 | |
2899 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2900 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2901 | : _typeless(kj::mv(typeless)) {} |
2902 | |
2903 | inline ::capnp::schema::Brand::Pipeline getBrand(); |
2904 | private: |
2905 | ::capnp::AnyPointer::Pipeline _typeless; |
2906 | friend class ::capnp::PipelineHook; |
2907 | template <typename, ::capnp::Kind> |
2908 | friend struct ::capnp::ToDynamic_; |
2909 | }; |
2910 | #endif // !CAPNP_LITE |
2911 | |
2912 | class Type::Interface::Reader { |
2913 | public: |
2914 | typedef Interface Reads; |
2915 | |
2916 | Reader() = default; |
2917 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
2918 | |
2919 | inline ::capnp::MessageSize totalSize() const { |
2920 | return _reader.totalSize().asPublic(); |
2921 | } |
2922 | |
2923 | #if !CAPNP_LITE |
2924 | inline ::kj::StringTree toString() const { |
2925 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2926 | } |
2927 | #endif // !CAPNP_LITE |
2928 | |
2929 | inline ::uint64_t getTypeId() const; |
2930 | |
2931 | inline bool hasBrand() const; |
2932 | inline ::capnp::schema::Brand::Reader getBrand() const; |
2933 | |
2934 | private: |
2935 | ::capnp::_::StructReader _reader; |
2936 | template <typename, ::capnp::Kind> |
2937 | friend struct ::capnp::ToDynamic_; |
2938 | template <typename, ::capnp::Kind> |
2939 | friend struct ::capnp::_::PointerHelpers; |
2940 | template <typename, ::capnp::Kind> |
2941 | friend struct ::capnp::List; |
2942 | friend class ::capnp::MessageBuilder; |
2943 | friend class ::capnp::Orphanage; |
2944 | }; |
2945 | |
2946 | class Type::Interface::Builder { |
2947 | public: |
2948 | typedef Interface Builds; |
2949 | |
2950 | Builder() = delete; // Deleted to discourage incorrect usage. |
2951 | // You can explicitly initialize to nullptr instead. |
2952 | inline Builder(decltype(nullptr)) {} |
2953 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
2954 | inline operator Reader() const { return Reader(_builder.asReader()); } |
2955 | inline Reader asReader() const { return *this; } |
2956 | |
2957 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
2958 | #if !CAPNP_LITE |
2959 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
2960 | #endif // !CAPNP_LITE |
2961 | |
2962 | inline ::uint64_t getTypeId(); |
2963 | inline void setTypeId( ::uint64_t value); |
2964 | |
2965 | inline bool hasBrand(); |
2966 | inline ::capnp::schema::Brand::Builder getBrand(); |
2967 | inline void setBrand( ::capnp::schema::Brand::Reader value); |
2968 | inline ::capnp::schema::Brand::Builder initBrand(); |
2969 | inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); |
2970 | inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); |
2971 | |
2972 | private: |
2973 | ::capnp::_::StructBuilder _builder; |
2974 | template <typename, ::capnp::Kind> |
2975 | friend struct ::capnp::ToDynamic_; |
2976 | friend class ::capnp::Orphanage; |
2977 | template <typename, ::capnp::Kind> |
2978 | friend struct ::capnp::_::PointerHelpers; |
2979 | }; |
2980 | |
2981 | #if !CAPNP_LITE |
2982 | class Type::Interface::Pipeline { |
2983 | public: |
2984 | typedef Interface Pipelines; |
2985 | |
2986 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2987 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2988 | : _typeless(kj::mv(typeless)) {} |
2989 | |
2990 | inline ::capnp::schema::Brand::Pipeline getBrand(); |
2991 | private: |
2992 | ::capnp::AnyPointer::Pipeline _typeless; |
2993 | friend class ::capnp::PipelineHook; |
2994 | template <typename, ::capnp::Kind> |
2995 | friend struct ::capnp::ToDynamic_; |
2996 | }; |
2997 | #endif // !CAPNP_LITE |
2998 | |
2999 | class Type::AnyPointer::Reader { |
3000 | public: |
3001 | typedef AnyPointer Reads; |
3002 | |
3003 | Reader() = default; |
3004 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3005 | |
3006 | inline ::capnp::MessageSize totalSize() const { |
3007 | return _reader.totalSize().asPublic(); |
3008 | } |
3009 | |
3010 | #if !CAPNP_LITE |
3011 | inline ::kj::StringTree toString() const { |
3012 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3013 | } |
3014 | #endif // !CAPNP_LITE |
3015 | |
3016 | inline Which which() const; |
3017 | inline bool isUnconstrained() const; |
3018 | inline typename Unconstrained::Reader getUnconstrained() const; |
3019 | |
3020 | inline bool isParameter() const; |
3021 | inline typename Parameter::Reader getParameter() const; |
3022 | |
3023 | inline bool isImplicitMethodParameter() const; |
3024 | inline typename ImplicitMethodParameter::Reader getImplicitMethodParameter() const; |
3025 | |
3026 | private: |
3027 | ::capnp::_::StructReader _reader; |
3028 | template <typename, ::capnp::Kind> |
3029 | friend struct ::capnp::ToDynamic_; |
3030 | template <typename, ::capnp::Kind> |
3031 | friend struct ::capnp::_::PointerHelpers; |
3032 | template <typename, ::capnp::Kind> |
3033 | friend struct ::capnp::List; |
3034 | friend class ::capnp::MessageBuilder; |
3035 | friend class ::capnp::Orphanage; |
3036 | }; |
3037 | |
3038 | class Type::AnyPointer::Builder { |
3039 | public: |
3040 | typedef AnyPointer Builds; |
3041 | |
3042 | Builder() = delete; // Deleted to discourage incorrect usage. |
3043 | // You can explicitly initialize to nullptr instead. |
3044 | inline Builder(decltype(nullptr)) {} |
3045 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3046 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3047 | inline Reader asReader() const { return *this; } |
3048 | |
3049 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3050 | #if !CAPNP_LITE |
3051 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3052 | #endif // !CAPNP_LITE |
3053 | |
3054 | inline Which which(); |
3055 | inline bool isUnconstrained(); |
3056 | inline typename Unconstrained::Builder getUnconstrained(); |
3057 | inline typename Unconstrained::Builder initUnconstrained(); |
3058 | |
3059 | inline bool isParameter(); |
3060 | inline typename Parameter::Builder getParameter(); |
3061 | inline typename Parameter::Builder initParameter(); |
3062 | |
3063 | inline bool isImplicitMethodParameter(); |
3064 | inline typename ImplicitMethodParameter::Builder getImplicitMethodParameter(); |
3065 | inline typename ImplicitMethodParameter::Builder initImplicitMethodParameter(); |
3066 | |
3067 | private: |
3068 | ::capnp::_::StructBuilder _builder; |
3069 | template <typename, ::capnp::Kind> |
3070 | friend struct ::capnp::ToDynamic_; |
3071 | friend class ::capnp::Orphanage; |
3072 | template <typename, ::capnp::Kind> |
3073 | friend struct ::capnp::_::PointerHelpers; |
3074 | }; |
3075 | |
3076 | #if !CAPNP_LITE |
3077 | class Type::AnyPointer::Pipeline { |
3078 | public: |
3079 | typedef AnyPointer Pipelines; |
3080 | |
3081 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3082 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3083 | : _typeless(kj::mv(typeless)) {} |
3084 | |
3085 | private: |
3086 | ::capnp::AnyPointer::Pipeline _typeless; |
3087 | friend class ::capnp::PipelineHook; |
3088 | template <typename, ::capnp::Kind> |
3089 | friend struct ::capnp::ToDynamic_; |
3090 | }; |
3091 | #endif // !CAPNP_LITE |
3092 | |
3093 | class Type::AnyPointer::Unconstrained::Reader { |
3094 | public: |
3095 | typedef Unconstrained Reads; |
3096 | |
3097 | Reader() = default; |
3098 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3099 | |
3100 | inline ::capnp::MessageSize totalSize() const { |
3101 | return _reader.totalSize().asPublic(); |
3102 | } |
3103 | |
3104 | #if !CAPNP_LITE |
3105 | inline ::kj::StringTree toString() const { |
3106 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3107 | } |
3108 | #endif // !CAPNP_LITE |
3109 | |
3110 | inline Which which() const; |
3111 | inline bool isAnyKind() const; |
3112 | inline ::capnp::Void getAnyKind() const; |
3113 | |
3114 | inline bool isStruct() const; |
3115 | inline ::capnp::Void getStruct() const; |
3116 | |
3117 | inline bool isList() const; |
3118 | inline ::capnp::Void getList() const; |
3119 | |
3120 | inline bool isCapability() const; |
3121 | inline ::capnp::Void getCapability() const; |
3122 | |
3123 | private: |
3124 | ::capnp::_::StructReader _reader; |
3125 | template <typename, ::capnp::Kind> |
3126 | friend struct ::capnp::ToDynamic_; |
3127 | template <typename, ::capnp::Kind> |
3128 | friend struct ::capnp::_::PointerHelpers; |
3129 | template <typename, ::capnp::Kind> |
3130 | friend struct ::capnp::List; |
3131 | friend class ::capnp::MessageBuilder; |
3132 | friend class ::capnp::Orphanage; |
3133 | }; |
3134 | |
3135 | class Type::AnyPointer::Unconstrained::Builder { |
3136 | public: |
3137 | typedef Unconstrained Builds; |
3138 | |
3139 | Builder() = delete; // Deleted to discourage incorrect usage. |
3140 | // You can explicitly initialize to nullptr instead. |
3141 | inline Builder(decltype(nullptr)) {} |
3142 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3143 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3144 | inline Reader asReader() const { return *this; } |
3145 | |
3146 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3147 | #if !CAPNP_LITE |
3148 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3149 | #endif // !CAPNP_LITE |
3150 | |
3151 | inline Which which(); |
3152 | inline bool isAnyKind(); |
3153 | inline ::capnp::Void getAnyKind(); |
3154 | inline void setAnyKind( ::capnp::Void value = ::capnp::VOID); |
3155 | |
3156 | inline bool isStruct(); |
3157 | inline ::capnp::Void getStruct(); |
3158 | inline void setStruct( ::capnp::Void value = ::capnp::VOID); |
3159 | |
3160 | inline bool isList(); |
3161 | inline ::capnp::Void getList(); |
3162 | inline void setList( ::capnp::Void value = ::capnp::VOID); |
3163 | |
3164 | inline bool isCapability(); |
3165 | inline ::capnp::Void getCapability(); |
3166 | inline void setCapability( ::capnp::Void value = ::capnp::VOID); |
3167 | |
3168 | private: |
3169 | ::capnp::_::StructBuilder _builder; |
3170 | template <typename, ::capnp::Kind> |
3171 | friend struct ::capnp::ToDynamic_; |
3172 | friend class ::capnp::Orphanage; |
3173 | template <typename, ::capnp::Kind> |
3174 | friend struct ::capnp::_::PointerHelpers; |
3175 | }; |
3176 | |
3177 | #if !CAPNP_LITE |
3178 | class Type::AnyPointer::Unconstrained::Pipeline { |
3179 | public: |
3180 | typedef Unconstrained Pipelines; |
3181 | |
3182 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3183 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3184 | : _typeless(kj::mv(typeless)) {} |
3185 | |
3186 | private: |
3187 | ::capnp::AnyPointer::Pipeline _typeless; |
3188 | friend class ::capnp::PipelineHook; |
3189 | template <typename, ::capnp::Kind> |
3190 | friend struct ::capnp::ToDynamic_; |
3191 | }; |
3192 | #endif // !CAPNP_LITE |
3193 | |
3194 | class Type::AnyPointer::Parameter::Reader { |
3195 | public: |
3196 | typedef Parameter Reads; |
3197 | |
3198 | Reader() = default; |
3199 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3200 | |
3201 | inline ::capnp::MessageSize totalSize() const { |
3202 | return _reader.totalSize().asPublic(); |
3203 | } |
3204 | |
3205 | #if !CAPNP_LITE |
3206 | inline ::kj::StringTree toString() const { |
3207 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3208 | } |
3209 | #endif // !CAPNP_LITE |
3210 | |
3211 | inline ::uint64_t getScopeId() const; |
3212 | |
3213 | inline ::uint16_t getParameterIndex() const; |
3214 | |
3215 | private: |
3216 | ::capnp::_::StructReader _reader; |
3217 | template <typename, ::capnp::Kind> |
3218 | friend struct ::capnp::ToDynamic_; |
3219 | template <typename, ::capnp::Kind> |
3220 | friend struct ::capnp::_::PointerHelpers; |
3221 | template <typename, ::capnp::Kind> |
3222 | friend struct ::capnp::List; |
3223 | friend class ::capnp::MessageBuilder; |
3224 | friend class ::capnp::Orphanage; |
3225 | }; |
3226 | |
3227 | class Type::AnyPointer::Parameter::Builder { |
3228 | public: |
3229 | typedef Parameter Builds; |
3230 | |
3231 | Builder() = delete; // Deleted to discourage incorrect usage. |
3232 | // You can explicitly initialize to nullptr instead. |
3233 | inline Builder(decltype(nullptr)) {} |
3234 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3235 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3236 | inline Reader asReader() const { return *this; } |
3237 | |
3238 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3239 | #if !CAPNP_LITE |
3240 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3241 | #endif // !CAPNP_LITE |
3242 | |
3243 | inline ::uint64_t getScopeId(); |
3244 | inline void setScopeId( ::uint64_t value); |
3245 | |
3246 | inline ::uint16_t getParameterIndex(); |
3247 | inline void setParameterIndex( ::uint16_t value); |
3248 | |
3249 | private: |
3250 | ::capnp::_::StructBuilder _builder; |
3251 | template <typename, ::capnp::Kind> |
3252 | friend struct ::capnp::ToDynamic_; |
3253 | friend class ::capnp::Orphanage; |
3254 | template <typename, ::capnp::Kind> |
3255 | friend struct ::capnp::_::PointerHelpers; |
3256 | }; |
3257 | |
3258 | #if !CAPNP_LITE |
3259 | class Type::AnyPointer::Parameter::Pipeline { |
3260 | public: |
3261 | typedef Parameter Pipelines; |
3262 | |
3263 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3264 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3265 | : _typeless(kj::mv(typeless)) {} |
3266 | |
3267 | private: |
3268 | ::capnp::AnyPointer::Pipeline _typeless; |
3269 | friend class ::capnp::PipelineHook; |
3270 | template <typename, ::capnp::Kind> |
3271 | friend struct ::capnp::ToDynamic_; |
3272 | }; |
3273 | #endif // !CAPNP_LITE |
3274 | |
3275 | class Type::AnyPointer::ImplicitMethodParameter::Reader { |
3276 | public: |
3277 | typedef ImplicitMethodParameter Reads; |
3278 | |
3279 | Reader() = default; |
3280 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3281 | |
3282 | inline ::capnp::MessageSize totalSize() const { |
3283 | return _reader.totalSize().asPublic(); |
3284 | } |
3285 | |
3286 | #if !CAPNP_LITE |
3287 | inline ::kj::StringTree toString() const { |
3288 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3289 | } |
3290 | #endif // !CAPNP_LITE |
3291 | |
3292 | inline ::uint16_t getParameterIndex() const; |
3293 | |
3294 | private: |
3295 | ::capnp::_::StructReader _reader; |
3296 | template <typename, ::capnp::Kind> |
3297 | friend struct ::capnp::ToDynamic_; |
3298 | template <typename, ::capnp::Kind> |
3299 | friend struct ::capnp::_::PointerHelpers; |
3300 | template <typename, ::capnp::Kind> |
3301 | friend struct ::capnp::List; |
3302 | friend class ::capnp::MessageBuilder; |
3303 | friend class ::capnp::Orphanage; |
3304 | }; |
3305 | |
3306 | class Type::AnyPointer::ImplicitMethodParameter::Builder { |
3307 | public: |
3308 | typedef ImplicitMethodParameter Builds; |
3309 | |
3310 | Builder() = delete; // Deleted to discourage incorrect usage. |
3311 | // You can explicitly initialize to nullptr instead. |
3312 | inline Builder(decltype(nullptr)) {} |
3313 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3314 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3315 | inline Reader asReader() const { return *this; } |
3316 | |
3317 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3318 | #if !CAPNP_LITE |
3319 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3320 | #endif // !CAPNP_LITE |
3321 | |
3322 | inline ::uint16_t getParameterIndex(); |
3323 | inline void setParameterIndex( ::uint16_t value); |
3324 | |
3325 | private: |
3326 | ::capnp::_::StructBuilder _builder; |
3327 | template <typename, ::capnp::Kind> |
3328 | friend struct ::capnp::ToDynamic_; |
3329 | friend class ::capnp::Orphanage; |
3330 | template <typename, ::capnp::Kind> |
3331 | friend struct ::capnp::_::PointerHelpers; |
3332 | }; |
3333 | |
3334 | #if !CAPNP_LITE |
3335 | class Type::AnyPointer::ImplicitMethodParameter::Pipeline { |
3336 | public: |
3337 | typedef ImplicitMethodParameter Pipelines; |
3338 | |
3339 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3340 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3341 | : _typeless(kj::mv(typeless)) {} |
3342 | |
3343 | private: |
3344 | ::capnp::AnyPointer::Pipeline _typeless; |
3345 | friend class ::capnp::PipelineHook; |
3346 | template <typename, ::capnp::Kind> |
3347 | friend struct ::capnp::ToDynamic_; |
3348 | }; |
3349 | #endif // !CAPNP_LITE |
3350 | |
3351 | class Brand::Reader { |
3352 | public: |
3353 | typedef Brand Reads; |
3354 | |
3355 | Reader() = default; |
3356 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3357 | |
3358 | inline ::capnp::MessageSize totalSize() const { |
3359 | return _reader.totalSize().asPublic(); |
3360 | } |
3361 | |
3362 | #if !CAPNP_LITE |
3363 | inline ::kj::StringTree toString() const { |
3364 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3365 | } |
3366 | #endif // !CAPNP_LITE |
3367 | |
3368 | inline bool hasScopes() const; |
3369 | inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader getScopes() const; |
3370 | |
3371 | private: |
3372 | ::capnp::_::StructReader _reader; |
3373 | template <typename, ::capnp::Kind> |
3374 | friend struct ::capnp::ToDynamic_; |
3375 | template <typename, ::capnp::Kind> |
3376 | friend struct ::capnp::_::PointerHelpers; |
3377 | template <typename, ::capnp::Kind> |
3378 | friend struct ::capnp::List; |
3379 | friend class ::capnp::MessageBuilder; |
3380 | friend class ::capnp::Orphanage; |
3381 | }; |
3382 | |
3383 | class Brand::Builder { |
3384 | public: |
3385 | typedef Brand Builds; |
3386 | |
3387 | Builder() = delete; // Deleted to discourage incorrect usage. |
3388 | // You can explicitly initialize to nullptr instead. |
3389 | inline Builder(decltype(nullptr)) {} |
3390 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3391 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3392 | inline Reader asReader() const { return *this; } |
3393 | |
3394 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3395 | #if !CAPNP_LITE |
3396 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3397 | #endif // !CAPNP_LITE |
3398 | |
3399 | inline bool hasScopes(); |
3400 | inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder getScopes(); |
3401 | inline void setScopes( ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader value); |
3402 | inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder initScopes(unsigned int size); |
3403 | inline void adoptScopes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>&& value); |
3404 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>> disownScopes(); |
3405 | |
3406 | private: |
3407 | ::capnp::_::StructBuilder _builder; |
3408 | template <typename, ::capnp::Kind> |
3409 | friend struct ::capnp::ToDynamic_; |
3410 | friend class ::capnp::Orphanage; |
3411 | template <typename, ::capnp::Kind> |
3412 | friend struct ::capnp::_::PointerHelpers; |
3413 | }; |
3414 | |
3415 | #if !CAPNP_LITE |
3416 | class Brand::Pipeline { |
3417 | public: |
3418 | typedef Brand Pipelines; |
3419 | |
3420 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3421 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3422 | : _typeless(kj::mv(typeless)) {} |
3423 | |
3424 | private: |
3425 | ::capnp::AnyPointer::Pipeline _typeless; |
3426 | friend class ::capnp::PipelineHook; |
3427 | template <typename, ::capnp::Kind> |
3428 | friend struct ::capnp::ToDynamic_; |
3429 | }; |
3430 | #endif // !CAPNP_LITE |
3431 | |
3432 | class Brand::Scope::Reader { |
3433 | public: |
3434 | typedef Scope Reads; |
3435 | |
3436 | Reader() = default; |
3437 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3438 | |
3439 | inline ::capnp::MessageSize totalSize() const { |
3440 | return _reader.totalSize().asPublic(); |
3441 | } |
3442 | |
3443 | #if !CAPNP_LITE |
3444 | inline ::kj::StringTree toString() const { |
3445 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3446 | } |
3447 | #endif // !CAPNP_LITE |
3448 | |
3449 | inline Which which() const; |
3450 | inline ::uint64_t getScopeId() const; |
3451 | |
3452 | inline bool isBind() const; |
3453 | inline bool hasBind() const; |
3454 | inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader getBind() const; |
3455 | |
3456 | inline bool isInherit() const; |
3457 | inline ::capnp::Void getInherit() const; |
3458 | |
3459 | private: |
3460 | ::capnp::_::StructReader _reader; |
3461 | template <typename, ::capnp::Kind> |
3462 | friend struct ::capnp::ToDynamic_; |
3463 | template <typename, ::capnp::Kind> |
3464 | friend struct ::capnp::_::PointerHelpers; |
3465 | template <typename, ::capnp::Kind> |
3466 | friend struct ::capnp::List; |
3467 | friend class ::capnp::MessageBuilder; |
3468 | friend class ::capnp::Orphanage; |
3469 | }; |
3470 | |
3471 | class Brand::Scope::Builder { |
3472 | public: |
3473 | typedef Scope Builds; |
3474 | |
3475 | Builder() = delete; // Deleted to discourage incorrect usage. |
3476 | // You can explicitly initialize to nullptr instead. |
3477 | inline Builder(decltype(nullptr)) {} |
3478 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3479 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3480 | inline Reader asReader() const { return *this; } |
3481 | |
3482 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3483 | #if !CAPNP_LITE |
3484 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3485 | #endif // !CAPNP_LITE |
3486 | |
3487 | inline Which which(); |
3488 | inline ::uint64_t getScopeId(); |
3489 | inline void setScopeId( ::uint64_t value); |
3490 | |
3491 | inline bool isBind(); |
3492 | inline bool hasBind(); |
3493 | inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder getBind(); |
3494 | inline void setBind( ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader value); |
3495 | inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder initBind(unsigned int size); |
3496 | inline void adoptBind(::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>&& value); |
3497 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>> disownBind(); |
3498 | |
3499 | inline bool isInherit(); |
3500 | inline ::capnp::Void getInherit(); |
3501 | inline void setInherit( ::capnp::Void value = ::capnp::VOID); |
3502 | |
3503 | private: |
3504 | ::capnp::_::StructBuilder _builder; |
3505 | template <typename, ::capnp::Kind> |
3506 | friend struct ::capnp::ToDynamic_; |
3507 | friend class ::capnp::Orphanage; |
3508 | template <typename, ::capnp::Kind> |
3509 | friend struct ::capnp::_::PointerHelpers; |
3510 | }; |
3511 | |
3512 | #if !CAPNP_LITE |
3513 | class Brand::Scope::Pipeline { |
3514 | public: |
3515 | typedef Scope Pipelines; |
3516 | |
3517 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3518 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3519 | : _typeless(kj::mv(typeless)) {} |
3520 | |
3521 | private: |
3522 | ::capnp::AnyPointer::Pipeline _typeless; |
3523 | friend class ::capnp::PipelineHook; |
3524 | template <typename, ::capnp::Kind> |
3525 | friend struct ::capnp::ToDynamic_; |
3526 | }; |
3527 | #endif // !CAPNP_LITE |
3528 | |
3529 | class Brand::Binding::Reader { |
3530 | public: |
3531 | typedef Binding Reads; |
3532 | |
3533 | Reader() = default; |
3534 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3535 | |
3536 | inline ::capnp::MessageSize totalSize() const { |
3537 | return _reader.totalSize().asPublic(); |
3538 | } |
3539 | |
3540 | #if !CAPNP_LITE |
3541 | inline ::kj::StringTree toString() const { |
3542 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3543 | } |
3544 | #endif // !CAPNP_LITE |
3545 | |
3546 | inline Which which() const; |
3547 | inline bool isUnbound() const; |
3548 | inline ::capnp::Void getUnbound() const; |
3549 | |
3550 | inline bool isType() const; |
3551 | inline bool hasType() const; |
3552 | inline ::capnp::schema::Type::Reader getType() const; |
3553 | |
3554 | private: |
3555 | ::capnp::_::StructReader _reader; |
3556 | template <typename, ::capnp::Kind> |
3557 | friend struct ::capnp::ToDynamic_; |
3558 | template <typename, ::capnp::Kind> |
3559 | friend struct ::capnp::_::PointerHelpers; |
3560 | template <typename, ::capnp::Kind> |
3561 | friend struct ::capnp::List; |
3562 | friend class ::capnp::MessageBuilder; |
3563 | friend class ::capnp::Orphanage; |
3564 | }; |
3565 | |
3566 | class Brand::Binding::Builder { |
3567 | public: |
3568 | typedef Binding Builds; |
3569 | |
3570 | Builder() = delete; // Deleted to discourage incorrect usage. |
3571 | // You can explicitly initialize to nullptr instead. |
3572 | inline Builder(decltype(nullptr)) {} |
3573 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3574 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3575 | inline Reader asReader() const { return *this; } |
3576 | |
3577 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3578 | #if !CAPNP_LITE |
3579 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3580 | #endif // !CAPNP_LITE |
3581 | |
3582 | inline Which which(); |
3583 | inline bool isUnbound(); |
3584 | inline ::capnp::Void getUnbound(); |
3585 | inline void setUnbound( ::capnp::Void value = ::capnp::VOID); |
3586 | |
3587 | inline bool isType(); |
3588 | inline bool hasType(); |
3589 | inline ::capnp::schema::Type::Builder getType(); |
3590 | inline void setType( ::capnp::schema::Type::Reader value); |
3591 | inline ::capnp::schema::Type::Builder initType(); |
3592 | inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); |
3593 | inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); |
3594 | |
3595 | private: |
3596 | ::capnp::_::StructBuilder _builder; |
3597 | template <typename, ::capnp::Kind> |
3598 | friend struct ::capnp::ToDynamic_; |
3599 | friend class ::capnp::Orphanage; |
3600 | template <typename, ::capnp::Kind> |
3601 | friend struct ::capnp::_::PointerHelpers; |
3602 | }; |
3603 | |
3604 | #if !CAPNP_LITE |
3605 | class Brand::Binding::Pipeline { |
3606 | public: |
3607 | typedef Binding Pipelines; |
3608 | |
3609 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3610 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3611 | : _typeless(kj::mv(typeless)) {} |
3612 | |
3613 | private: |
3614 | ::capnp::AnyPointer::Pipeline _typeless; |
3615 | friend class ::capnp::PipelineHook; |
3616 | template <typename, ::capnp::Kind> |
3617 | friend struct ::capnp::ToDynamic_; |
3618 | }; |
3619 | #endif // !CAPNP_LITE |
3620 | |
3621 | class Value::Reader { |
3622 | public: |
3623 | typedef Value Reads; |
3624 | |
3625 | Reader() = default; |
3626 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3627 | |
3628 | inline ::capnp::MessageSize totalSize() const { |
3629 | return _reader.totalSize().asPublic(); |
3630 | } |
3631 | |
3632 | #if !CAPNP_LITE |
3633 | inline ::kj::StringTree toString() const { |
3634 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3635 | } |
3636 | #endif // !CAPNP_LITE |
3637 | |
3638 | inline Which which() const; |
3639 | inline bool isVoid() const; |
3640 | inline ::capnp::Void getVoid() const; |
3641 | |
3642 | inline bool isBool() const; |
3643 | inline bool getBool() const; |
3644 | |
3645 | inline bool isInt8() const; |
3646 | inline ::int8_t getInt8() const; |
3647 | |
3648 | inline bool isInt16() const; |
3649 | inline ::int16_t getInt16() const; |
3650 | |
3651 | inline bool isInt32() const; |
3652 | inline ::int32_t getInt32() const; |
3653 | |
3654 | inline bool isInt64() const; |
3655 | inline ::int64_t getInt64() const; |
3656 | |
3657 | inline bool isUint8() const; |
3658 | inline ::uint8_t getUint8() const; |
3659 | |
3660 | inline bool isUint16() const; |
3661 | inline ::uint16_t getUint16() const; |
3662 | |
3663 | inline bool isUint32() const; |
3664 | inline ::uint32_t getUint32() const; |
3665 | |
3666 | inline bool isUint64() const; |
3667 | inline ::uint64_t getUint64() const; |
3668 | |
3669 | inline bool isFloat32() const; |
3670 | inline float getFloat32() const; |
3671 | |
3672 | inline bool isFloat64() const; |
3673 | inline double getFloat64() const; |
3674 | |
3675 | inline bool isText() const; |
3676 | inline bool hasText() const; |
3677 | inline ::capnp::Text::Reader getText() const; |
3678 | |
3679 | inline bool isData() const; |
3680 | inline bool hasData() const; |
3681 | inline ::capnp::Data::Reader getData() const; |
3682 | |
3683 | inline bool isList() const; |
3684 | inline bool hasList() const; |
3685 | inline ::capnp::AnyPointer::Reader getList() const; |
3686 | |
3687 | inline bool isEnum() const; |
3688 | inline ::uint16_t getEnum() const; |
3689 | |
3690 | inline bool isStruct() const; |
3691 | inline bool hasStruct() const; |
3692 | inline ::capnp::AnyPointer::Reader getStruct() const; |
3693 | |
3694 | inline bool isInterface() const; |
3695 | inline ::capnp::Void getInterface() const; |
3696 | |
3697 | inline bool isAnyPointer() const; |
3698 | inline bool hasAnyPointer() const; |
3699 | inline ::capnp::AnyPointer::Reader getAnyPointer() const; |
3700 | |
3701 | private: |
3702 | ::capnp::_::StructReader _reader; |
3703 | template <typename, ::capnp::Kind> |
3704 | friend struct ::capnp::ToDynamic_; |
3705 | template <typename, ::capnp::Kind> |
3706 | friend struct ::capnp::_::PointerHelpers; |
3707 | template <typename, ::capnp::Kind> |
3708 | friend struct ::capnp::List; |
3709 | friend class ::capnp::MessageBuilder; |
3710 | friend class ::capnp::Orphanage; |
3711 | }; |
3712 | |
3713 | class Value::Builder { |
3714 | public: |
3715 | typedef Value Builds; |
3716 | |
3717 | Builder() = delete; // Deleted to discourage incorrect usage. |
3718 | // You can explicitly initialize to nullptr instead. |
3719 | inline Builder(decltype(nullptr)) {} |
3720 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3721 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3722 | inline Reader asReader() const { return *this; } |
3723 | |
3724 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3725 | #if !CAPNP_LITE |
3726 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3727 | #endif // !CAPNP_LITE |
3728 | |
3729 | inline Which which(); |
3730 | inline bool isVoid(); |
3731 | inline ::capnp::Void getVoid(); |
3732 | inline void setVoid( ::capnp::Void value = ::capnp::VOID); |
3733 | |
3734 | inline bool isBool(); |
3735 | inline bool getBool(); |
3736 | inline void setBool(bool value); |
3737 | |
3738 | inline bool isInt8(); |
3739 | inline ::int8_t getInt8(); |
3740 | inline void setInt8( ::int8_t value); |
3741 | |
3742 | inline bool isInt16(); |
3743 | inline ::int16_t getInt16(); |
3744 | inline void setInt16( ::int16_t value); |
3745 | |
3746 | inline bool isInt32(); |
3747 | inline ::int32_t getInt32(); |
3748 | inline void setInt32( ::int32_t value); |
3749 | |
3750 | inline bool isInt64(); |
3751 | inline ::int64_t getInt64(); |
3752 | inline void setInt64( ::int64_t value); |
3753 | |
3754 | inline bool isUint8(); |
3755 | inline ::uint8_t getUint8(); |
3756 | inline void setUint8( ::uint8_t value); |
3757 | |
3758 | inline bool isUint16(); |
3759 | inline ::uint16_t getUint16(); |
3760 | inline void setUint16( ::uint16_t value); |
3761 | |
3762 | inline bool isUint32(); |
3763 | inline ::uint32_t getUint32(); |
3764 | inline void setUint32( ::uint32_t value); |
3765 | |
3766 | inline bool isUint64(); |
3767 | inline ::uint64_t getUint64(); |
3768 | inline void setUint64( ::uint64_t value); |
3769 | |
3770 | inline bool isFloat32(); |
3771 | inline float getFloat32(); |
3772 | inline void setFloat32(float value); |
3773 | |
3774 | inline bool isFloat64(); |
3775 | inline double getFloat64(); |
3776 | inline void setFloat64(double value); |
3777 | |
3778 | inline bool isText(); |
3779 | inline bool hasText(); |
3780 | inline ::capnp::Text::Builder getText(); |
3781 | inline void setText( ::capnp::Text::Reader value); |
3782 | inline ::capnp::Text::Builder initText(unsigned int size); |
3783 | inline void adoptText(::capnp::Orphan< ::capnp::Text>&& value); |
3784 | inline ::capnp::Orphan< ::capnp::Text> disownText(); |
3785 | |
3786 | inline bool isData(); |
3787 | inline bool hasData(); |
3788 | inline ::capnp::Data::Builder getData(); |
3789 | inline void setData( ::capnp::Data::Reader value); |
3790 | inline ::capnp::Data::Builder initData(unsigned int size); |
3791 | inline void adoptData(::capnp::Orphan< ::capnp::Data>&& value); |
3792 | inline ::capnp::Orphan< ::capnp::Data> disownData(); |
3793 | |
3794 | inline bool isList(); |
3795 | inline bool hasList(); |
3796 | inline ::capnp::AnyPointer::Builder getList(); |
3797 | inline ::capnp::AnyPointer::Builder initList(); |
3798 | |
3799 | inline bool isEnum(); |
3800 | inline ::uint16_t getEnum(); |
3801 | inline void setEnum( ::uint16_t value); |
3802 | |
3803 | inline bool isStruct(); |
3804 | inline bool hasStruct(); |
3805 | inline ::capnp::AnyPointer::Builder getStruct(); |
3806 | inline ::capnp::AnyPointer::Builder initStruct(); |
3807 | |
3808 | inline bool isInterface(); |
3809 | inline ::capnp::Void getInterface(); |
3810 | inline void setInterface( ::capnp::Void value = ::capnp::VOID); |
3811 | |
3812 | inline bool isAnyPointer(); |
3813 | inline bool hasAnyPointer(); |
3814 | inline ::capnp::AnyPointer::Builder getAnyPointer(); |
3815 | inline ::capnp::AnyPointer::Builder initAnyPointer(); |
3816 | |
3817 | private: |
3818 | ::capnp::_::StructBuilder _builder; |
3819 | template <typename, ::capnp::Kind> |
3820 | friend struct ::capnp::ToDynamic_; |
3821 | friend class ::capnp::Orphanage; |
3822 | template <typename, ::capnp::Kind> |
3823 | friend struct ::capnp::_::PointerHelpers; |
3824 | }; |
3825 | |
3826 | #if !CAPNP_LITE |
3827 | class Value::Pipeline { |
3828 | public: |
3829 | typedef Value Pipelines; |
3830 | |
3831 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3832 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3833 | : _typeless(kj::mv(typeless)) {} |
3834 | |
3835 | private: |
3836 | ::capnp::AnyPointer::Pipeline _typeless; |
3837 | friend class ::capnp::PipelineHook; |
3838 | template <typename, ::capnp::Kind> |
3839 | friend struct ::capnp::ToDynamic_; |
3840 | }; |
3841 | #endif // !CAPNP_LITE |
3842 | |
3843 | class Annotation::Reader { |
3844 | public: |
3845 | typedef Annotation Reads; |
3846 | |
3847 | Reader() = default; |
3848 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3849 | |
3850 | inline ::capnp::MessageSize totalSize() const { |
3851 | return _reader.totalSize().asPublic(); |
3852 | } |
3853 | |
3854 | #if !CAPNP_LITE |
3855 | inline ::kj::StringTree toString() const { |
3856 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3857 | } |
3858 | #endif // !CAPNP_LITE |
3859 | |
3860 | inline ::uint64_t getId() const; |
3861 | |
3862 | inline bool hasValue() const; |
3863 | inline ::capnp::schema::Value::Reader getValue() const; |
3864 | |
3865 | inline bool hasBrand() const; |
3866 | inline ::capnp::schema::Brand::Reader getBrand() const; |
3867 | |
3868 | private: |
3869 | ::capnp::_::StructReader _reader; |
3870 | template <typename, ::capnp::Kind> |
3871 | friend struct ::capnp::ToDynamic_; |
3872 | template <typename, ::capnp::Kind> |
3873 | friend struct ::capnp::_::PointerHelpers; |
3874 | template <typename, ::capnp::Kind> |
3875 | friend struct ::capnp::List; |
3876 | friend class ::capnp::MessageBuilder; |
3877 | friend class ::capnp::Orphanage; |
3878 | }; |
3879 | |
3880 | class Annotation::Builder { |
3881 | public: |
3882 | typedef Annotation Builds; |
3883 | |
3884 | Builder() = delete; // Deleted to discourage incorrect usage. |
3885 | // You can explicitly initialize to nullptr instead. |
3886 | inline Builder(decltype(nullptr)) {} |
3887 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3888 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3889 | inline Reader asReader() const { return *this; } |
3890 | |
3891 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3892 | #if !CAPNP_LITE |
3893 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3894 | #endif // !CAPNP_LITE |
3895 | |
3896 | inline ::uint64_t getId(); |
3897 | inline void setId( ::uint64_t value); |
3898 | |
3899 | inline bool hasValue(); |
3900 | inline ::capnp::schema::Value::Builder getValue(); |
3901 | inline void setValue( ::capnp::schema::Value::Reader value); |
3902 | inline ::capnp::schema::Value::Builder initValue(); |
3903 | inline void adoptValue(::capnp::Orphan< ::capnp::schema::Value>&& value); |
3904 | inline ::capnp::Orphan< ::capnp::schema::Value> disownValue(); |
3905 | |
3906 | inline bool hasBrand(); |
3907 | inline ::capnp::schema::Brand::Builder getBrand(); |
3908 | inline void setBrand( ::capnp::schema::Brand::Reader value); |
3909 | inline ::capnp::schema::Brand::Builder initBrand(); |
3910 | inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); |
3911 | inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); |
3912 | |
3913 | private: |
3914 | ::capnp::_::StructBuilder _builder; |
3915 | template <typename, ::capnp::Kind> |
3916 | friend struct ::capnp::ToDynamic_; |
3917 | friend class ::capnp::Orphanage; |
3918 | template <typename, ::capnp::Kind> |
3919 | friend struct ::capnp::_::PointerHelpers; |
3920 | }; |
3921 | |
3922 | #if !CAPNP_LITE |
3923 | class Annotation::Pipeline { |
3924 | public: |
3925 | typedef Annotation Pipelines; |
3926 | |
3927 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3928 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3929 | : _typeless(kj::mv(typeless)) {} |
3930 | |
3931 | inline ::capnp::schema::Value::Pipeline getValue(); |
3932 | inline ::capnp::schema::Brand::Pipeline getBrand(); |
3933 | private: |
3934 | ::capnp::AnyPointer::Pipeline _typeless; |
3935 | friend class ::capnp::PipelineHook; |
3936 | template <typename, ::capnp::Kind> |
3937 | friend struct ::capnp::ToDynamic_; |
3938 | }; |
3939 | #endif // !CAPNP_LITE |
3940 | |
3941 | class CapnpVersion::Reader { |
3942 | public: |
3943 | typedef CapnpVersion Reads; |
3944 | |
3945 | Reader() = default; |
3946 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3947 | |
3948 | inline ::capnp::MessageSize totalSize() const { |
3949 | return _reader.totalSize().asPublic(); |
3950 | } |
3951 | |
3952 | #if !CAPNP_LITE |
3953 | inline ::kj::StringTree toString() const { |
3954 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3955 | } |
3956 | #endif // !CAPNP_LITE |
3957 | |
3958 | inline ::uint16_t getMajor() const; |
3959 | |
3960 | inline ::uint8_t getMinor() const; |
3961 | |
3962 | inline ::uint8_t getMicro() const; |
3963 | |
3964 | private: |
3965 | ::capnp::_::StructReader _reader; |
3966 | template <typename, ::capnp::Kind> |
3967 | friend struct ::capnp::ToDynamic_; |
3968 | template <typename, ::capnp::Kind> |
3969 | friend struct ::capnp::_::PointerHelpers; |
3970 | template <typename, ::capnp::Kind> |
3971 | friend struct ::capnp::List; |
3972 | friend class ::capnp::MessageBuilder; |
3973 | friend class ::capnp::Orphanage; |
3974 | }; |
3975 | |
3976 | class CapnpVersion::Builder { |
3977 | public: |
3978 | typedef CapnpVersion Builds; |
3979 | |
3980 | Builder() = delete; // Deleted to discourage incorrect usage. |
3981 | // You can explicitly initialize to nullptr instead. |
3982 | inline Builder(decltype(nullptr)) {} |
3983 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3984 | inline operator Reader() const { return Reader(_builder.asReader()); } |
3985 | inline Reader asReader() const { return *this; } |
3986 | |
3987 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3988 | #if !CAPNP_LITE |
3989 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
3990 | #endif // !CAPNP_LITE |
3991 | |
3992 | inline ::uint16_t getMajor(); |
3993 | inline void setMajor( ::uint16_t value); |
3994 | |
3995 | inline ::uint8_t getMinor(); |
3996 | inline void setMinor( ::uint8_t value); |
3997 | |
3998 | inline ::uint8_t getMicro(); |
3999 | inline void setMicro( ::uint8_t value); |
4000 | |
4001 | private: |
4002 | ::capnp::_::StructBuilder _builder; |
4003 | template <typename, ::capnp::Kind> |
4004 | friend struct ::capnp::ToDynamic_; |
4005 | friend class ::capnp::Orphanage; |
4006 | template <typename, ::capnp::Kind> |
4007 | friend struct ::capnp::_::PointerHelpers; |
4008 | }; |
4009 | |
4010 | #if !CAPNP_LITE |
4011 | class CapnpVersion::Pipeline { |
4012 | public: |
4013 | typedef CapnpVersion Pipelines; |
4014 | |
4015 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
4016 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
4017 | : _typeless(kj::mv(typeless)) {} |
4018 | |
4019 | private: |
4020 | ::capnp::AnyPointer::Pipeline _typeless; |
4021 | friend class ::capnp::PipelineHook; |
4022 | template <typename, ::capnp::Kind> |
4023 | friend struct ::capnp::ToDynamic_; |
4024 | }; |
4025 | #endif // !CAPNP_LITE |
4026 | |
4027 | class CodeGeneratorRequest::Reader { |
4028 | public: |
4029 | typedef CodeGeneratorRequest Reads; |
4030 | |
4031 | Reader() = default; |
4032 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
4033 | |
4034 | inline ::capnp::MessageSize totalSize() const { |
4035 | return _reader.totalSize().asPublic(); |
4036 | } |
4037 | |
4038 | #if !CAPNP_LITE |
4039 | inline ::kj::StringTree toString() const { |
4040 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
4041 | } |
4042 | #endif // !CAPNP_LITE |
4043 | |
4044 | inline bool hasNodes() const; |
4045 | inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader getNodes() const; |
4046 | |
4047 | inline bool hasRequestedFiles() const; |
4048 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader getRequestedFiles() const; |
4049 | |
4050 | inline bool hasCapnpVersion() const; |
4051 | inline ::capnp::schema::CapnpVersion::Reader getCapnpVersion() const; |
4052 | |
4053 | inline bool hasSourceInfo() const; |
4054 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader getSourceInfo() const; |
4055 | |
4056 | private: |
4057 | ::capnp::_::StructReader _reader; |
4058 | template <typename, ::capnp::Kind> |
4059 | friend struct ::capnp::ToDynamic_; |
4060 | template <typename, ::capnp::Kind> |
4061 | friend struct ::capnp::_::PointerHelpers; |
4062 | template <typename, ::capnp::Kind> |
4063 | friend struct ::capnp::List; |
4064 | friend class ::capnp::MessageBuilder; |
4065 | friend class ::capnp::Orphanage; |
4066 | }; |
4067 | |
4068 | class CodeGeneratorRequest::Builder { |
4069 | public: |
4070 | typedef CodeGeneratorRequest Builds; |
4071 | |
4072 | Builder() = delete; // Deleted to discourage incorrect usage. |
4073 | // You can explicitly initialize to nullptr instead. |
4074 | inline Builder(decltype(nullptr)) {} |
4075 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
4076 | inline operator Reader() const { return Reader(_builder.asReader()); } |
4077 | inline Reader asReader() const { return *this; } |
4078 | |
4079 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
4080 | #if !CAPNP_LITE |
4081 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
4082 | #endif // !CAPNP_LITE |
4083 | |
4084 | inline bool hasNodes(); |
4085 | inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder getNodes(); |
4086 | inline void setNodes( ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader value); |
4087 | inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder initNodes(unsigned int size); |
4088 | inline void adoptNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>&& value); |
4089 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>> disownNodes(); |
4090 | |
4091 | inline bool hasRequestedFiles(); |
4092 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder getRequestedFiles(); |
4093 | inline void setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader value); |
4094 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder initRequestedFiles(unsigned int size); |
4095 | inline void adoptRequestedFiles(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>&& value); |
4096 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>> disownRequestedFiles(); |
4097 | |
4098 | inline bool hasCapnpVersion(); |
4099 | inline ::capnp::schema::CapnpVersion::Builder getCapnpVersion(); |
4100 | inline void setCapnpVersion( ::capnp::schema::CapnpVersion::Reader value); |
4101 | inline ::capnp::schema::CapnpVersion::Builder initCapnpVersion(); |
4102 | inline void adoptCapnpVersion(::capnp::Orphan< ::capnp::schema::CapnpVersion>&& value); |
4103 | inline ::capnp::Orphan< ::capnp::schema::CapnpVersion> disownCapnpVersion(); |
4104 | |
4105 | inline bool hasSourceInfo(); |
4106 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder getSourceInfo(); |
4107 | inline void setSourceInfo( ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader value); |
4108 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder initSourceInfo(unsigned int size); |
4109 | inline void adoptSourceInfo(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>&& value); |
4110 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>> disownSourceInfo(); |
4111 | |
4112 | private: |
4113 | ::capnp::_::StructBuilder _builder; |
4114 | template <typename, ::capnp::Kind> |
4115 | friend struct ::capnp::ToDynamic_; |
4116 | friend class ::capnp::Orphanage; |
4117 | template <typename, ::capnp::Kind> |
4118 | friend struct ::capnp::_::PointerHelpers; |
4119 | }; |
4120 | |
4121 | #if !CAPNP_LITE |
4122 | class CodeGeneratorRequest::Pipeline { |
4123 | public: |
4124 | typedef CodeGeneratorRequest Pipelines; |
4125 | |
4126 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
4127 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
4128 | : _typeless(kj::mv(typeless)) {} |
4129 | |
4130 | inline ::capnp::schema::CapnpVersion::Pipeline getCapnpVersion(); |
4131 | private: |
4132 | ::capnp::AnyPointer::Pipeline _typeless; |
4133 | friend class ::capnp::PipelineHook; |
4134 | template <typename, ::capnp::Kind> |
4135 | friend struct ::capnp::ToDynamic_; |
4136 | }; |
4137 | #endif // !CAPNP_LITE |
4138 | |
4139 | class CodeGeneratorRequest::RequestedFile::Reader { |
4140 | public: |
4141 | typedef RequestedFile Reads; |
4142 | |
4143 | Reader() = default; |
4144 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
4145 | |
4146 | inline ::capnp::MessageSize totalSize() const { |
4147 | return _reader.totalSize().asPublic(); |
4148 | } |
4149 | |
4150 | #if !CAPNP_LITE |
4151 | inline ::kj::StringTree toString() const { |
4152 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
4153 | } |
4154 | #endif // !CAPNP_LITE |
4155 | |
4156 | inline ::uint64_t getId() const; |
4157 | |
4158 | inline bool hasFilename() const; |
4159 | inline ::capnp::Text::Reader getFilename() const; |
4160 | |
4161 | inline bool hasImports() const; |
4162 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader getImports() const; |
4163 | |
4164 | private: |
4165 | ::capnp::_::StructReader _reader; |
4166 | template <typename, ::capnp::Kind> |
4167 | friend struct ::capnp::ToDynamic_; |
4168 | template <typename, ::capnp::Kind> |
4169 | friend struct ::capnp::_::PointerHelpers; |
4170 | template <typename, ::capnp::Kind> |
4171 | friend struct ::capnp::List; |
4172 | friend class ::capnp::MessageBuilder; |
4173 | friend class ::capnp::Orphanage; |
4174 | }; |
4175 | |
4176 | class CodeGeneratorRequest::RequestedFile::Builder { |
4177 | public: |
4178 | typedef RequestedFile Builds; |
4179 | |
4180 | Builder() = delete; // Deleted to discourage incorrect usage. |
4181 | // You can explicitly initialize to nullptr instead. |
4182 | inline Builder(decltype(nullptr)) {} |
4183 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
4184 | inline operator Reader() const { return Reader(_builder.asReader()); } |
4185 | inline Reader asReader() const { return *this; } |
4186 | |
4187 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
4188 | #if !CAPNP_LITE |
4189 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
4190 | #endif // !CAPNP_LITE |
4191 | |
4192 | inline ::uint64_t getId(); |
4193 | inline void setId( ::uint64_t value); |
4194 | |
4195 | inline bool hasFilename(); |
4196 | inline ::capnp::Text::Builder getFilename(); |
4197 | inline void setFilename( ::capnp::Text::Reader value); |
4198 | inline ::capnp::Text::Builder initFilename(unsigned int size); |
4199 | inline void adoptFilename(::capnp::Orphan< ::capnp::Text>&& value); |
4200 | inline ::capnp::Orphan< ::capnp::Text> disownFilename(); |
4201 | |
4202 | inline bool hasImports(); |
4203 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder getImports(); |
4204 | inline void setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader value); |
4205 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder initImports(unsigned int size); |
4206 | inline void adoptImports(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>&& value); |
4207 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>> disownImports(); |
4208 | |
4209 | private: |
4210 | ::capnp::_::StructBuilder _builder; |
4211 | template <typename, ::capnp::Kind> |
4212 | friend struct ::capnp::ToDynamic_; |
4213 | friend class ::capnp::Orphanage; |
4214 | template <typename, ::capnp::Kind> |
4215 | friend struct ::capnp::_::PointerHelpers; |
4216 | }; |
4217 | |
4218 | #if !CAPNP_LITE |
4219 | class CodeGeneratorRequest::RequestedFile::Pipeline { |
4220 | public: |
4221 | typedef RequestedFile Pipelines; |
4222 | |
4223 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
4224 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
4225 | : _typeless(kj::mv(typeless)) {} |
4226 | |
4227 | private: |
4228 | ::capnp::AnyPointer::Pipeline _typeless; |
4229 | friend class ::capnp::PipelineHook; |
4230 | template <typename, ::capnp::Kind> |
4231 | friend struct ::capnp::ToDynamic_; |
4232 | }; |
4233 | #endif // !CAPNP_LITE |
4234 | |
4235 | class CodeGeneratorRequest::RequestedFile::Import::Reader { |
4236 | public: |
4237 | typedef Import Reads; |
4238 | |
4239 | Reader() = default; |
4240 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
4241 | |
4242 | inline ::capnp::MessageSize totalSize() const { |
4243 | return _reader.totalSize().asPublic(); |
4244 | } |
4245 | |
4246 | #if !CAPNP_LITE |
4247 | inline ::kj::StringTree toString() const { |
4248 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
4249 | } |
4250 | #endif // !CAPNP_LITE |
4251 | |
4252 | inline ::uint64_t getId() const; |
4253 | |
4254 | inline bool hasName() const; |
4255 | inline ::capnp::Text::Reader getName() const; |
4256 | |
4257 | private: |
4258 | ::capnp::_::StructReader _reader; |
4259 | template <typename, ::capnp::Kind> |
4260 | friend struct ::capnp::ToDynamic_; |
4261 | template <typename, ::capnp::Kind> |
4262 | friend struct ::capnp::_::PointerHelpers; |
4263 | template <typename, ::capnp::Kind> |
4264 | friend struct ::capnp::List; |
4265 | friend class ::capnp::MessageBuilder; |
4266 | friend class ::capnp::Orphanage; |
4267 | }; |
4268 | |
4269 | class CodeGeneratorRequest::RequestedFile::Import::Builder { |
4270 | public: |
4271 | typedef Import Builds; |
4272 | |
4273 | Builder() = delete; // Deleted to discourage incorrect usage. |
4274 | // You can explicitly initialize to nullptr instead. |
4275 | inline Builder(decltype(nullptr)) {} |
4276 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
4277 | inline operator Reader() const { return Reader(_builder.asReader()); } |
4278 | inline Reader asReader() const { return *this; } |
4279 | |
4280 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
4281 | #if !CAPNP_LITE |
4282 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
4283 | #endif // !CAPNP_LITE |
4284 | |
4285 | inline ::uint64_t getId(); |
4286 | inline void setId( ::uint64_t value); |
4287 | |
4288 | inline bool hasName(); |
4289 | inline ::capnp::Text::Builder getName(); |
4290 | inline void setName( ::capnp::Text::Reader value); |
4291 | inline ::capnp::Text::Builder initName(unsigned int size); |
4292 | inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); |
4293 | inline ::capnp::Orphan< ::capnp::Text> disownName(); |
4294 | |
4295 | private: |
4296 | ::capnp::_::StructBuilder _builder; |
4297 | template <typename, ::capnp::Kind> |
4298 | friend struct ::capnp::ToDynamic_; |
4299 | friend class ::capnp::Orphanage; |
4300 | template <typename, ::capnp::Kind> |
4301 | friend struct ::capnp::_::PointerHelpers; |
4302 | }; |
4303 | |
4304 | #if !CAPNP_LITE |
4305 | class CodeGeneratorRequest::RequestedFile::Import::Pipeline { |
4306 | public: |
4307 | typedef Import Pipelines; |
4308 | |
4309 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
4310 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
4311 | : _typeless(kj::mv(typeless)) {} |
4312 | |
4313 | private: |
4314 | ::capnp::AnyPointer::Pipeline _typeless; |
4315 | friend class ::capnp::PipelineHook; |
4316 | template <typename, ::capnp::Kind> |
4317 | friend struct ::capnp::ToDynamic_; |
4318 | }; |
4319 | #endif // !CAPNP_LITE |
4320 | |
4321 | // ======================================================================================= |
4322 | |
4323 | inline ::capnp::schema::Node::Which Node::Reader::which() const { |
4324 | return _reader.getDataField<Which>( |
4325 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
4326 | } |
4327 | inline ::capnp::schema::Node::Which Node::Builder::which() { |
4328 | return _builder.getDataField<Which>( |
4329 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
4330 | } |
4331 | |
4332 | inline ::uint64_t Node::Reader::getId() const { |
4333 | return _reader.getDataField< ::uint64_t>( |
4334 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4335 | } |
4336 | |
4337 | inline ::uint64_t Node::Builder::getId() { |
4338 | return _builder.getDataField< ::uint64_t>( |
4339 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4340 | } |
4341 | inline void Node::Builder::setId( ::uint64_t value) { |
4342 | _builder.setDataField< ::uint64_t>( |
4343 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4344 | } |
4345 | |
4346 | inline bool Node::Reader::hasDisplayName() const { |
4347 | return !_reader.getPointerField( |
4348 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4349 | } |
4350 | inline bool Node::Builder::hasDisplayName() { |
4351 | return !_builder.getPointerField( |
4352 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4353 | } |
4354 | inline ::capnp::Text::Reader Node::Reader::getDisplayName() const { |
4355 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4356 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4357 | } |
4358 | inline ::capnp::Text::Builder Node::Builder::getDisplayName() { |
4359 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4360 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4361 | } |
4362 | inline void Node::Builder::setDisplayName( ::capnp::Text::Reader value) { |
4363 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4364 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4365 | } |
4366 | inline ::capnp::Text::Builder Node::Builder::initDisplayName(unsigned int size) { |
4367 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4368 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4369 | } |
4370 | inline void Node::Builder::adoptDisplayName( |
4371 | ::capnp::Orphan< ::capnp::Text>&& value) { |
4372 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4373 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4374 | } |
4375 | inline ::capnp::Orphan< ::capnp::Text> Node::Builder::disownDisplayName() { |
4376 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4377 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4378 | } |
4379 | |
4380 | inline ::uint32_t Node::Reader::getDisplayNamePrefixLength() const { |
4381 | return _reader.getDataField< ::uint32_t>( |
4382 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4383 | } |
4384 | |
4385 | inline ::uint32_t Node::Builder::getDisplayNamePrefixLength() { |
4386 | return _builder.getDataField< ::uint32_t>( |
4387 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4388 | } |
4389 | inline void Node::Builder::setDisplayNamePrefixLength( ::uint32_t value) { |
4390 | _builder.setDataField< ::uint32_t>( |
4391 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
4392 | } |
4393 | |
4394 | inline ::uint64_t Node::Reader::getScopeId() const { |
4395 | return _reader.getDataField< ::uint64_t>( |
4396 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4397 | } |
4398 | |
4399 | inline ::uint64_t Node::Builder::getScopeId() { |
4400 | return _builder.getDataField< ::uint64_t>( |
4401 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4402 | } |
4403 | inline void Node::Builder::setScopeId( ::uint64_t value) { |
4404 | _builder.setDataField< ::uint64_t>( |
4405 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
4406 | } |
4407 | |
4408 | inline bool Node::Reader::hasNestedNodes() const { |
4409 | return !_reader.getPointerField( |
4410 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
4411 | } |
4412 | inline bool Node::Builder::hasNestedNodes() { |
4413 | return !_builder.getPointerField( |
4414 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
4415 | } |
4416 | inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader Node::Reader::getNestedNodes() const { |
4417 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
4418 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4419 | } |
4420 | inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder Node::Builder::getNestedNodes() { |
4421 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
4422 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4423 | } |
4424 | inline void Node::Builder::setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader value) { |
4425 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
4426 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
4427 | } |
4428 | inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder Node::Builder::initNestedNodes(unsigned int size) { |
4429 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
4430 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
4431 | } |
4432 | inline void Node::Builder::adoptNestedNodes( |
4433 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>&& value) { |
4434 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
4435 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
4436 | } |
4437 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>> Node::Builder::disownNestedNodes() { |
4438 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
4439 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4440 | } |
4441 | |
4442 | inline bool Node::Reader::hasAnnotations() const { |
4443 | return !_reader.getPointerField( |
4444 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
4445 | } |
4446 | inline bool Node::Builder::hasAnnotations() { |
4447 | return !_builder.getPointerField( |
4448 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
4449 | } |
4450 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Node::Reader::getAnnotations() const { |
4451 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
4452 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
4453 | } |
4454 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Node::Builder::getAnnotations() { |
4455 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
4456 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
4457 | } |
4458 | inline void Node::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { |
4459 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
4460 | ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
4461 | } |
4462 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Node::Builder::initAnnotations(unsigned int size) { |
4463 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
4464 | ::capnp::bounded<2>() * ::capnp::POINTERS), size); |
4465 | } |
4466 | inline void Node::Builder::adoptAnnotations( |
4467 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { |
4468 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
4469 | ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
4470 | } |
4471 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Node::Builder::disownAnnotations() { |
4472 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
4473 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
4474 | } |
4475 | |
4476 | inline bool Node::Reader::isFile() const { |
4477 | return which() == Node::FILE; |
4478 | } |
4479 | inline bool Node::Builder::isFile() { |
4480 | return which() == Node::FILE; |
4481 | } |
4482 | inline ::capnp::Void Node::Reader::getFile() const { |
4483 | KJ_IREQUIRE((which() == Node::FILE), |
4484 | "Must check which() before get()ing a union member." ); |
4485 | return _reader.getDataField< ::capnp::Void>( |
4486 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4487 | } |
4488 | |
4489 | inline ::capnp::Void Node::Builder::getFile() { |
4490 | KJ_IREQUIRE((which() == Node::FILE), |
4491 | "Must check which() before get()ing a union member." ); |
4492 | return _builder.getDataField< ::capnp::Void>( |
4493 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4494 | } |
4495 | inline void Node::Builder::setFile( ::capnp::Void value) { |
4496 | _builder.setDataField<Node::Which>( |
4497 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::FILE); |
4498 | _builder.setDataField< ::capnp::Void>( |
4499 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4500 | } |
4501 | |
4502 | inline bool Node::Reader::isStruct() const { |
4503 | return which() == Node::STRUCT; |
4504 | } |
4505 | inline bool Node::Builder::isStruct() { |
4506 | return which() == Node::STRUCT; |
4507 | } |
4508 | inline typename Node::Struct::Reader Node::Reader::getStruct() const { |
4509 | KJ_IREQUIRE((which() == Node::STRUCT), |
4510 | "Must check which() before get()ing a union member." ); |
4511 | return typename Node::Struct::Reader(_reader); |
4512 | } |
4513 | inline typename Node::Struct::Builder Node::Builder::getStruct() { |
4514 | KJ_IREQUIRE((which() == Node::STRUCT), |
4515 | "Must check which() before get()ing a union member." ); |
4516 | return typename Node::Struct::Builder(_builder); |
4517 | } |
4518 | inline typename Node::Struct::Builder Node::Builder::initStruct() { |
4519 | _builder.setDataField<Node::Which>( |
4520 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::STRUCT); |
4521 | _builder.setDataField< ::uint16_t>(::capnp::bounded<7>() * ::capnp::ELEMENTS, 0); |
4522 | _builder.setDataField< ::uint16_t>(::capnp::bounded<12>() * ::capnp::ELEMENTS, 0); |
4523 | _builder.setDataField< ::uint16_t>(::capnp::bounded<13>() * ::capnp::ELEMENTS, 0); |
4524 | _builder.setDataField<bool>(::capnp::bounded<224>() * ::capnp::ELEMENTS, 0); |
4525 | _builder.setDataField< ::uint16_t>(::capnp::bounded<15>() * ::capnp::ELEMENTS, 0); |
4526 | _builder.setDataField< ::uint32_t>(::capnp::bounded<8>() * ::capnp::ELEMENTS, 0); |
4527 | _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4528 | return typename Node::Struct::Builder(_builder); |
4529 | } |
4530 | inline bool Node::Reader::isEnum() const { |
4531 | return which() == Node::ENUM; |
4532 | } |
4533 | inline bool Node::Builder::isEnum() { |
4534 | return which() == Node::ENUM; |
4535 | } |
4536 | inline typename Node::Enum::Reader Node::Reader::getEnum() const { |
4537 | KJ_IREQUIRE((which() == Node::ENUM), |
4538 | "Must check which() before get()ing a union member." ); |
4539 | return typename Node::Enum::Reader(_reader); |
4540 | } |
4541 | inline typename Node::Enum::Builder Node::Builder::getEnum() { |
4542 | KJ_IREQUIRE((which() == Node::ENUM), |
4543 | "Must check which() before get()ing a union member." ); |
4544 | return typename Node::Enum::Builder(_builder); |
4545 | } |
4546 | inline typename Node::Enum::Builder Node::Builder::initEnum() { |
4547 | _builder.setDataField<Node::Which>( |
4548 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::ENUM); |
4549 | _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4550 | return typename Node::Enum::Builder(_builder); |
4551 | } |
4552 | inline bool Node::Reader::isInterface() const { |
4553 | return which() == Node::INTERFACE; |
4554 | } |
4555 | inline bool Node::Builder::isInterface() { |
4556 | return which() == Node::INTERFACE; |
4557 | } |
4558 | inline typename Node::Interface::Reader Node::Reader::getInterface() const { |
4559 | KJ_IREQUIRE((which() == Node::INTERFACE), |
4560 | "Must check which() before get()ing a union member." ); |
4561 | return typename Node::Interface::Reader(_reader); |
4562 | } |
4563 | inline typename Node::Interface::Builder Node::Builder::getInterface() { |
4564 | KJ_IREQUIRE((which() == Node::INTERFACE), |
4565 | "Must check which() before get()ing a union member." ); |
4566 | return typename Node::Interface::Builder(_builder); |
4567 | } |
4568 | inline typename Node::Interface::Builder Node::Builder::initInterface() { |
4569 | _builder.setDataField<Node::Which>( |
4570 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::INTERFACE); |
4571 | _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4572 | _builder.getPointerField(::capnp::bounded<4>() * ::capnp::POINTERS).clear(); |
4573 | return typename Node::Interface::Builder(_builder); |
4574 | } |
4575 | inline bool Node::Reader::isConst() const { |
4576 | return which() == Node::CONST; |
4577 | } |
4578 | inline bool Node::Builder::isConst() { |
4579 | return which() == Node::CONST; |
4580 | } |
4581 | inline typename Node::Const::Reader Node::Reader::getConst() const { |
4582 | KJ_IREQUIRE((which() == Node::CONST), |
4583 | "Must check which() before get()ing a union member." ); |
4584 | return typename Node::Const::Reader(_reader); |
4585 | } |
4586 | inline typename Node::Const::Builder Node::Builder::getConst() { |
4587 | KJ_IREQUIRE((which() == Node::CONST), |
4588 | "Must check which() before get()ing a union member." ); |
4589 | return typename Node::Const::Builder(_builder); |
4590 | } |
4591 | inline typename Node::Const::Builder Node::Builder::initConst() { |
4592 | _builder.setDataField<Node::Which>( |
4593 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::CONST); |
4594 | _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4595 | _builder.getPointerField(::capnp::bounded<4>() * ::capnp::POINTERS).clear(); |
4596 | return typename Node::Const::Builder(_builder); |
4597 | } |
4598 | inline bool Node::Reader::isAnnotation() const { |
4599 | return which() == Node::ANNOTATION; |
4600 | } |
4601 | inline bool Node::Builder::isAnnotation() { |
4602 | return which() == Node::ANNOTATION; |
4603 | } |
4604 | inline typename Node::Annotation::Reader Node::Reader::getAnnotation() const { |
4605 | KJ_IREQUIRE((which() == Node::ANNOTATION), |
4606 | "Must check which() before get()ing a union member." ); |
4607 | return typename Node::Annotation::Reader(_reader); |
4608 | } |
4609 | inline typename Node::Annotation::Builder Node::Builder::getAnnotation() { |
4610 | KJ_IREQUIRE((which() == Node::ANNOTATION), |
4611 | "Must check which() before get()ing a union member." ); |
4612 | return typename Node::Annotation::Builder(_builder); |
4613 | } |
4614 | inline typename Node::Annotation::Builder Node::Builder::initAnnotation() { |
4615 | _builder.setDataField<Node::Which>( |
4616 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::ANNOTATION); |
4617 | _builder.setDataField<bool>(::capnp::bounded<112>() * ::capnp::ELEMENTS, 0); |
4618 | _builder.setDataField<bool>(::capnp::bounded<113>() * ::capnp::ELEMENTS, 0); |
4619 | _builder.setDataField<bool>(::capnp::bounded<114>() * ::capnp::ELEMENTS, 0); |
4620 | _builder.setDataField<bool>(::capnp::bounded<115>() * ::capnp::ELEMENTS, 0); |
4621 | _builder.setDataField<bool>(::capnp::bounded<116>() * ::capnp::ELEMENTS, 0); |
4622 | _builder.setDataField<bool>(::capnp::bounded<117>() * ::capnp::ELEMENTS, 0); |
4623 | _builder.setDataField<bool>(::capnp::bounded<118>() * ::capnp::ELEMENTS, 0); |
4624 | _builder.setDataField<bool>(::capnp::bounded<119>() * ::capnp::ELEMENTS, 0); |
4625 | _builder.setDataField<bool>(::capnp::bounded<120>() * ::capnp::ELEMENTS, 0); |
4626 | _builder.setDataField<bool>(::capnp::bounded<121>() * ::capnp::ELEMENTS, 0); |
4627 | _builder.setDataField<bool>(::capnp::bounded<122>() * ::capnp::ELEMENTS, 0); |
4628 | _builder.setDataField<bool>(::capnp::bounded<123>() * ::capnp::ELEMENTS, 0); |
4629 | _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4630 | return typename Node::Annotation::Builder(_builder); |
4631 | } |
4632 | inline bool Node::Reader::hasParameters() const { |
4633 | return !_reader.getPointerField( |
4634 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
4635 | } |
4636 | inline bool Node::Builder::hasParameters() { |
4637 | return !_builder.getPointerField( |
4638 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
4639 | } |
4640 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader Node::Reader::getParameters() const { |
4641 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
4642 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
4643 | } |
4644 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Node::Builder::getParameters() { |
4645 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
4646 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
4647 | } |
4648 | inline void Node::Builder::setParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value) { |
4649 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
4650 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
4651 | } |
4652 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Node::Builder::initParameters(unsigned int size) { |
4653 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
4654 | ::capnp::bounded<5>() * ::capnp::POINTERS), size); |
4655 | } |
4656 | inline void Node::Builder::adoptParameters( |
4657 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value) { |
4658 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
4659 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
4660 | } |
4661 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> Node::Builder::disownParameters() { |
4662 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
4663 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
4664 | } |
4665 | |
4666 | inline bool Node::Reader::getIsGeneric() const { |
4667 | return _reader.getDataField<bool>( |
4668 | ::capnp::bounded<288>() * ::capnp::ELEMENTS); |
4669 | } |
4670 | |
4671 | inline bool Node::Builder::getIsGeneric() { |
4672 | return _builder.getDataField<bool>( |
4673 | ::capnp::bounded<288>() * ::capnp::ELEMENTS); |
4674 | } |
4675 | inline void Node::Builder::setIsGeneric(bool value) { |
4676 | _builder.setDataField<bool>( |
4677 | ::capnp::bounded<288>() * ::capnp::ELEMENTS, value); |
4678 | } |
4679 | |
4680 | inline bool Node::Parameter::Reader::hasName() const { |
4681 | return !_reader.getPointerField( |
4682 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4683 | } |
4684 | inline bool Node::Parameter::Builder::hasName() { |
4685 | return !_builder.getPointerField( |
4686 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4687 | } |
4688 | inline ::capnp::Text::Reader Node::Parameter::Reader::getName() const { |
4689 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4690 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4691 | } |
4692 | inline ::capnp::Text::Builder Node::Parameter::Builder::getName() { |
4693 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4694 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4695 | } |
4696 | inline void Node::Parameter::Builder::setName( ::capnp::Text::Reader value) { |
4697 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4698 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4699 | } |
4700 | inline ::capnp::Text::Builder Node::Parameter::Builder::initName(unsigned int size) { |
4701 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4702 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4703 | } |
4704 | inline void Node::Parameter::Builder::adoptName( |
4705 | ::capnp::Orphan< ::capnp::Text>&& value) { |
4706 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4707 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4708 | } |
4709 | inline ::capnp::Orphan< ::capnp::Text> Node::Parameter::Builder::disownName() { |
4710 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4711 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4712 | } |
4713 | |
4714 | inline bool Node::NestedNode::Reader::hasName() const { |
4715 | return !_reader.getPointerField( |
4716 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4717 | } |
4718 | inline bool Node::NestedNode::Builder::hasName() { |
4719 | return !_builder.getPointerField( |
4720 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4721 | } |
4722 | inline ::capnp::Text::Reader Node::NestedNode::Reader::getName() const { |
4723 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4724 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4725 | } |
4726 | inline ::capnp::Text::Builder Node::NestedNode::Builder::getName() { |
4727 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4728 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4729 | } |
4730 | inline void Node::NestedNode::Builder::setName( ::capnp::Text::Reader value) { |
4731 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4732 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4733 | } |
4734 | inline ::capnp::Text::Builder Node::NestedNode::Builder::initName(unsigned int size) { |
4735 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4736 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4737 | } |
4738 | inline void Node::NestedNode::Builder::adoptName( |
4739 | ::capnp::Orphan< ::capnp::Text>&& value) { |
4740 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4741 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4742 | } |
4743 | inline ::capnp::Orphan< ::capnp::Text> Node::NestedNode::Builder::disownName() { |
4744 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4745 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4746 | } |
4747 | |
4748 | inline ::uint64_t Node::NestedNode::Reader::getId() const { |
4749 | return _reader.getDataField< ::uint64_t>( |
4750 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4751 | } |
4752 | |
4753 | inline ::uint64_t Node::NestedNode::Builder::getId() { |
4754 | return _builder.getDataField< ::uint64_t>( |
4755 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4756 | } |
4757 | inline void Node::NestedNode::Builder::setId( ::uint64_t value) { |
4758 | _builder.setDataField< ::uint64_t>( |
4759 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4760 | } |
4761 | |
4762 | inline ::uint64_t Node::SourceInfo::Reader::getId() const { |
4763 | return _reader.getDataField< ::uint64_t>( |
4764 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4765 | } |
4766 | |
4767 | inline ::uint64_t Node::SourceInfo::Builder::getId() { |
4768 | return _builder.getDataField< ::uint64_t>( |
4769 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4770 | } |
4771 | inline void Node::SourceInfo::Builder::setId( ::uint64_t value) { |
4772 | _builder.setDataField< ::uint64_t>( |
4773 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4774 | } |
4775 | |
4776 | inline bool Node::SourceInfo::Reader::() const { |
4777 | return !_reader.getPointerField( |
4778 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4779 | } |
4780 | inline bool Node::SourceInfo::Builder::() { |
4781 | return !_builder.getPointerField( |
4782 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4783 | } |
4784 | inline ::capnp::Text::Reader Node::SourceInfo::Reader::() const { |
4785 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4786 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4787 | } |
4788 | inline ::capnp::Text::Builder Node::SourceInfo::Builder::() { |
4789 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4790 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4791 | } |
4792 | inline void Node::SourceInfo::Builder::( ::capnp::Text::Reader value) { |
4793 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4794 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4795 | } |
4796 | inline ::capnp::Text::Builder Node::SourceInfo::Builder::(unsigned int size) { |
4797 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4798 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4799 | } |
4800 | inline void Node::SourceInfo::Builder::( |
4801 | ::capnp::Orphan< ::capnp::Text>&& value) { |
4802 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4803 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4804 | } |
4805 | inline ::capnp::Orphan< ::capnp::Text> Node::SourceInfo::Builder::() { |
4806 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4807 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4808 | } |
4809 | |
4810 | inline bool Node::SourceInfo::Reader::hasMembers() const { |
4811 | return !_reader.getPointerField( |
4812 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
4813 | } |
4814 | inline bool Node::SourceInfo::Builder::hasMembers() { |
4815 | return !_builder.getPointerField( |
4816 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
4817 | } |
4818 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader Node::SourceInfo::Reader::getMembers() const { |
4819 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
4820 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4821 | } |
4822 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder Node::SourceInfo::Builder::getMembers() { |
4823 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
4824 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4825 | } |
4826 | inline void Node::SourceInfo::Builder::setMembers( ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader value) { |
4827 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
4828 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
4829 | } |
4830 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder Node::SourceInfo::Builder::initMembers(unsigned int size) { |
4831 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
4832 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
4833 | } |
4834 | inline void Node::SourceInfo::Builder::adoptMembers( |
4835 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>&& value) { |
4836 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
4837 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
4838 | } |
4839 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>> Node::SourceInfo::Builder::disownMembers() { |
4840 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
4841 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4842 | } |
4843 | |
4844 | inline bool Node::SourceInfo::Member::Reader::() const { |
4845 | return !_reader.getPointerField( |
4846 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4847 | } |
4848 | inline bool Node::SourceInfo::Member::Builder::() { |
4849 | return !_builder.getPointerField( |
4850 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
4851 | } |
4852 | inline ::capnp::Text::Reader Node::SourceInfo::Member::Reader::() const { |
4853 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4854 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4855 | } |
4856 | inline ::capnp::Text::Builder Node::SourceInfo::Member::Builder::() { |
4857 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4858 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4859 | } |
4860 | inline void Node::SourceInfo::Member::Builder::( ::capnp::Text::Reader value) { |
4861 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4862 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4863 | } |
4864 | inline ::capnp::Text::Builder Node::SourceInfo::Member::Builder::(unsigned int size) { |
4865 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4866 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4867 | } |
4868 | inline void Node::SourceInfo::Member::Builder::( |
4869 | ::capnp::Orphan< ::capnp::Text>&& value) { |
4870 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4871 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4872 | } |
4873 | inline ::capnp::Orphan< ::capnp::Text> Node::SourceInfo::Member::Builder::() { |
4874 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4875 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4876 | } |
4877 | |
4878 | inline ::uint16_t Node::Struct::Reader::getDataWordCount() const { |
4879 | return _reader.getDataField< ::uint16_t>( |
4880 | ::capnp::bounded<7>() * ::capnp::ELEMENTS); |
4881 | } |
4882 | |
4883 | inline ::uint16_t Node::Struct::Builder::getDataWordCount() { |
4884 | return _builder.getDataField< ::uint16_t>( |
4885 | ::capnp::bounded<7>() * ::capnp::ELEMENTS); |
4886 | } |
4887 | inline void Node::Struct::Builder::setDataWordCount( ::uint16_t value) { |
4888 | _builder.setDataField< ::uint16_t>( |
4889 | ::capnp::bounded<7>() * ::capnp::ELEMENTS, value); |
4890 | } |
4891 | |
4892 | inline ::uint16_t Node::Struct::Reader::getPointerCount() const { |
4893 | return _reader.getDataField< ::uint16_t>( |
4894 | ::capnp::bounded<12>() * ::capnp::ELEMENTS); |
4895 | } |
4896 | |
4897 | inline ::uint16_t Node::Struct::Builder::getPointerCount() { |
4898 | return _builder.getDataField< ::uint16_t>( |
4899 | ::capnp::bounded<12>() * ::capnp::ELEMENTS); |
4900 | } |
4901 | inline void Node::Struct::Builder::setPointerCount( ::uint16_t value) { |
4902 | _builder.setDataField< ::uint16_t>( |
4903 | ::capnp::bounded<12>() * ::capnp::ELEMENTS, value); |
4904 | } |
4905 | |
4906 | inline ::capnp::schema::ElementSize Node::Struct::Reader::getPreferredListEncoding() const { |
4907 | return _reader.getDataField< ::capnp::schema::ElementSize>( |
4908 | ::capnp::bounded<13>() * ::capnp::ELEMENTS); |
4909 | } |
4910 | |
4911 | inline ::capnp::schema::ElementSize Node::Struct::Builder::getPreferredListEncoding() { |
4912 | return _builder.getDataField< ::capnp::schema::ElementSize>( |
4913 | ::capnp::bounded<13>() * ::capnp::ELEMENTS); |
4914 | } |
4915 | inline void Node::Struct::Builder::setPreferredListEncoding( ::capnp::schema::ElementSize value) { |
4916 | _builder.setDataField< ::capnp::schema::ElementSize>( |
4917 | ::capnp::bounded<13>() * ::capnp::ELEMENTS, value); |
4918 | } |
4919 | |
4920 | inline bool Node::Struct::Reader::getIsGroup() const { |
4921 | return _reader.getDataField<bool>( |
4922 | ::capnp::bounded<224>() * ::capnp::ELEMENTS); |
4923 | } |
4924 | |
4925 | inline bool Node::Struct::Builder::getIsGroup() { |
4926 | return _builder.getDataField<bool>( |
4927 | ::capnp::bounded<224>() * ::capnp::ELEMENTS); |
4928 | } |
4929 | inline void Node::Struct::Builder::setIsGroup(bool value) { |
4930 | _builder.setDataField<bool>( |
4931 | ::capnp::bounded<224>() * ::capnp::ELEMENTS, value); |
4932 | } |
4933 | |
4934 | inline ::uint16_t Node::Struct::Reader::getDiscriminantCount() const { |
4935 | return _reader.getDataField< ::uint16_t>( |
4936 | ::capnp::bounded<15>() * ::capnp::ELEMENTS); |
4937 | } |
4938 | |
4939 | inline ::uint16_t Node::Struct::Builder::getDiscriminantCount() { |
4940 | return _builder.getDataField< ::uint16_t>( |
4941 | ::capnp::bounded<15>() * ::capnp::ELEMENTS); |
4942 | } |
4943 | inline void Node::Struct::Builder::setDiscriminantCount( ::uint16_t value) { |
4944 | _builder.setDataField< ::uint16_t>( |
4945 | ::capnp::bounded<15>() * ::capnp::ELEMENTS, value); |
4946 | } |
4947 | |
4948 | inline ::uint32_t Node::Struct::Reader::getDiscriminantOffset() const { |
4949 | return _reader.getDataField< ::uint32_t>( |
4950 | ::capnp::bounded<8>() * ::capnp::ELEMENTS); |
4951 | } |
4952 | |
4953 | inline ::uint32_t Node::Struct::Builder::getDiscriminantOffset() { |
4954 | return _builder.getDataField< ::uint32_t>( |
4955 | ::capnp::bounded<8>() * ::capnp::ELEMENTS); |
4956 | } |
4957 | inline void Node::Struct::Builder::setDiscriminantOffset( ::uint32_t value) { |
4958 | _builder.setDataField< ::uint32_t>( |
4959 | ::capnp::bounded<8>() * ::capnp::ELEMENTS, value); |
4960 | } |
4961 | |
4962 | inline bool Node::Struct::Reader::hasFields() const { |
4963 | return !_reader.getPointerField( |
4964 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
4965 | } |
4966 | inline bool Node::Struct::Builder::hasFields() { |
4967 | return !_builder.getPointerField( |
4968 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
4969 | } |
4970 | inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader Node::Struct::Reader::getFields() const { |
4971 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
4972 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4973 | } |
4974 | inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder Node::Struct::Builder::getFields() { |
4975 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
4976 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4977 | } |
4978 | inline void Node::Struct::Builder::setFields( ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader value) { |
4979 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
4980 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
4981 | } |
4982 | inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder Node::Struct::Builder::initFields(unsigned int size) { |
4983 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
4984 | ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
4985 | } |
4986 | inline void Node::Struct::Builder::adoptFields( |
4987 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>&& value) { |
4988 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
4989 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
4990 | } |
4991 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>> Node::Struct::Builder::disownFields() { |
4992 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
4993 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4994 | } |
4995 | |
4996 | inline bool Node::Enum::Reader::hasEnumerants() const { |
4997 | return !_reader.getPointerField( |
4998 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
4999 | } |
5000 | inline bool Node::Enum::Builder::hasEnumerants() { |
5001 | return !_builder.getPointerField( |
5002 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5003 | } |
5004 | inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader Node::Enum::Reader::getEnumerants() const { |
5005 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
5006 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5007 | } |
5008 | inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder Node::Enum::Builder::getEnumerants() { |
5009 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
5010 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5011 | } |
5012 | inline void Node::Enum::Builder::setEnumerants( ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader value) { |
5013 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
5014 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
5015 | } |
5016 | inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder Node::Enum::Builder::initEnumerants(unsigned int size) { |
5017 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
5018 | ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
5019 | } |
5020 | inline void Node::Enum::Builder::adoptEnumerants( |
5021 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>&& value) { |
5022 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
5023 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
5024 | } |
5025 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>> Node::Enum::Builder::disownEnumerants() { |
5026 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
5027 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5028 | } |
5029 | |
5030 | inline bool Node::Interface::Reader::hasMethods() const { |
5031 | return !_reader.getPointerField( |
5032 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5033 | } |
5034 | inline bool Node::Interface::Builder::hasMethods() { |
5035 | return !_builder.getPointerField( |
5036 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5037 | } |
5038 | inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader Node::Interface::Reader::getMethods() const { |
5039 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
5040 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5041 | } |
5042 | inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::getMethods() { |
5043 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
5044 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5045 | } |
5046 | inline void Node::Interface::Builder::setMethods( ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader value) { |
5047 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
5048 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
5049 | } |
5050 | inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::initMethods(unsigned int size) { |
5051 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
5052 | ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
5053 | } |
5054 | inline void Node::Interface::Builder::adoptMethods( |
5055 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>&& value) { |
5056 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
5057 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
5058 | } |
5059 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>> Node::Interface::Builder::disownMethods() { |
5060 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
5061 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5062 | } |
5063 | |
5064 | inline bool Node::Interface::Reader::hasSuperclasses() const { |
5065 | return !_reader.getPointerField( |
5066 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
5067 | } |
5068 | inline bool Node::Interface::Builder::hasSuperclasses() { |
5069 | return !_builder.getPointerField( |
5070 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
5071 | } |
5072 | inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader Node::Interface::Reader::getSuperclasses() const { |
5073 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
5074 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5075 | } |
5076 | inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::getSuperclasses() { |
5077 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
5078 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5079 | } |
5080 | inline void Node::Interface::Builder::setSuperclasses( ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader value) { |
5081 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
5082 | ::capnp::bounded<4>() * ::capnp::POINTERS), value); |
5083 | } |
5084 | inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::initSuperclasses(unsigned int size) { |
5085 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
5086 | ::capnp::bounded<4>() * ::capnp::POINTERS), size); |
5087 | } |
5088 | inline void Node::Interface::Builder::adoptSuperclasses( |
5089 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>&& value) { |
5090 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
5091 | ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); |
5092 | } |
5093 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>> Node::Interface::Builder::disownSuperclasses() { |
5094 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
5095 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5096 | } |
5097 | |
5098 | inline bool Node::Const::Reader::hasType() const { |
5099 | return !_reader.getPointerField( |
5100 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5101 | } |
5102 | inline bool Node::Const::Builder::hasType() { |
5103 | return !_builder.getPointerField( |
5104 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5105 | } |
5106 | inline ::capnp::schema::Type::Reader Node::Const::Reader::getType() const { |
5107 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
5108 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5109 | } |
5110 | inline ::capnp::schema::Type::Builder Node::Const::Builder::getType() { |
5111 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
5112 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5113 | } |
5114 | #if !CAPNP_LITE |
5115 | inline ::capnp::schema::Type::Pipeline Node::Const::Pipeline::getType() { |
5116 | return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); |
5117 | } |
5118 | #endif // !CAPNP_LITE |
5119 | inline void Node::Const::Builder::setType( ::capnp::schema::Type::Reader value) { |
5120 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
5121 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
5122 | } |
5123 | inline ::capnp::schema::Type::Builder Node::Const::Builder::initType() { |
5124 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
5125 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5126 | } |
5127 | inline void Node::Const::Builder::adoptType( |
5128 | ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
5129 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
5130 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
5131 | } |
5132 | inline ::capnp::Orphan< ::capnp::schema::Type> Node::Const::Builder::disownType() { |
5133 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
5134 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5135 | } |
5136 | |
5137 | inline bool Node::Const::Reader::hasValue() const { |
5138 | return !_reader.getPointerField( |
5139 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
5140 | } |
5141 | inline bool Node::Const::Builder::hasValue() { |
5142 | return !_builder.getPointerField( |
5143 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
5144 | } |
5145 | inline ::capnp::schema::Value::Reader Node::Const::Reader::getValue() const { |
5146 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( |
5147 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5148 | } |
5149 | inline ::capnp::schema::Value::Builder Node::Const::Builder::getValue() { |
5150 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( |
5151 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5152 | } |
5153 | #if !CAPNP_LITE |
5154 | inline ::capnp::schema::Value::Pipeline Node::Const::Pipeline::getValue() { |
5155 | return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(4)); |
5156 | } |
5157 | #endif // !CAPNP_LITE |
5158 | inline void Node::Const::Builder::setValue( ::capnp::schema::Value::Reader value) { |
5159 | ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( |
5160 | ::capnp::bounded<4>() * ::capnp::POINTERS), value); |
5161 | } |
5162 | inline ::capnp::schema::Value::Builder Node::Const::Builder::initValue() { |
5163 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( |
5164 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5165 | } |
5166 | inline void Node::Const::Builder::adoptValue( |
5167 | ::capnp::Orphan< ::capnp::schema::Value>&& value) { |
5168 | ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( |
5169 | ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); |
5170 | } |
5171 | inline ::capnp::Orphan< ::capnp::schema::Value> Node::Const::Builder::disownValue() { |
5172 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( |
5173 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5174 | } |
5175 | |
5176 | inline bool Node::Annotation::Reader::hasType() const { |
5177 | return !_reader.getPointerField( |
5178 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5179 | } |
5180 | inline bool Node::Annotation::Builder::hasType() { |
5181 | return !_builder.getPointerField( |
5182 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5183 | } |
5184 | inline ::capnp::schema::Type::Reader Node::Annotation::Reader::getType() const { |
5185 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
5186 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5187 | } |
5188 | inline ::capnp::schema::Type::Builder Node::Annotation::Builder::getType() { |
5189 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
5190 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5191 | } |
5192 | #if !CAPNP_LITE |
5193 | inline ::capnp::schema::Type::Pipeline Node::Annotation::Pipeline::getType() { |
5194 | return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); |
5195 | } |
5196 | #endif // !CAPNP_LITE |
5197 | inline void Node::Annotation::Builder::setType( ::capnp::schema::Type::Reader value) { |
5198 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
5199 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
5200 | } |
5201 | inline ::capnp::schema::Type::Builder Node::Annotation::Builder::initType() { |
5202 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
5203 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5204 | } |
5205 | inline void Node::Annotation::Builder::adoptType( |
5206 | ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
5207 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
5208 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
5209 | } |
5210 | inline ::capnp::Orphan< ::capnp::schema::Type> Node::Annotation::Builder::disownType() { |
5211 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
5212 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5213 | } |
5214 | |
5215 | inline bool Node::Annotation::Reader::getTargetsFile() const { |
5216 | return _reader.getDataField<bool>( |
5217 | ::capnp::bounded<112>() * ::capnp::ELEMENTS); |
5218 | } |
5219 | |
5220 | inline bool Node::Annotation::Builder::getTargetsFile() { |
5221 | return _builder.getDataField<bool>( |
5222 | ::capnp::bounded<112>() * ::capnp::ELEMENTS); |
5223 | } |
5224 | inline void Node::Annotation::Builder::setTargetsFile(bool value) { |
5225 | _builder.setDataField<bool>( |
5226 | ::capnp::bounded<112>() * ::capnp::ELEMENTS, value); |
5227 | } |
5228 | |
5229 | inline bool Node::Annotation::Reader::getTargetsConst() const { |
5230 | return _reader.getDataField<bool>( |
5231 | ::capnp::bounded<113>() * ::capnp::ELEMENTS); |
5232 | } |
5233 | |
5234 | inline bool Node::Annotation::Builder::getTargetsConst() { |
5235 | return _builder.getDataField<bool>( |
5236 | ::capnp::bounded<113>() * ::capnp::ELEMENTS); |
5237 | } |
5238 | inline void Node::Annotation::Builder::setTargetsConst(bool value) { |
5239 | _builder.setDataField<bool>( |
5240 | ::capnp::bounded<113>() * ::capnp::ELEMENTS, value); |
5241 | } |
5242 | |
5243 | inline bool Node::Annotation::Reader::getTargetsEnum() const { |
5244 | return _reader.getDataField<bool>( |
5245 | ::capnp::bounded<114>() * ::capnp::ELEMENTS); |
5246 | } |
5247 | |
5248 | inline bool Node::Annotation::Builder::getTargetsEnum() { |
5249 | return _builder.getDataField<bool>( |
5250 | ::capnp::bounded<114>() * ::capnp::ELEMENTS); |
5251 | } |
5252 | inline void Node::Annotation::Builder::setTargetsEnum(bool value) { |
5253 | _builder.setDataField<bool>( |
5254 | ::capnp::bounded<114>() * ::capnp::ELEMENTS, value); |
5255 | } |
5256 | |
5257 | inline bool Node::Annotation::Reader::getTargetsEnumerant() const { |
5258 | return _reader.getDataField<bool>( |
5259 | ::capnp::bounded<115>() * ::capnp::ELEMENTS); |
5260 | } |
5261 | |
5262 | inline bool Node::Annotation::Builder::getTargetsEnumerant() { |
5263 | return _builder.getDataField<bool>( |
5264 | ::capnp::bounded<115>() * ::capnp::ELEMENTS); |
5265 | } |
5266 | inline void Node::Annotation::Builder::setTargetsEnumerant(bool value) { |
5267 | _builder.setDataField<bool>( |
5268 | ::capnp::bounded<115>() * ::capnp::ELEMENTS, value); |
5269 | } |
5270 | |
5271 | inline bool Node::Annotation::Reader::getTargetsStruct() const { |
5272 | return _reader.getDataField<bool>( |
5273 | ::capnp::bounded<116>() * ::capnp::ELEMENTS); |
5274 | } |
5275 | |
5276 | inline bool Node::Annotation::Builder::getTargetsStruct() { |
5277 | return _builder.getDataField<bool>( |
5278 | ::capnp::bounded<116>() * ::capnp::ELEMENTS); |
5279 | } |
5280 | inline void Node::Annotation::Builder::setTargetsStruct(bool value) { |
5281 | _builder.setDataField<bool>( |
5282 | ::capnp::bounded<116>() * ::capnp::ELEMENTS, value); |
5283 | } |
5284 | |
5285 | inline bool Node::Annotation::Reader::getTargetsField() const { |
5286 | return _reader.getDataField<bool>( |
5287 | ::capnp::bounded<117>() * ::capnp::ELEMENTS); |
5288 | } |
5289 | |
5290 | inline bool Node::Annotation::Builder::getTargetsField() { |
5291 | return _builder.getDataField<bool>( |
5292 | ::capnp::bounded<117>() * ::capnp::ELEMENTS); |
5293 | } |
5294 | inline void Node::Annotation::Builder::setTargetsField(bool value) { |
5295 | _builder.setDataField<bool>( |
5296 | ::capnp::bounded<117>() * ::capnp::ELEMENTS, value); |
5297 | } |
5298 | |
5299 | inline bool Node::Annotation::Reader::getTargetsUnion() const { |
5300 | return _reader.getDataField<bool>( |
5301 | ::capnp::bounded<118>() * ::capnp::ELEMENTS); |
5302 | } |
5303 | |
5304 | inline bool Node::Annotation::Builder::getTargetsUnion() { |
5305 | return _builder.getDataField<bool>( |
5306 | ::capnp::bounded<118>() * ::capnp::ELEMENTS); |
5307 | } |
5308 | inline void Node::Annotation::Builder::setTargetsUnion(bool value) { |
5309 | _builder.setDataField<bool>( |
5310 | ::capnp::bounded<118>() * ::capnp::ELEMENTS, value); |
5311 | } |
5312 | |
5313 | inline bool Node::Annotation::Reader::getTargetsGroup() const { |
5314 | return _reader.getDataField<bool>( |
5315 | ::capnp::bounded<119>() * ::capnp::ELEMENTS); |
5316 | } |
5317 | |
5318 | inline bool Node::Annotation::Builder::getTargetsGroup() { |
5319 | return _builder.getDataField<bool>( |
5320 | ::capnp::bounded<119>() * ::capnp::ELEMENTS); |
5321 | } |
5322 | inline void Node::Annotation::Builder::setTargetsGroup(bool value) { |
5323 | _builder.setDataField<bool>( |
5324 | ::capnp::bounded<119>() * ::capnp::ELEMENTS, value); |
5325 | } |
5326 | |
5327 | inline bool Node::Annotation::Reader::getTargetsInterface() const { |
5328 | return _reader.getDataField<bool>( |
5329 | ::capnp::bounded<120>() * ::capnp::ELEMENTS); |
5330 | } |
5331 | |
5332 | inline bool Node::Annotation::Builder::getTargetsInterface() { |
5333 | return _builder.getDataField<bool>( |
5334 | ::capnp::bounded<120>() * ::capnp::ELEMENTS); |
5335 | } |
5336 | inline void Node::Annotation::Builder::setTargetsInterface(bool value) { |
5337 | _builder.setDataField<bool>( |
5338 | ::capnp::bounded<120>() * ::capnp::ELEMENTS, value); |
5339 | } |
5340 | |
5341 | inline bool Node::Annotation::Reader::getTargetsMethod() const { |
5342 | return _reader.getDataField<bool>( |
5343 | ::capnp::bounded<121>() * ::capnp::ELEMENTS); |
5344 | } |
5345 | |
5346 | inline bool Node::Annotation::Builder::getTargetsMethod() { |
5347 | return _builder.getDataField<bool>( |
5348 | ::capnp::bounded<121>() * ::capnp::ELEMENTS); |
5349 | } |
5350 | inline void Node::Annotation::Builder::setTargetsMethod(bool value) { |
5351 | _builder.setDataField<bool>( |
5352 | ::capnp::bounded<121>() * ::capnp::ELEMENTS, value); |
5353 | } |
5354 | |
5355 | inline bool Node::Annotation::Reader::getTargetsParam() const { |
5356 | return _reader.getDataField<bool>( |
5357 | ::capnp::bounded<122>() * ::capnp::ELEMENTS); |
5358 | } |
5359 | |
5360 | inline bool Node::Annotation::Builder::getTargetsParam() { |
5361 | return _builder.getDataField<bool>( |
5362 | ::capnp::bounded<122>() * ::capnp::ELEMENTS); |
5363 | } |
5364 | inline void Node::Annotation::Builder::setTargetsParam(bool value) { |
5365 | _builder.setDataField<bool>( |
5366 | ::capnp::bounded<122>() * ::capnp::ELEMENTS, value); |
5367 | } |
5368 | |
5369 | inline bool Node::Annotation::Reader::getTargetsAnnotation() const { |
5370 | return _reader.getDataField<bool>( |
5371 | ::capnp::bounded<123>() * ::capnp::ELEMENTS); |
5372 | } |
5373 | |
5374 | inline bool Node::Annotation::Builder::getTargetsAnnotation() { |
5375 | return _builder.getDataField<bool>( |
5376 | ::capnp::bounded<123>() * ::capnp::ELEMENTS); |
5377 | } |
5378 | inline void Node::Annotation::Builder::setTargetsAnnotation(bool value) { |
5379 | _builder.setDataField<bool>( |
5380 | ::capnp::bounded<123>() * ::capnp::ELEMENTS, value); |
5381 | } |
5382 | |
5383 | inline ::capnp::schema::Field::Which Field::Reader::which() const { |
5384 | return _reader.getDataField<Which>( |
5385 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
5386 | } |
5387 | inline ::capnp::schema::Field::Which Field::Builder::which() { |
5388 | return _builder.getDataField<Which>( |
5389 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
5390 | } |
5391 | |
5392 | inline bool Field::Reader::hasName() const { |
5393 | return !_reader.getPointerField( |
5394 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5395 | } |
5396 | inline bool Field::Builder::hasName() { |
5397 | return !_builder.getPointerField( |
5398 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5399 | } |
5400 | inline ::capnp::Text::Reader Field::Reader::getName() const { |
5401 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
5402 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5403 | } |
5404 | inline ::capnp::Text::Builder Field::Builder::getName() { |
5405 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
5406 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5407 | } |
5408 | inline void Field::Builder::setName( ::capnp::Text::Reader value) { |
5409 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
5410 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
5411 | } |
5412 | inline ::capnp::Text::Builder Field::Builder::initName(unsigned int size) { |
5413 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
5414 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
5415 | } |
5416 | inline void Field::Builder::adoptName( |
5417 | ::capnp::Orphan< ::capnp::Text>&& value) { |
5418 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
5419 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
5420 | } |
5421 | inline ::capnp::Orphan< ::capnp::Text> Field::Builder::disownName() { |
5422 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
5423 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5424 | } |
5425 | |
5426 | inline ::uint16_t Field::Reader::getCodeOrder() const { |
5427 | return _reader.getDataField< ::uint16_t>( |
5428 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5429 | } |
5430 | |
5431 | inline ::uint16_t Field::Builder::getCodeOrder() { |
5432 | return _builder.getDataField< ::uint16_t>( |
5433 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5434 | } |
5435 | inline void Field::Builder::setCodeOrder( ::uint16_t value) { |
5436 | _builder.setDataField< ::uint16_t>( |
5437 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5438 | } |
5439 | |
5440 | inline bool Field::Reader::hasAnnotations() const { |
5441 | return !_reader.getPointerField( |
5442 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
5443 | } |
5444 | inline bool Field::Builder::hasAnnotations() { |
5445 | return !_builder.getPointerField( |
5446 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
5447 | } |
5448 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Field::Reader::getAnnotations() const { |
5449 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
5450 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5451 | } |
5452 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Field::Builder::getAnnotations() { |
5453 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
5454 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5455 | } |
5456 | inline void Field::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { |
5457 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
5458 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
5459 | } |
5460 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Field::Builder::initAnnotations(unsigned int size) { |
5461 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
5462 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
5463 | } |
5464 | inline void Field::Builder::adoptAnnotations( |
5465 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { |
5466 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
5467 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
5468 | } |
5469 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Field::Builder::disownAnnotations() { |
5470 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
5471 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5472 | } |
5473 | |
5474 | inline ::uint16_t Field::Reader::getDiscriminantValue() const { |
5475 | return _reader.getDataField< ::uint16_t>( |
5476 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, 65535u); |
5477 | } |
5478 | |
5479 | inline ::uint16_t Field::Builder::getDiscriminantValue() { |
5480 | return _builder.getDataField< ::uint16_t>( |
5481 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, 65535u); |
5482 | } |
5483 | inline void Field::Builder::setDiscriminantValue( ::uint16_t value) { |
5484 | _builder.setDataField< ::uint16_t>( |
5485 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value, 65535u); |
5486 | } |
5487 | |
5488 | inline bool Field::Reader::isSlot() const { |
5489 | return which() == Field::SLOT; |
5490 | } |
5491 | inline bool Field::Builder::isSlot() { |
5492 | return which() == Field::SLOT; |
5493 | } |
5494 | inline typename Field::Slot::Reader Field::Reader::getSlot() const { |
5495 | KJ_IREQUIRE((which() == Field::SLOT), |
5496 | "Must check which() before get()ing a union member." ); |
5497 | return typename Field::Slot::Reader(_reader); |
5498 | } |
5499 | inline typename Field::Slot::Builder Field::Builder::getSlot() { |
5500 | KJ_IREQUIRE((which() == Field::SLOT), |
5501 | "Must check which() before get()ing a union member." ); |
5502 | return typename Field::Slot::Builder(_builder); |
5503 | } |
5504 | inline typename Field::Slot::Builder Field::Builder::initSlot() { |
5505 | _builder.setDataField<Field::Which>( |
5506 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Field::SLOT); |
5507 | _builder.setDataField< ::uint32_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
5508 | _builder.setDataField<bool>(::capnp::bounded<128>() * ::capnp::ELEMENTS, 0); |
5509 | _builder.getPointerField(::capnp::bounded<2>() * ::capnp::POINTERS).clear(); |
5510 | _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
5511 | return typename Field::Slot::Builder(_builder); |
5512 | } |
5513 | inline bool Field::Reader::isGroup() const { |
5514 | return which() == Field::GROUP; |
5515 | } |
5516 | inline bool Field::Builder::isGroup() { |
5517 | return which() == Field::GROUP; |
5518 | } |
5519 | inline typename Field::Group::Reader Field::Reader::getGroup() const { |
5520 | KJ_IREQUIRE((which() == Field::GROUP), |
5521 | "Must check which() before get()ing a union member." ); |
5522 | return typename Field::Group::Reader(_reader); |
5523 | } |
5524 | inline typename Field::Group::Builder Field::Builder::getGroup() { |
5525 | KJ_IREQUIRE((which() == Field::GROUP), |
5526 | "Must check which() before get()ing a union member." ); |
5527 | return typename Field::Group::Builder(_builder); |
5528 | } |
5529 | inline typename Field::Group::Builder Field::Builder::initGroup() { |
5530 | _builder.setDataField<Field::Which>( |
5531 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Field::GROUP); |
5532 | _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); |
5533 | return typename Field::Group::Builder(_builder); |
5534 | } |
5535 | inline typename Field::Ordinal::Reader Field::Reader::getOrdinal() const { |
5536 | return typename Field::Ordinal::Reader(_reader); |
5537 | } |
5538 | inline typename Field::Ordinal::Builder Field::Builder::getOrdinal() { |
5539 | return typename Field::Ordinal::Builder(_builder); |
5540 | } |
5541 | #if !CAPNP_LITE |
5542 | inline typename Field::Ordinal::Pipeline Field::Pipeline::getOrdinal() { |
5543 | return typename Field::Ordinal::Pipeline(_typeless.noop()); |
5544 | } |
5545 | #endif // !CAPNP_LITE |
5546 | inline typename Field::Ordinal::Builder Field::Builder::initOrdinal() { |
5547 | _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
5548 | _builder.setDataField< ::uint16_t>(::capnp::bounded<6>() * ::capnp::ELEMENTS, 0); |
5549 | return typename Field::Ordinal::Builder(_builder); |
5550 | } |
5551 | inline ::uint32_t Field::Slot::Reader::getOffset() const { |
5552 | return _reader.getDataField< ::uint32_t>( |
5553 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5554 | } |
5555 | |
5556 | inline ::uint32_t Field::Slot::Builder::getOffset() { |
5557 | return _builder.getDataField< ::uint32_t>( |
5558 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5559 | } |
5560 | inline void Field::Slot::Builder::setOffset( ::uint32_t value) { |
5561 | _builder.setDataField< ::uint32_t>( |
5562 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
5563 | } |
5564 | |
5565 | inline bool Field::Slot::Reader::hasType() const { |
5566 | return !_reader.getPointerField( |
5567 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
5568 | } |
5569 | inline bool Field::Slot::Builder::hasType() { |
5570 | return !_builder.getPointerField( |
5571 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
5572 | } |
5573 | inline ::capnp::schema::Type::Reader Field::Slot::Reader::getType() const { |
5574 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
5575 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5576 | } |
5577 | inline ::capnp::schema::Type::Builder Field::Slot::Builder::getType() { |
5578 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
5579 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5580 | } |
5581 | #if !CAPNP_LITE |
5582 | inline ::capnp::schema::Type::Pipeline Field::Slot::Pipeline::getType() { |
5583 | return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(2)); |
5584 | } |
5585 | #endif // !CAPNP_LITE |
5586 | inline void Field::Slot::Builder::setType( ::capnp::schema::Type::Reader value) { |
5587 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
5588 | ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
5589 | } |
5590 | inline ::capnp::schema::Type::Builder Field::Slot::Builder::initType() { |
5591 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
5592 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5593 | } |
5594 | inline void Field::Slot::Builder::adoptType( |
5595 | ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
5596 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
5597 | ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
5598 | } |
5599 | inline ::capnp::Orphan< ::capnp::schema::Type> Field::Slot::Builder::disownType() { |
5600 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
5601 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5602 | } |
5603 | |
5604 | inline bool Field::Slot::Reader::hasDefaultValue() const { |
5605 | return !_reader.getPointerField( |
5606 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5607 | } |
5608 | inline bool Field::Slot::Builder::hasDefaultValue() { |
5609 | return !_builder.getPointerField( |
5610 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
5611 | } |
5612 | inline ::capnp::schema::Value::Reader Field::Slot::Reader::getDefaultValue() const { |
5613 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( |
5614 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5615 | } |
5616 | inline ::capnp::schema::Value::Builder Field::Slot::Builder::getDefaultValue() { |
5617 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( |
5618 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5619 | } |
5620 | #if !CAPNP_LITE |
5621 | inline ::capnp::schema::Value::Pipeline Field::Slot::Pipeline::getDefaultValue() { |
5622 | return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(3)); |
5623 | } |
5624 | #endif // !CAPNP_LITE |
5625 | inline void Field::Slot::Builder::setDefaultValue( ::capnp::schema::Value::Reader value) { |
5626 | ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( |
5627 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
5628 | } |
5629 | inline ::capnp::schema::Value::Builder Field::Slot::Builder::initDefaultValue() { |
5630 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( |
5631 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5632 | } |
5633 | inline void Field::Slot::Builder::adoptDefaultValue( |
5634 | ::capnp::Orphan< ::capnp::schema::Value>&& value) { |
5635 | ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( |
5636 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
5637 | } |
5638 | inline ::capnp::Orphan< ::capnp::schema::Value> Field::Slot::Builder::disownDefaultValue() { |
5639 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( |
5640 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5641 | } |
5642 | |
5643 | inline bool Field::Slot::Reader::getHadExplicitDefault() const { |
5644 | return _reader.getDataField<bool>( |
5645 | ::capnp::bounded<128>() * ::capnp::ELEMENTS); |
5646 | } |
5647 | |
5648 | inline bool Field::Slot::Builder::getHadExplicitDefault() { |
5649 | return _builder.getDataField<bool>( |
5650 | ::capnp::bounded<128>() * ::capnp::ELEMENTS); |
5651 | } |
5652 | inline void Field::Slot::Builder::setHadExplicitDefault(bool value) { |
5653 | _builder.setDataField<bool>( |
5654 | ::capnp::bounded<128>() * ::capnp::ELEMENTS, value); |
5655 | } |
5656 | |
5657 | inline ::uint64_t Field::Group::Reader::getTypeId() const { |
5658 | return _reader.getDataField< ::uint64_t>( |
5659 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5660 | } |
5661 | |
5662 | inline ::uint64_t Field::Group::Builder::getTypeId() { |
5663 | return _builder.getDataField< ::uint64_t>( |
5664 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5665 | } |
5666 | inline void Field::Group::Builder::setTypeId( ::uint64_t value) { |
5667 | _builder.setDataField< ::uint64_t>( |
5668 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
5669 | } |
5670 | |
5671 | inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Reader::which() const { |
5672 | return _reader.getDataField<Which>( |
5673 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
5674 | } |
5675 | inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Builder::which() { |
5676 | return _builder.getDataField<Which>( |
5677 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
5678 | } |
5679 | |
5680 | inline bool Field::Ordinal::Reader::isImplicit() const { |
5681 | return which() == Field::Ordinal::IMPLICIT; |
5682 | } |
5683 | inline bool Field::Ordinal::Builder::isImplicit() { |
5684 | return which() == Field::Ordinal::IMPLICIT; |
5685 | } |
5686 | inline ::capnp::Void Field::Ordinal::Reader::getImplicit() const { |
5687 | KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), |
5688 | "Must check which() before get()ing a union member." ); |
5689 | return _reader.getDataField< ::capnp::Void>( |
5690 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5691 | } |
5692 | |
5693 | inline ::capnp::Void Field::Ordinal::Builder::getImplicit() { |
5694 | KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), |
5695 | "Must check which() before get()ing a union member." ); |
5696 | return _builder.getDataField< ::capnp::Void>( |
5697 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5698 | } |
5699 | inline void Field::Ordinal::Builder::setImplicit( ::capnp::Void value) { |
5700 | _builder.setDataField<Field::Ordinal::Which>( |
5701 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, Field::Ordinal::IMPLICIT); |
5702 | _builder.setDataField< ::capnp::Void>( |
5703 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5704 | } |
5705 | |
5706 | inline bool Field::Ordinal::Reader::isExplicit() const { |
5707 | return which() == Field::Ordinal::EXPLICIT; |
5708 | } |
5709 | inline bool Field::Ordinal::Builder::isExplicit() { |
5710 | return which() == Field::Ordinal::EXPLICIT; |
5711 | } |
5712 | inline ::uint16_t Field::Ordinal::Reader::getExplicit() const { |
5713 | KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), |
5714 | "Must check which() before get()ing a union member." ); |
5715 | return _reader.getDataField< ::uint16_t>( |
5716 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
5717 | } |
5718 | |
5719 | inline ::uint16_t Field::Ordinal::Builder::getExplicit() { |
5720 | KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), |
5721 | "Must check which() before get()ing a union member." ); |
5722 | return _builder.getDataField< ::uint16_t>( |
5723 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
5724 | } |
5725 | inline void Field::Ordinal::Builder::setExplicit( ::uint16_t value) { |
5726 | _builder.setDataField<Field::Ordinal::Which>( |
5727 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, Field::Ordinal::EXPLICIT); |
5728 | _builder.setDataField< ::uint16_t>( |
5729 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, value); |
5730 | } |
5731 | |
5732 | inline bool Enumerant::Reader::hasName() const { |
5733 | return !_reader.getPointerField( |
5734 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5735 | } |
5736 | inline bool Enumerant::Builder::hasName() { |
5737 | return !_builder.getPointerField( |
5738 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5739 | } |
5740 | inline ::capnp::Text::Reader Enumerant::Reader::getName() const { |
5741 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
5742 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5743 | } |
5744 | inline ::capnp::Text::Builder Enumerant::Builder::getName() { |
5745 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
5746 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5747 | } |
5748 | inline void Enumerant::Builder::setName( ::capnp::Text::Reader value) { |
5749 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
5750 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
5751 | } |
5752 | inline ::capnp::Text::Builder Enumerant::Builder::initName(unsigned int size) { |
5753 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
5754 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
5755 | } |
5756 | inline void Enumerant::Builder::adoptName( |
5757 | ::capnp::Orphan< ::capnp::Text>&& value) { |
5758 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
5759 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
5760 | } |
5761 | inline ::capnp::Orphan< ::capnp::Text> Enumerant::Builder::disownName() { |
5762 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
5763 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5764 | } |
5765 | |
5766 | inline ::uint16_t Enumerant::Reader::getCodeOrder() const { |
5767 | return _reader.getDataField< ::uint16_t>( |
5768 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5769 | } |
5770 | |
5771 | inline ::uint16_t Enumerant::Builder::getCodeOrder() { |
5772 | return _builder.getDataField< ::uint16_t>( |
5773 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5774 | } |
5775 | inline void Enumerant::Builder::setCodeOrder( ::uint16_t value) { |
5776 | _builder.setDataField< ::uint16_t>( |
5777 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5778 | } |
5779 | |
5780 | inline bool Enumerant::Reader::hasAnnotations() const { |
5781 | return !_reader.getPointerField( |
5782 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
5783 | } |
5784 | inline bool Enumerant::Builder::hasAnnotations() { |
5785 | return !_builder.getPointerField( |
5786 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
5787 | } |
5788 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Enumerant::Reader::getAnnotations() const { |
5789 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
5790 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5791 | } |
5792 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Enumerant::Builder::getAnnotations() { |
5793 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
5794 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5795 | } |
5796 | inline void Enumerant::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { |
5797 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
5798 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
5799 | } |
5800 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Enumerant::Builder::initAnnotations(unsigned int size) { |
5801 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
5802 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
5803 | } |
5804 | inline void Enumerant::Builder::adoptAnnotations( |
5805 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { |
5806 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
5807 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
5808 | } |
5809 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Enumerant::Builder::disownAnnotations() { |
5810 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
5811 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5812 | } |
5813 | |
5814 | inline ::uint64_t Superclass::Reader::getId() const { |
5815 | return _reader.getDataField< ::uint64_t>( |
5816 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5817 | } |
5818 | |
5819 | inline ::uint64_t Superclass::Builder::getId() { |
5820 | return _builder.getDataField< ::uint64_t>( |
5821 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5822 | } |
5823 | inline void Superclass::Builder::setId( ::uint64_t value) { |
5824 | _builder.setDataField< ::uint64_t>( |
5825 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5826 | } |
5827 | |
5828 | inline bool Superclass::Reader::hasBrand() const { |
5829 | return !_reader.getPointerField( |
5830 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5831 | } |
5832 | inline bool Superclass::Builder::hasBrand() { |
5833 | return !_builder.getPointerField( |
5834 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5835 | } |
5836 | inline ::capnp::schema::Brand::Reader Superclass::Reader::getBrand() const { |
5837 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
5838 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5839 | } |
5840 | inline ::capnp::schema::Brand::Builder Superclass::Builder::getBrand() { |
5841 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
5842 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5843 | } |
5844 | #if !CAPNP_LITE |
5845 | inline ::capnp::schema::Brand::Pipeline Superclass::Pipeline::getBrand() { |
5846 | return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
5847 | } |
5848 | #endif // !CAPNP_LITE |
5849 | inline void Superclass::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
5850 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
5851 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
5852 | } |
5853 | inline ::capnp::schema::Brand::Builder Superclass::Builder::initBrand() { |
5854 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
5855 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5856 | } |
5857 | inline void Superclass::Builder::adoptBrand( |
5858 | ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
5859 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
5860 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
5861 | } |
5862 | inline ::capnp::Orphan< ::capnp::schema::Brand> Superclass::Builder::disownBrand() { |
5863 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
5864 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5865 | } |
5866 | |
5867 | inline bool Method::Reader::hasName() const { |
5868 | return !_reader.getPointerField( |
5869 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5870 | } |
5871 | inline bool Method::Builder::hasName() { |
5872 | return !_builder.getPointerField( |
5873 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
5874 | } |
5875 | inline ::capnp::Text::Reader Method::Reader::getName() const { |
5876 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
5877 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5878 | } |
5879 | inline ::capnp::Text::Builder Method::Builder::getName() { |
5880 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
5881 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5882 | } |
5883 | inline void Method::Builder::setName( ::capnp::Text::Reader value) { |
5884 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
5885 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
5886 | } |
5887 | inline ::capnp::Text::Builder Method::Builder::initName(unsigned int size) { |
5888 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
5889 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
5890 | } |
5891 | inline void Method::Builder::adoptName( |
5892 | ::capnp::Orphan< ::capnp::Text>&& value) { |
5893 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
5894 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
5895 | } |
5896 | inline ::capnp::Orphan< ::capnp::Text> Method::Builder::disownName() { |
5897 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
5898 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5899 | } |
5900 | |
5901 | inline ::uint16_t Method::Reader::getCodeOrder() const { |
5902 | return _reader.getDataField< ::uint16_t>( |
5903 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5904 | } |
5905 | |
5906 | inline ::uint16_t Method::Builder::getCodeOrder() { |
5907 | return _builder.getDataField< ::uint16_t>( |
5908 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5909 | } |
5910 | inline void Method::Builder::setCodeOrder( ::uint16_t value) { |
5911 | _builder.setDataField< ::uint16_t>( |
5912 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5913 | } |
5914 | |
5915 | inline ::uint64_t Method::Reader::getParamStructType() const { |
5916 | return _reader.getDataField< ::uint64_t>( |
5917 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5918 | } |
5919 | |
5920 | inline ::uint64_t Method::Builder::getParamStructType() { |
5921 | return _builder.getDataField< ::uint64_t>( |
5922 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5923 | } |
5924 | inline void Method::Builder::setParamStructType( ::uint64_t value) { |
5925 | _builder.setDataField< ::uint64_t>( |
5926 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
5927 | } |
5928 | |
5929 | inline ::uint64_t Method::Reader::getResultStructType() const { |
5930 | return _reader.getDataField< ::uint64_t>( |
5931 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5932 | } |
5933 | |
5934 | inline ::uint64_t Method::Builder::getResultStructType() { |
5935 | return _builder.getDataField< ::uint64_t>( |
5936 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5937 | } |
5938 | inline void Method::Builder::setResultStructType( ::uint64_t value) { |
5939 | _builder.setDataField< ::uint64_t>( |
5940 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
5941 | } |
5942 | |
5943 | inline bool Method::Reader::hasAnnotations() const { |
5944 | return !_reader.getPointerField( |
5945 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
5946 | } |
5947 | inline bool Method::Builder::hasAnnotations() { |
5948 | return !_builder.getPointerField( |
5949 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
5950 | } |
5951 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Method::Reader::getAnnotations() const { |
5952 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
5953 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5954 | } |
5955 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Method::Builder::getAnnotations() { |
5956 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
5957 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5958 | } |
5959 | inline void Method::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { |
5960 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
5961 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
5962 | } |
5963 | inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Method::Builder::initAnnotations(unsigned int size) { |
5964 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
5965 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
5966 | } |
5967 | inline void Method::Builder::adoptAnnotations( |
5968 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { |
5969 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
5970 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
5971 | } |
5972 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Method::Builder::disownAnnotations() { |
5973 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
5974 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5975 | } |
5976 | |
5977 | inline bool Method::Reader::hasParamBrand() const { |
5978 | return !_reader.getPointerField( |
5979 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
5980 | } |
5981 | inline bool Method::Builder::hasParamBrand() { |
5982 | return !_builder.getPointerField( |
5983 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
5984 | } |
5985 | inline ::capnp::schema::Brand::Reader Method::Reader::getParamBrand() const { |
5986 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
5987 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5988 | } |
5989 | inline ::capnp::schema::Brand::Builder Method::Builder::getParamBrand() { |
5990 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
5991 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5992 | } |
5993 | #if !CAPNP_LITE |
5994 | inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getParamBrand() { |
5995 | return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(2)); |
5996 | } |
5997 | #endif // !CAPNP_LITE |
5998 | inline void Method::Builder::setParamBrand( ::capnp::schema::Brand::Reader value) { |
5999 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6000 | ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
6001 | } |
6002 | inline ::capnp::schema::Brand::Builder Method::Builder::initParamBrand() { |
6003 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6004 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
6005 | } |
6006 | inline void Method::Builder::adoptParamBrand( |
6007 | ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6008 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6009 | ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
6010 | } |
6011 | inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownParamBrand() { |
6012 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6013 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
6014 | } |
6015 | |
6016 | inline bool Method::Reader::hasResultBrand() const { |
6017 | return !_reader.getPointerField( |
6018 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
6019 | } |
6020 | inline bool Method::Builder::hasResultBrand() { |
6021 | return !_builder.getPointerField( |
6022 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
6023 | } |
6024 | inline ::capnp::schema::Brand::Reader Method::Reader::getResultBrand() const { |
6025 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
6026 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
6027 | } |
6028 | inline ::capnp::schema::Brand::Builder Method::Builder::getResultBrand() { |
6029 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
6030 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
6031 | } |
6032 | #if !CAPNP_LITE |
6033 | inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getResultBrand() { |
6034 | return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(3)); |
6035 | } |
6036 | #endif // !CAPNP_LITE |
6037 | inline void Method::Builder::setResultBrand( ::capnp::schema::Brand::Reader value) { |
6038 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6039 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
6040 | } |
6041 | inline ::capnp::schema::Brand::Builder Method::Builder::initResultBrand() { |
6042 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6043 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
6044 | } |
6045 | inline void Method::Builder::adoptResultBrand( |
6046 | ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6047 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6048 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
6049 | } |
6050 | inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownResultBrand() { |
6051 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6052 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
6053 | } |
6054 | |
6055 | inline bool Method::Reader::hasImplicitParameters() const { |
6056 | return !_reader.getPointerField( |
6057 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
6058 | } |
6059 | inline bool Method::Builder::hasImplicitParameters() { |
6060 | return !_builder.getPointerField( |
6061 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
6062 | } |
6063 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader Method::Reader::getImplicitParameters() const { |
6064 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
6065 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
6066 | } |
6067 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Method::Builder::getImplicitParameters() { |
6068 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
6069 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
6070 | } |
6071 | inline void Method::Builder::setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value) { |
6072 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
6073 | ::capnp::bounded<4>() * ::capnp::POINTERS), value); |
6074 | } |
6075 | inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Method::Builder::initImplicitParameters(unsigned int size) { |
6076 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
6077 | ::capnp::bounded<4>() * ::capnp::POINTERS), size); |
6078 | } |
6079 | inline void Method::Builder::adoptImplicitParameters( |
6080 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value) { |
6081 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
6082 | ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); |
6083 | } |
6084 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> Method::Builder::disownImplicitParameters() { |
6085 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
6086 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
6087 | } |
6088 | |
6089 | inline ::capnp::schema::Type::Which Type::Reader::which() const { |
6090 | return _reader.getDataField<Which>( |
6091 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6092 | } |
6093 | inline ::capnp::schema::Type::Which Type::Builder::which() { |
6094 | return _builder.getDataField<Which>( |
6095 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6096 | } |
6097 | |
6098 | inline bool Type::Reader::isVoid() const { |
6099 | return which() == Type::VOID; |
6100 | } |
6101 | inline bool Type::Builder::isVoid() { |
6102 | return which() == Type::VOID; |
6103 | } |
6104 | inline ::capnp::Void Type::Reader::getVoid() const { |
6105 | KJ_IREQUIRE((which() == Type::VOID), |
6106 | "Must check which() before get()ing a union member." ); |
6107 | return _reader.getDataField< ::capnp::Void>( |
6108 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6109 | } |
6110 | |
6111 | inline ::capnp::Void Type::Builder::getVoid() { |
6112 | KJ_IREQUIRE((which() == Type::VOID), |
6113 | "Must check which() before get()ing a union member." ); |
6114 | return _builder.getDataField< ::capnp::Void>( |
6115 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6116 | } |
6117 | inline void Type::Builder::setVoid( ::capnp::Void value) { |
6118 | _builder.setDataField<Type::Which>( |
6119 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::VOID); |
6120 | _builder.setDataField< ::capnp::Void>( |
6121 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6122 | } |
6123 | |
6124 | inline bool Type::Reader::isBool() const { |
6125 | return which() == Type::BOOL; |
6126 | } |
6127 | inline bool Type::Builder::isBool() { |
6128 | return which() == Type::BOOL; |
6129 | } |
6130 | inline ::capnp::Void Type::Reader::getBool() const { |
6131 | KJ_IREQUIRE((which() == Type::BOOL), |
6132 | "Must check which() before get()ing a union member." ); |
6133 | return _reader.getDataField< ::capnp::Void>( |
6134 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6135 | } |
6136 | |
6137 | inline ::capnp::Void Type::Builder::getBool() { |
6138 | KJ_IREQUIRE((which() == Type::BOOL), |
6139 | "Must check which() before get()ing a union member." ); |
6140 | return _builder.getDataField< ::capnp::Void>( |
6141 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6142 | } |
6143 | inline void Type::Builder::setBool( ::capnp::Void value) { |
6144 | _builder.setDataField<Type::Which>( |
6145 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::BOOL); |
6146 | _builder.setDataField< ::capnp::Void>( |
6147 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6148 | } |
6149 | |
6150 | inline bool Type::Reader::isInt8() const { |
6151 | return which() == Type::INT8; |
6152 | } |
6153 | inline bool Type::Builder::isInt8() { |
6154 | return which() == Type::INT8; |
6155 | } |
6156 | inline ::capnp::Void Type::Reader::getInt8() const { |
6157 | KJ_IREQUIRE((which() == Type::INT8), |
6158 | "Must check which() before get()ing a union member." ); |
6159 | return _reader.getDataField< ::capnp::Void>( |
6160 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6161 | } |
6162 | |
6163 | inline ::capnp::Void Type::Builder::getInt8() { |
6164 | KJ_IREQUIRE((which() == Type::INT8), |
6165 | "Must check which() before get()ing a union member." ); |
6166 | return _builder.getDataField< ::capnp::Void>( |
6167 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6168 | } |
6169 | inline void Type::Builder::setInt8( ::capnp::Void value) { |
6170 | _builder.setDataField<Type::Which>( |
6171 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT8); |
6172 | _builder.setDataField< ::capnp::Void>( |
6173 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6174 | } |
6175 | |
6176 | inline bool Type::Reader::isInt16() const { |
6177 | return which() == Type::INT16; |
6178 | } |
6179 | inline bool Type::Builder::isInt16() { |
6180 | return which() == Type::INT16; |
6181 | } |
6182 | inline ::capnp::Void Type::Reader::getInt16() const { |
6183 | KJ_IREQUIRE((which() == Type::INT16), |
6184 | "Must check which() before get()ing a union member." ); |
6185 | return _reader.getDataField< ::capnp::Void>( |
6186 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6187 | } |
6188 | |
6189 | inline ::capnp::Void Type::Builder::getInt16() { |
6190 | KJ_IREQUIRE((which() == Type::INT16), |
6191 | "Must check which() before get()ing a union member." ); |
6192 | return _builder.getDataField< ::capnp::Void>( |
6193 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6194 | } |
6195 | inline void Type::Builder::setInt16( ::capnp::Void value) { |
6196 | _builder.setDataField<Type::Which>( |
6197 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT16); |
6198 | _builder.setDataField< ::capnp::Void>( |
6199 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6200 | } |
6201 | |
6202 | inline bool Type::Reader::isInt32() const { |
6203 | return which() == Type::INT32; |
6204 | } |
6205 | inline bool Type::Builder::isInt32() { |
6206 | return which() == Type::INT32; |
6207 | } |
6208 | inline ::capnp::Void Type::Reader::getInt32() const { |
6209 | KJ_IREQUIRE((which() == Type::INT32), |
6210 | "Must check which() before get()ing a union member." ); |
6211 | return _reader.getDataField< ::capnp::Void>( |
6212 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6213 | } |
6214 | |
6215 | inline ::capnp::Void Type::Builder::getInt32() { |
6216 | KJ_IREQUIRE((which() == Type::INT32), |
6217 | "Must check which() before get()ing a union member." ); |
6218 | return _builder.getDataField< ::capnp::Void>( |
6219 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6220 | } |
6221 | inline void Type::Builder::setInt32( ::capnp::Void value) { |
6222 | _builder.setDataField<Type::Which>( |
6223 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT32); |
6224 | _builder.setDataField< ::capnp::Void>( |
6225 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6226 | } |
6227 | |
6228 | inline bool Type::Reader::isInt64() const { |
6229 | return which() == Type::INT64; |
6230 | } |
6231 | inline bool Type::Builder::isInt64() { |
6232 | return which() == Type::INT64; |
6233 | } |
6234 | inline ::capnp::Void Type::Reader::getInt64() const { |
6235 | KJ_IREQUIRE((which() == Type::INT64), |
6236 | "Must check which() before get()ing a union member." ); |
6237 | return _reader.getDataField< ::capnp::Void>( |
6238 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6239 | } |
6240 | |
6241 | inline ::capnp::Void Type::Builder::getInt64() { |
6242 | KJ_IREQUIRE((which() == Type::INT64), |
6243 | "Must check which() before get()ing a union member." ); |
6244 | return _builder.getDataField< ::capnp::Void>( |
6245 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6246 | } |
6247 | inline void Type::Builder::setInt64( ::capnp::Void value) { |
6248 | _builder.setDataField<Type::Which>( |
6249 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT64); |
6250 | _builder.setDataField< ::capnp::Void>( |
6251 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6252 | } |
6253 | |
6254 | inline bool Type::Reader::isUint8() const { |
6255 | return which() == Type::UINT8; |
6256 | } |
6257 | inline bool Type::Builder::isUint8() { |
6258 | return which() == Type::UINT8; |
6259 | } |
6260 | inline ::capnp::Void Type::Reader::getUint8() const { |
6261 | KJ_IREQUIRE((which() == Type::UINT8), |
6262 | "Must check which() before get()ing a union member." ); |
6263 | return _reader.getDataField< ::capnp::Void>( |
6264 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6265 | } |
6266 | |
6267 | inline ::capnp::Void Type::Builder::getUint8() { |
6268 | KJ_IREQUIRE((which() == Type::UINT8), |
6269 | "Must check which() before get()ing a union member." ); |
6270 | return _builder.getDataField< ::capnp::Void>( |
6271 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6272 | } |
6273 | inline void Type::Builder::setUint8( ::capnp::Void value) { |
6274 | _builder.setDataField<Type::Which>( |
6275 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT8); |
6276 | _builder.setDataField< ::capnp::Void>( |
6277 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6278 | } |
6279 | |
6280 | inline bool Type::Reader::isUint16() const { |
6281 | return which() == Type::UINT16; |
6282 | } |
6283 | inline bool Type::Builder::isUint16() { |
6284 | return which() == Type::UINT16; |
6285 | } |
6286 | inline ::capnp::Void Type::Reader::getUint16() const { |
6287 | KJ_IREQUIRE((which() == Type::UINT16), |
6288 | "Must check which() before get()ing a union member." ); |
6289 | return _reader.getDataField< ::capnp::Void>( |
6290 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6291 | } |
6292 | |
6293 | inline ::capnp::Void Type::Builder::getUint16() { |
6294 | KJ_IREQUIRE((which() == Type::UINT16), |
6295 | "Must check which() before get()ing a union member." ); |
6296 | return _builder.getDataField< ::capnp::Void>( |
6297 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6298 | } |
6299 | inline void Type::Builder::setUint16( ::capnp::Void value) { |
6300 | _builder.setDataField<Type::Which>( |
6301 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT16); |
6302 | _builder.setDataField< ::capnp::Void>( |
6303 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6304 | } |
6305 | |
6306 | inline bool Type::Reader::isUint32() const { |
6307 | return which() == Type::UINT32; |
6308 | } |
6309 | inline bool Type::Builder::isUint32() { |
6310 | return which() == Type::UINT32; |
6311 | } |
6312 | inline ::capnp::Void Type::Reader::getUint32() const { |
6313 | KJ_IREQUIRE((which() == Type::UINT32), |
6314 | "Must check which() before get()ing a union member." ); |
6315 | return _reader.getDataField< ::capnp::Void>( |
6316 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6317 | } |
6318 | |
6319 | inline ::capnp::Void Type::Builder::getUint32() { |
6320 | KJ_IREQUIRE((which() == Type::UINT32), |
6321 | "Must check which() before get()ing a union member." ); |
6322 | return _builder.getDataField< ::capnp::Void>( |
6323 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6324 | } |
6325 | inline void Type::Builder::setUint32( ::capnp::Void value) { |
6326 | _builder.setDataField<Type::Which>( |
6327 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT32); |
6328 | _builder.setDataField< ::capnp::Void>( |
6329 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6330 | } |
6331 | |
6332 | inline bool Type::Reader::isUint64() const { |
6333 | return which() == Type::UINT64; |
6334 | } |
6335 | inline bool Type::Builder::isUint64() { |
6336 | return which() == Type::UINT64; |
6337 | } |
6338 | inline ::capnp::Void Type::Reader::getUint64() const { |
6339 | KJ_IREQUIRE((which() == Type::UINT64), |
6340 | "Must check which() before get()ing a union member." ); |
6341 | return _reader.getDataField< ::capnp::Void>( |
6342 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6343 | } |
6344 | |
6345 | inline ::capnp::Void Type::Builder::getUint64() { |
6346 | KJ_IREQUIRE((which() == Type::UINT64), |
6347 | "Must check which() before get()ing a union member." ); |
6348 | return _builder.getDataField< ::capnp::Void>( |
6349 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6350 | } |
6351 | inline void Type::Builder::setUint64( ::capnp::Void value) { |
6352 | _builder.setDataField<Type::Which>( |
6353 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT64); |
6354 | _builder.setDataField< ::capnp::Void>( |
6355 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6356 | } |
6357 | |
6358 | inline bool Type::Reader::isFloat32() const { |
6359 | return which() == Type::FLOAT32; |
6360 | } |
6361 | inline bool Type::Builder::isFloat32() { |
6362 | return which() == Type::FLOAT32; |
6363 | } |
6364 | inline ::capnp::Void Type::Reader::getFloat32() const { |
6365 | KJ_IREQUIRE((which() == Type::FLOAT32), |
6366 | "Must check which() before get()ing a union member." ); |
6367 | return _reader.getDataField< ::capnp::Void>( |
6368 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6369 | } |
6370 | |
6371 | inline ::capnp::Void Type::Builder::getFloat32() { |
6372 | KJ_IREQUIRE((which() == Type::FLOAT32), |
6373 | "Must check which() before get()ing a union member." ); |
6374 | return _builder.getDataField< ::capnp::Void>( |
6375 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6376 | } |
6377 | inline void Type::Builder::setFloat32( ::capnp::Void value) { |
6378 | _builder.setDataField<Type::Which>( |
6379 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::FLOAT32); |
6380 | _builder.setDataField< ::capnp::Void>( |
6381 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6382 | } |
6383 | |
6384 | inline bool Type::Reader::isFloat64() const { |
6385 | return which() == Type::FLOAT64; |
6386 | } |
6387 | inline bool Type::Builder::isFloat64() { |
6388 | return which() == Type::FLOAT64; |
6389 | } |
6390 | inline ::capnp::Void Type::Reader::getFloat64() const { |
6391 | KJ_IREQUIRE((which() == Type::FLOAT64), |
6392 | "Must check which() before get()ing a union member." ); |
6393 | return _reader.getDataField< ::capnp::Void>( |
6394 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6395 | } |
6396 | |
6397 | inline ::capnp::Void Type::Builder::getFloat64() { |
6398 | KJ_IREQUIRE((which() == Type::FLOAT64), |
6399 | "Must check which() before get()ing a union member." ); |
6400 | return _builder.getDataField< ::capnp::Void>( |
6401 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6402 | } |
6403 | inline void Type::Builder::setFloat64( ::capnp::Void value) { |
6404 | _builder.setDataField<Type::Which>( |
6405 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::FLOAT64); |
6406 | _builder.setDataField< ::capnp::Void>( |
6407 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6408 | } |
6409 | |
6410 | inline bool Type::Reader::isText() const { |
6411 | return which() == Type::TEXT; |
6412 | } |
6413 | inline bool Type::Builder::isText() { |
6414 | return which() == Type::TEXT; |
6415 | } |
6416 | inline ::capnp::Void Type::Reader::getText() const { |
6417 | KJ_IREQUIRE((which() == Type::TEXT), |
6418 | "Must check which() before get()ing a union member." ); |
6419 | return _reader.getDataField< ::capnp::Void>( |
6420 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6421 | } |
6422 | |
6423 | inline ::capnp::Void Type::Builder::getText() { |
6424 | KJ_IREQUIRE((which() == Type::TEXT), |
6425 | "Must check which() before get()ing a union member." ); |
6426 | return _builder.getDataField< ::capnp::Void>( |
6427 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6428 | } |
6429 | inline void Type::Builder::setText( ::capnp::Void value) { |
6430 | _builder.setDataField<Type::Which>( |
6431 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::TEXT); |
6432 | _builder.setDataField< ::capnp::Void>( |
6433 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6434 | } |
6435 | |
6436 | inline bool Type::Reader::isData() const { |
6437 | return which() == Type::DATA; |
6438 | } |
6439 | inline bool Type::Builder::isData() { |
6440 | return which() == Type::DATA; |
6441 | } |
6442 | inline ::capnp::Void Type::Reader::getData() const { |
6443 | KJ_IREQUIRE((which() == Type::DATA), |
6444 | "Must check which() before get()ing a union member." ); |
6445 | return _reader.getDataField< ::capnp::Void>( |
6446 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6447 | } |
6448 | |
6449 | inline ::capnp::Void Type::Builder::getData() { |
6450 | KJ_IREQUIRE((which() == Type::DATA), |
6451 | "Must check which() before get()ing a union member." ); |
6452 | return _builder.getDataField< ::capnp::Void>( |
6453 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6454 | } |
6455 | inline void Type::Builder::setData( ::capnp::Void value) { |
6456 | _builder.setDataField<Type::Which>( |
6457 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::DATA); |
6458 | _builder.setDataField< ::capnp::Void>( |
6459 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6460 | } |
6461 | |
6462 | inline bool Type::Reader::isList() const { |
6463 | return which() == Type::LIST; |
6464 | } |
6465 | inline bool Type::Builder::isList() { |
6466 | return which() == Type::LIST; |
6467 | } |
6468 | inline typename Type::List::Reader Type::Reader::getList() const { |
6469 | KJ_IREQUIRE((which() == Type::LIST), |
6470 | "Must check which() before get()ing a union member." ); |
6471 | return typename Type::List::Reader(_reader); |
6472 | } |
6473 | inline typename Type::List::Builder Type::Builder::getList() { |
6474 | KJ_IREQUIRE((which() == Type::LIST), |
6475 | "Must check which() before get()ing a union member." ); |
6476 | return typename Type::List::Builder(_builder); |
6477 | } |
6478 | inline typename Type::List::Builder Type::Builder::initList() { |
6479 | _builder.setDataField<Type::Which>( |
6480 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::LIST); |
6481 | _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
6482 | return typename Type::List::Builder(_builder); |
6483 | } |
6484 | inline bool Type::Reader::isEnum() const { |
6485 | return which() == Type::ENUM; |
6486 | } |
6487 | inline bool Type::Builder::isEnum() { |
6488 | return which() == Type::ENUM; |
6489 | } |
6490 | inline typename Type::Enum::Reader Type::Reader::getEnum() const { |
6491 | KJ_IREQUIRE((which() == Type::ENUM), |
6492 | "Must check which() before get()ing a union member." ); |
6493 | return typename Type::Enum::Reader(_reader); |
6494 | } |
6495 | inline typename Type::Enum::Builder Type::Builder::getEnum() { |
6496 | KJ_IREQUIRE((which() == Type::ENUM), |
6497 | "Must check which() before get()ing a union member." ); |
6498 | return typename Type::Enum::Builder(_builder); |
6499 | } |
6500 | inline typename Type::Enum::Builder Type::Builder::initEnum() { |
6501 | _builder.setDataField<Type::Which>( |
6502 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::ENUM); |
6503 | _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
6504 | _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
6505 | return typename Type::Enum::Builder(_builder); |
6506 | } |
6507 | inline bool Type::Reader::isStruct() const { |
6508 | return which() == Type::STRUCT; |
6509 | } |
6510 | inline bool Type::Builder::isStruct() { |
6511 | return which() == Type::STRUCT; |
6512 | } |
6513 | inline typename Type::Struct::Reader Type::Reader::getStruct() const { |
6514 | KJ_IREQUIRE((which() == Type::STRUCT), |
6515 | "Must check which() before get()ing a union member." ); |
6516 | return typename Type::Struct::Reader(_reader); |
6517 | } |
6518 | inline typename Type::Struct::Builder Type::Builder::getStruct() { |
6519 | KJ_IREQUIRE((which() == Type::STRUCT), |
6520 | "Must check which() before get()ing a union member." ); |
6521 | return typename Type::Struct::Builder(_builder); |
6522 | } |
6523 | inline typename Type::Struct::Builder Type::Builder::initStruct() { |
6524 | _builder.setDataField<Type::Which>( |
6525 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::STRUCT); |
6526 | _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
6527 | _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
6528 | return typename Type::Struct::Builder(_builder); |
6529 | } |
6530 | inline bool Type::Reader::isInterface() const { |
6531 | return which() == Type::INTERFACE; |
6532 | } |
6533 | inline bool Type::Builder::isInterface() { |
6534 | return which() == Type::INTERFACE; |
6535 | } |
6536 | inline typename Type::Interface::Reader Type::Reader::getInterface() const { |
6537 | KJ_IREQUIRE((which() == Type::INTERFACE), |
6538 | "Must check which() before get()ing a union member." ); |
6539 | return typename Type::Interface::Reader(_reader); |
6540 | } |
6541 | inline typename Type::Interface::Builder Type::Builder::getInterface() { |
6542 | KJ_IREQUIRE((which() == Type::INTERFACE), |
6543 | "Must check which() before get()ing a union member." ); |
6544 | return typename Type::Interface::Builder(_builder); |
6545 | } |
6546 | inline typename Type::Interface::Builder Type::Builder::initInterface() { |
6547 | _builder.setDataField<Type::Which>( |
6548 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INTERFACE); |
6549 | _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
6550 | _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
6551 | return typename Type::Interface::Builder(_builder); |
6552 | } |
6553 | inline bool Type::Reader::isAnyPointer() const { |
6554 | return which() == Type::ANY_POINTER; |
6555 | } |
6556 | inline bool Type::Builder::isAnyPointer() { |
6557 | return which() == Type::ANY_POINTER; |
6558 | } |
6559 | inline typename Type::AnyPointer::Reader Type::Reader::getAnyPointer() const { |
6560 | KJ_IREQUIRE((which() == Type::ANY_POINTER), |
6561 | "Must check which() before get()ing a union member." ); |
6562 | return typename Type::AnyPointer::Reader(_reader); |
6563 | } |
6564 | inline typename Type::AnyPointer::Builder Type::Builder::getAnyPointer() { |
6565 | KJ_IREQUIRE((which() == Type::ANY_POINTER), |
6566 | "Must check which() before get()ing a union member." ); |
6567 | return typename Type::AnyPointer::Builder(_builder); |
6568 | } |
6569 | inline typename Type::AnyPointer::Builder Type::Builder::initAnyPointer() { |
6570 | _builder.setDataField<Type::Which>( |
6571 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::ANY_POINTER); |
6572 | _builder.setDataField< ::uint16_t>(::capnp::bounded<4>() * ::capnp::ELEMENTS, 0); |
6573 | _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6574 | _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); |
6575 | return typename Type::AnyPointer::Builder(_builder); |
6576 | } |
6577 | inline bool Type::List::Reader::hasElementType() const { |
6578 | return !_reader.getPointerField( |
6579 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6580 | } |
6581 | inline bool Type::List::Builder::hasElementType() { |
6582 | return !_builder.getPointerField( |
6583 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6584 | } |
6585 | inline ::capnp::schema::Type::Reader Type::List::Reader::getElementType() const { |
6586 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
6587 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6588 | } |
6589 | inline ::capnp::schema::Type::Builder Type::List::Builder::getElementType() { |
6590 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
6591 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6592 | } |
6593 | #if !CAPNP_LITE |
6594 | inline ::capnp::schema::Type::Pipeline Type::List::Pipeline::getElementType() { |
6595 | return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(0)); |
6596 | } |
6597 | #endif // !CAPNP_LITE |
6598 | inline void Type::List::Builder::setElementType( ::capnp::schema::Type::Reader value) { |
6599 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
6600 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6601 | } |
6602 | inline ::capnp::schema::Type::Builder Type::List::Builder::initElementType() { |
6603 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
6604 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6605 | } |
6606 | inline void Type::List::Builder::adoptElementType( |
6607 | ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
6608 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
6609 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6610 | } |
6611 | inline ::capnp::Orphan< ::capnp::schema::Type> Type::List::Builder::disownElementType() { |
6612 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
6613 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6614 | } |
6615 | |
6616 | inline ::uint64_t Type::Enum::Reader::getTypeId() const { |
6617 | return _reader.getDataField< ::uint64_t>( |
6618 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6619 | } |
6620 | |
6621 | inline ::uint64_t Type::Enum::Builder::getTypeId() { |
6622 | return _builder.getDataField< ::uint64_t>( |
6623 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6624 | } |
6625 | inline void Type::Enum::Builder::setTypeId( ::uint64_t value) { |
6626 | _builder.setDataField< ::uint64_t>( |
6627 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6628 | } |
6629 | |
6630 | inline bool Type::Enum::Reader::hasBrand() const { |
6631 | return !_reader.getPointerField( |
6632 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6633 | } |
6634 | inline bool Type::Enum::Builder::hasBrand() { |
6635 | return !_builder.getPointerField( |
6636 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6637 | } |
6638 | inline ::capnp::schema::Brand::Reader Type::Enum::Reader::getBrand() const { |
6639 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
6640 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6641 | } |
6642 | inline ::capnp::schema::Brand::Builder Type::Enum::Builder::getBrand() { |
6643 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
6644 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6645 | } |
6646 | #if !CAPNP_LITE |
6647 | inline ::capnp::schema::Brand::Pipeline Type::Enum::Pipeline::getBrand() { |
6648 | return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
6649 | } |
6650 | #endif // !CAPNP_LITE |
6651 | inline void Type::Enum::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
6652 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6653 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6654 | } |
6655 | inline ::capnp::schema::Brand::Builder Type::Enum::Builder::initBrand() { |
6656 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6657 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6658 | } |
6659 | inline void Type::Enum::Builder::adoptBrand( |
6660 | ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6661 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6662 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6663 | } |
6664 | inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Enum::Builder::disownBrand() { |
6665 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6666 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6667 | } |
6668 | |
6669 | inline ::uint64_t Type::Struct::Reader::getTypeId() const { |
6670 | return _reader.getDataField< ::uint64_t>( |
6671 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6672 | } |
6673 | |
6674 | inline ::uint64_t Type::Struct::Builder::getTypeId() { |
6675 | return _builder.getDataField< ::uint64_t>( |
6676 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6677 | } |
6678 | inline void Type::Struct::Builder::setTypeId( ::uint64_t value) { |
6679 | _builder.setDataField< ::uint64_t>( |
6680 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6681 | } |
6682 | |
6683 | inline bool Type::Struct::Reader::hasBrand() const { |
6684 | return !_reader.getPointerField( |
6685 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6686 | } |
6687 | inline bool Type::Struct::Builder::hasBrand() { |
6688 | return !_builder.getPointerField( |
6689 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6690 | } |
6691 | inline ::capnp::schema::Brand::Reader Type::Struct::Reader::getBrand() const { |
6692 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
6693 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6694 | } |
6695 | inline ::capnp::schema::Brand::Builder Type::Struct::Builder::getBrand() { |
6696 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
6697 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6698 | } |
6699 | #if !CAPNP_LITE |
6700 | inline ::capnp::schema::Brand::Pipeline Type::Struct::Pipeline::getBrand() { |
6701 | return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
6702 | } |
6703 | #endif // !CAPNP_LITE |
6704 | inline void Type::Struct::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
6705 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6706 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6707 | } |
6708 | inline ::capnp::schema::Brand::Builder Type::Struct::Builder::initBrand() { |
6709 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6710 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6711 | } |
6712 | inline void Type::Struct::Builder::adoptBrand( |
6713 | ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6714 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6715 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6716 | } |
6717 | inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Struct::Builder::disownBrand() { |
6718 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6719 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6720 | } |
6721 | |
6722 | inline ::uint64_t Type::Interface::Reader::getTypeId() const { |
6723 | return _reader.getDataField< ::uint64_t>( |
6724 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6725 | } |
6726 | |
6727 | inline ::uint64_t Type::Interface::Builder::getTypeId() { |
6728 | return _builder.getDataField< ::uint64_t>( |
6729 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6730 | } |
6731 | inline void Type::Interface::Builder::setTypeId( ::uint64_t value) { |
6732 | _builder.setDataField< ::uint64_t>( |
6733 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6734 | } |
6735 | |
6736 | inline bool Type::Interface::Reader::hasBrand() const { |
6737 | return !_reader.getPointerField( |
6738 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6739 | } |
6740 | inline bool Type::Interface::Builder::hasBrand() { |
6741 | return !_builder.getPointerField( |
6742 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
6743 | } |
6744 | inline ::capnp::schema::Brand::Reader Type::Interface::Reader::getBrand() const { |
6745 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
6746 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6747 | } |
6748 | inline ::capnp::schema::Brand::Builder Type::Interface::Builder::getBrand() { |
6749 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
6750 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6751 | } |
6752 | #if !CAPNP_LITE |
6753 | inline ::capnp::schema::Brand::Pipeline Type::Interface::Pipeline::getBrand() { |
6754 | return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
6755 | } |
6756 | #endif // !CAPNP_LITE |
6757 | inline void Type::Interface::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
6758 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6759 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6760 | } |
6761 | inline ::capnp::schema::Brand::Builder Type::Interface::Builder::initBrand() { |
6762 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6763 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6764 | } |
6765 | inline void Type::Interface::Builder::adoptBrand( |
6766 | ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6767 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6768 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6769 | } |
6770 | inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Interface::Builder::disownBrand() { |
6771 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6772 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6773 | } |
6774 | |
6775 | inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Reader::which() const { |
6776 | return _reader.getDataField<Which>( |
6777 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
6778 | } |
6779 | inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Builder::which() { |
6780 | return _builder.getDataField<Which>( |
6781 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
6782 | } |
6783 | |
6784 | inline bool Type::AnyPointer::Reader::isUnconstrained() const { |
6785 | return which() == Type::AnyPointer::UNCONSTRAINED; |
6786 | } |
6787 | inline bool Type::AnyPointer::Builder::isUnconstrained() { |
6788 | return which() == Type::AnyPointer::UNCONSTRAINED; |
6789 | } |
6790 | inline typename Type::AnyPointer::Unconstrained::Reader Type::AnyPointer::Reader::getUnconstrained() const { |
6791 | KJ_IREQUIRE((which() == Type::AnyPointer::UNCONSTRAINED), |
6792 | "Must check which() before get()ing a union member." ); |
6793 | return typename Type::AnyPointer::Unconstrained::Reader(_reader); |
6794 | } |
6795 | inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::getUnconstrained() { |
6796 | KJ_IREQUIRE((which() == Type::AnyPointer::UNCONSTRAINED), |
6797 | "Must check which() before get()ing a union member." ); |
6798 | return typename Type::AnyPointer::Unconstrained::Builder(_builder); |
6799 | } |
6800 | inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::initUnconstrained() { |
6801 | _builder.setDataField<Type::AnyPointer::Which>( |
6802 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::UNCONSTRAINED); |
6803 | _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6804 | return typename Type::AnyPointer::Unconstrained::Builder(_builder); |
6805 | } |
6806 | inline bool Type::AnyPointer::Reader::isParameter() const { |
6807 | return which() == Type::AnyPointer::PARAMETER; |
6808 | } |
6809 | inline bool Type::AnyPointer::Builder::isParameter() { |
6810 | return which() == Type::AnyPointer::PARAMETER; |
6811 | } |
6812 | inline typename Type::AnyPointer::Parameter::Reader Type::AnyPointer::Reader::getParameter() const { |
6813 | KJ_IREQUIRE((which() == Type::AnyPointer::PARAMETER), |
6814 | "Must check which() before get()ing a union member." ); |
6815 | return typename Type::AnyPointer::Parameter::Reader(_reader); |
6816 | } |
6817 | inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::getParameter() { |
6818 | KJ_IREQUIRE((which() == Type::AnyPointer::PARAMETER), |
6819 | "Must check which() before get()ing a union member." ); |
6820 | return typename Type::AnyPointer::Parameter::Builder(_builder); |
6821 | } |
6822 | inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::initParameter() { |
6823 | _builder.setDataField<Type::AnyPointer::Which>( |
6824 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::PARAMETER); |
6825 | _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6826 | _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); |
6827 | return typename Type::AnyPointer::Parameter::Builder(_builder); |
6828 | } |
6829 | inline bool Type::AnyPointer::Reader::isImplicitMethodParameter() const { |
6830 | return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; |
6831 | } |
6832 | inline bool Type::AnyPointer::Builder::isImplicitMethodParameter() { |
6833 | return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; |
6834 | } |
6835 | inline typename Type::AnyPointer::ImplicitMethodParameter::Reader Type::AnyPointer::Reader::getImplicitMethodParameter() const { |
6836 | KJ_IREQUIRE((which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER), |
6837 | "Must check which() before get()ing a union member." ); |
6838 | return typename Type::AnyPointer::ImplicitMethodParameter::Reader(_reader); |
6839 | } |
6840 | inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::getImplicitMethodParameter() { |
6841 | KJ_IREQUIRE((which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER), |
6842 | "Must check which() before get()ing a union member." ); |
6843 | return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); |
6844 | } |
6845 | inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::initImplicitMethodParameter() { |
6846 | _builder.setDataField<Type::AnyPointer::Which>( |
6847 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::IMPLICIT_METHOD_PARAMETER); |
6848 | _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6849 | return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); |
6850 | } |
6851 | inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Reader::which() const { |
6852 | return _reader.getDataField<Which>( |
6853 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6854 | } |
6855 | inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Builder::which() { |
6856 | return _builder.getDataField<Which>( |
6857 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6858 | } |
6859 | |
6860 | inline bool Type::AnyPointer::Unconstrained::Reader::isAnyKind() const { |
6861 | return which() == Type::AnyPointer::Unconstrained::ANY_KIND; |
6862 | } |
6863 | inline bool Type::AnyPointer::Unconstrained::Builder::isAnyKind() { |
6864 | return which() == Type::AnyPointer::Unconstrained::ANY_KIND; |
6865 | } |
6866 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getAnyKind() const { |
6867 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), |
6868 | "Must check which() before get()ing a union member." ); |
6869 | return _reader.getDataField< ::capnp::Void>( |
6870 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6871 | } |
6872 | |
6873 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getAnyKind() { |
6874 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), |
6875 | "Must check which() before get()ing a union member." ); |
6876 | return _builder.getDataField< ::capnp::Void>( |
6877 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6878 | } |
6879 | inline void Type::AnyPointer::Unconstrained::Builder::setAnyKind( ::capnp::Void value) { |
6880 | _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6881 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::ANY_KIND); |
6882 | _builder.setDataField< ::capnp::Void>( |
6883 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6884 | } |
6885 | |
6886 | inline bool Type::AnyPointer::Unconstrained::Reader::isStruct() const { |
6887 | return which() == Type::AnyPointer::Unconstrained::STRUCT; |
6888 | } |
6889 | inline bool Type::AnyPointer::Unconstrained::Builder::isStruct() { |
6890 | return which() == Type::AnyPointer::Unconstrained::STRUCT; |
6891 | } |
6892 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getStruct() const { |
6893 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), |
6894 | "Must check which() before get()ing a union member." ); |
6895 | return _reader.getDataField< ::capnp::Void>( |
6896 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6897 | } |
6898 | |
6899 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getStruct() { |
6900 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), |
6901 | "Must check which() before get()ing a union member." ); |
6902 | return _builder.getDataField< ::capnp::Void>( |
6903 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6904 | } |
6905 | inline void Type::AnyPointer::Unconstrained::Builder::setStruct( ::capnp::Void value) { |
6906 | _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6907 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::STRUCT); |
6908 | _builder.setDataField< ::capnp::Void>( |
6909 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6910 | } |
6911 | |
6912 | inline bool Type::AnyPointer::Unconstrained::Reader::isList() const { |
6913 | return which() == Type::AnyPointer::Unconstrained::LIST; |
6914 | } |
6915 | inline bool Type::AnyPointer::Unconstrained::Builder::isList() { |
6916 | return which() == Type::AnyPointer::Unconstrained::LIST; |
6917 | } |
6918 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getList() const { |
6919 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), |
6920 | "Must check which() before get()ing a union member." ); |
6921 | return _reader.getDataField< ::capnp::Void>( |
6922 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6923 | } |
6924 | |
6925 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getList() { |
6926 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), |
6927 | "Must check which() before get()ing a union member." ); |
6928 | return _builder.getDataField< ::capnp::Void>( |
6929 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6930 | } |
6931 | inline void Type::AnyPointer::Unconstrained::Builder::setList( ::capnp::Void value) { |
6932 | _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6933 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::LIST); |
6934 | _builder.setDataField< ::capnp::Void>( |
6935 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6936 | } |
6937 | |
6938 | inline bool Type::AnyPointer::Unconstrained::Reader::isCapability() const { |
6939 | return which() == Type::AnyPointer::Unconstrained::CAPABILITY; |
6940 | } |
6941 | inline bool Type::AnyPointer::Unconstrained::Builder::isCapability() { |
6942 | return which() == Type::AnyPointer::Unconstrained::CAPABILITY; |
6943 | } |
6944 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getCapability() const { |
6945 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), |
6946 | "Must check which() before get()ing a union member." ); |
6947 | return _reader.getDataField< ::capnp::Void>( |
6948 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6949 | } |
6950 | |
6951 | inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getCapability() { |
6952 | KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), |
6953 | "Must check which() before get()ing a union member." ); |
6954 | return _builder.getDataField< ::capnp::Void>( |
6955 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6956 | } |
6957 | inline void Type::AnyPointer::Unconstrained::Builder::setCapability( ::capnp::Void value) { |
6958 | _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6959 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::CAPABILITY); |
6960 | _builder.setDataField< ::capnp::Void>( |
6961 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6962 | } |
6963 | |
6964 | inline ::uint64_t Type::AnyPointer::Parameter::Reader::getScopeId() const { |
6965 | return _reader.getDataField< ::uint64_t>( |
6966 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6967 | } |
6968 | |
6969 | inline ::uint64_t Type::AnyPointer::Parameter::Builder::getScopeId() { |
6970 | return _builder.getDataField< ::uint64_t>( |
6971 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6972 | } |
6973 | inline void Type::AnyPointer::Parameter::Builder::setScopeId( ::uint64_t value) { |
6974 | _builder.setDataField< ::uint64_t>( |
6975 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
6976 | } |
6977 | |
6978 | inline ::uint16_t Type::AnyPointer::Parameter::Reader::getParameterIndex() const { |
6979 | return _reader.getDataField< ::uint16_t>( |
6980 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6981 | } |
6982 | |
6983 | inline ::uint16_t Type::AnyPointer::Parameter::Builder::getParameterIndex() { |
6984 | return _builder.getDataField< ::uint16_t>( |
6985 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6986 | } |
6987 | inline void Type::AnyPointer::Parameter::Builder::setParameterIndex( ::uint16_t value) { |
6988 | _builder.setDataField< ::uint16_t>( |
6989 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, value); |
6990 | } |
6991 | |
6992 | inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Reader::getParameterIndex() const { |
6993 | return _reader.getDataField< ::uint16_t>( |
6994 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6995 | } |
6996 | |
6997 | inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Builder::getParameterIndex() { |
6998 | return _builder.getDataField< ::uint16_t>( |
6999 | ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
7000 | } |
7001 | inline void Type::AnyPointer::ImplicitMethodParameter::Builder::setParameterIndex( ::uint16_t value) { |
7002 | _builder.setDataField< ::uint16_t>( |
7003 | ::capnp::bounded<5>() * ::capnp::ELEMENTS, value); |
7004 | } |
7005 | |
7006 | inline bool Brand::Reader::hasScopes() const { |
7007 | return !_reader.getPointerField( |
7008 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7009 | } |
7010 | inline bool Brand::Builder::hasScopes() { |
7011 | return !_builder.getPointerField( |
7012 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7013 | } |
7014 | inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader Brand::Reader::getScopes() const { |
7015 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
7016 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7017 | } |
7018 | inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder Brand::Builder::getScopes() { |
7019 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
7020 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7021 | } |
7022 | inline void Brand::Builder::setScopes( ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader value) { |
7023 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
7024 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7025 | } |
7026 | inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder Brand::Builder::initScopes(unsigned int size) { |
7027 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
7028 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7029 | } |
7030 | inline void Brand::Builder::adoptScopes( |
7031 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>&& value) { |
7032 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
7033 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7034 | } |
7035 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>> Brand::Builder::disownScopes() { |
7036 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
7037 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7038 | } |
7039 | |
7040 | inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Reader::which() const { |
7041 | return _reader.getDataField<Which>( |
7042 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
7043 | } |
7044 | inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Builder::which() { |
7045 | return _builder.getDataField<Which>( |
7046 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
7047 | } |
7048 | |
7049 | inline ::uint64_t Brand::Scope::Reader::getScopeId() const { |
7050 | return _reader.getDataField< ::uint64_t>( |
7051 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7052 | } |
7053 | |
7054 | inline ::uint64_t Brand::Scope::Builder::getScopeId() { |
7055 | return _builder.getDataField< ::uint64_t>( |
7056 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7057 | } |
7058 | inline void Brand::Scope::Builder::setScopeId( ::uint64_t value) { |
7059 | _builder.setDataField< ::uint64_t>( |
7060 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7061 | } |
7062 | |
7063 | inline bool Brand::Scope::Reader::isBind() const { |
7064 | return which() == Brand::Scope::BIND; |
7065 | } |
7066 | inline bool Brand::Scope::Builder::isBind() { |
7067 | return which() == Brand::Scope::BIND; |
7068 | } |
7069 | inline bool Brand::Scope::Reader::hasBind() const { |
7070 | if (which() != Brand::Scope::BIND) return false; |
7071 | return !_reader.getPointerField( |
7072 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7073 | } |
7074 | inline bool Brand::Scope::Builder::hasBind() { |
7075 | if (which() != Brand::Scope::BIND) return false; |
7076 | return !_builder.getPointerField( |
7077 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7078 | } |
7079 | inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader Brand::Scope::Reader::getBind() const { |
7080 | KJ_IREQUIRE((which() == Brand::Scope::BIND), |
7081 | "Must check which() before get()ing a union member." ); |
7082 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
7083 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7084 | } |
7085 | inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder Brand::Scope::Builder::getBind() { |
7086 | KJ_IREQUIRE((which() == Brand::Scope::BIND), |
7087 | "Must check which() before get()ing a union member." ); |
7088 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
7089 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7090 | } |
7091 | inline void Brand::Scope::Builder::setBind( ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader value) { |
7092 | _builder.setDataField<Brand::Scope::Which>( |
7093 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); |
7094 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
7095 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7096 | } |
7097 | inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder Brand::Scope::Builder::initBind(unsigned int size) { |
7098 | _builder.setDataField<Brand::Scope::Which>( |
7099 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); |
7100 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
7101 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7102 | } |
7103 | inline void Brand::Scope::Builder::adoptBind( |
7104 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>&& value) { |
7105 | _builder.setDataField<Brand::Scope::Which>( |
7106 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); |
7107 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
7108 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7109 | } |
7110 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>> Brand::Scope::Builder::disownBind() { |
7111 | KJ_IREQUIRE((which() == Brand::Scope::BIND), |
7112 | "Must check which() before get()ing a union member." ); |
7113 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
7114 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7115 | } |
7116 | |
7117 | inline bool Brand::Scope::Reader::isInherit() const { |
7118 | return which() == Brand::Scope::INHERIT; |
7119 | } |
7120 | inline bool Brand::Scope::Builder::isInherit() { |
7121 | return which() == Brand::Scope::INHERIT; |
7122 | } |
7123 | inline ::capnp::Void Brand::Scope::Reader::getInherit() const { |
7124 | KJ_IREQUIRE((which() == Brand::Scope::INHERIT), |
7125 | "Must check which() before get()ing a union member." ); |
7126 | return _reader.getDataField< ::capnp::Void>( |
7127 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7128 | } |
7129 | |
7130 | inline ::capnp::Void Brand::Scope::Builder::getInherit() { |
7131 | KJ_IREQUIRE((which() == Brand::Scope::INHERIT), |
7132 | "Must check which() before get()ing a union member." ); |
7133 | return _builder.getDataField< ::capnp::Void>( |
7134 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7135 | } |
7136 | inline void Brand::Scope::Builder::setInherit( ::capnp::Void value) { |
7137 | _builder.setDataField<Brand::Scope::Which>( |
7138 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::INHERIT); |
7139 | _builder.setDataField< ::capnp::Void>( |
7140 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7141 | } |
7142 | |
7143 | inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Reader::which() const { |
7144 | return _reader.getDataField<Which>( |
7145 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7146 | } |
7147 | inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Builder::which() { |
7148 | return _builder.getDataField<Which>( |
7149 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7150 | } |
7151 | |
7152 | inline bool Brand::Binding::Reader::isUnbound() const { |
7153 | return which() == Brand::Binding::UNBOUND; |
7154 | } |
7155 | inline bool Brand::Binding::Builder::isUnbound() { |
7156 | return which() == Brand::Binding::UNBOUND; |
7157 | } |
7158 | inline ::capnp::Void Brand::Binding::Reader::getUnbound() const { |
7159 | KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), |
7160 | "Must check which() before get()ing a union member." ); |
7161 | return _reader.getDataField< ::capnp::Void>( |
7162 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7163 | } |
7164 | |
7165 | inline ::capnp::Void Brand::Binding::Builder::getUnbound() { |
7166 | KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), |
7167 | "Must check which() before get()ing a union member." ); |
7168 | return _builder.getDataField< ::capnp::Void>( |
7169 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7170 | } |
7171 | inline void Brand::Binding::Builder::setUnbound( ::capnp::Void value) { |
7172 | _builder.setDataField<Brand::Binding::Which>( |
7173 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::UNBOUND); |
7174 | _builder.setDataField< ::capnp::Void>( |
7175 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7176 | } |
7177 | |
7178 | inline bool Brand::Binding::Reader::isType() const { |
7179 | return which() == Brand::Binding::TYPE; |
7180 | } |
7181 | inline bool Brand::Binding::Builder::isType() { |
7182 | return which() == Brand::Binding::TYPE; |
7183 | } |
7184 | inline bool Brand::Binding::Reader::hasType() const { |
7185 | if (which() != Brand::Binding::TYPE) return false; |
7186 | return !_reader.getPointerField( |
7187 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7188 | } |
7189 | inline bool Brand::Binding::Builder::hasType() { |
7190 | if (which() != Brand::Binding::TYPE) return false; |
7191 | return !_builder.getPointerField( |
7192 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7193 | } |
7194 | inline ::capnp::schema::Type::Reader Brand::Binding::Reader::getType() const { |
7195 | KJ_IREQUIRE((which() == Brand::Binding::TYPE), |
7196 | "Must check which() before get()ing a union member." ); |
7197 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
7198 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7199 | } |
7200 | inline ::capnp::schema::Type::Builder Brand::Binding::Builder::getType() { |
7201 | KJ_IREQUIRE((which() == Brand::Binding::TYPE), |
7202 | "Must check which() before get()ing a union member." ); |
7203 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
7204 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7205 | } |
7206 | inline void Brand::Binding::Builder::setType( ::capnp::schema::Type::Reader value) { |
7207 | _builder.setDataField<Brand::Binding::Which>( |
7208 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); |
7209 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
7210 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7211 | } |
7212 | inline ::capnp::schema::Type::Builder Brand::Binding::Builder::initType() { |
7213 | _builder.setDataField<Brand::Binding::Which>( |
7214 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); |
7215 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
7216 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7217 | } |
7218 | inline void Brand::Binding::Builder::adoptType( |
7219 | ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
7220 | _builder.setDataField<Brand::Binding::Which>( |
7221 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); |
7222 | ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
7223 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7224 | } |
7225 | inline ::capnp::Orphan< ::capnp::schema::Type> Brand::Binding::Builder::disownType() { |
7226 | KJ_IREQUIRE((which() == Brand::Binding::TYPE), |
7227 | "Must check which() before get()ing a union member." ); |
7228 | return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
7229 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7230 | } |
7231 | |
7232 | inline ::capnp::schema::Value::Which Value::Reader::which() const { |
7233 | return _reader.getDataField<Which>( |
7234 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7235 | } |
7236 | inline ::capnp::schema::Value::Which Value::Builder::which() { |
7237 | return _builder.getDataField<Which>( |
7238 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7239 | } |
7240 | |
7241 | inline bool Value::Reader::isVoid() const { |
7242 | return which() == Value::VOID; |
7243 | } |
7244 | inline bool Value::Builder::isVoid() { |
7245 | return which() == Value::VOID; |
7246 | } |
7247 | inline ::capnp::Void Value::Reader::getVoid() const { |
7248 | KJ_IREQUIRE((which() == Value::VOID), |
7249 | "Must check which() before get()ing a union member." ); |
7250 | return _reader.getDataField< ::capnp::Void>( |
7251 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7252 | } |
7253 | |
7254 | inline ::capnp::Void Value::Builder::getVoid() { |
7255 | KJ_IREQUIRE((which() == Value::VOID), |
7256 | "Must check which() before get()ing a union member." ); |
7257 | return _builder.getDataField< ::capnp::Void>( |
7258 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7259 | } |
7260 | inline void Value::Builder::setVoid( ::capnp::Void value) { |
7261 | _builder.setDataField<Value::Which>( |
7262 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::VOID); |
7263 | _builder.setDataField< ::capnp::Void>( |
7264 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7265 | } |
7266 | |
7267 | inline bool Value::Reader::isBool() const { |
7268 | return which() == Value::BOOL; |
7269 | } |
7270 | inline bool Value::Builder::isBool() { |
7271 | return which() == Value::BOOL; |
7272 | } |
7273 | inline bool Value::Reader::getBool() const { |
7274 | KJ_IREQUIRE((which() == Value::BOOL), |
7275 | "Must check which() before get()ing a union member." ); |
7276 | return _reader.getDataField<bool>( |
7277 | ::capnp::bounded<16>() * ::capnp::ELEMENTS); |
7278 | } |
7279 | |
7280 | inline bool Value::Builder::getBool() { |
7281 | KJ_IREQUIRE((which() == Value::BOOL), |
7282 | "Must check which() before get()ing a union member." ); |
7283 | return _builder.getDataField<bool>( |
7284 | ::capnp::bounded<16>() * ::capnp::ELEMENTS); |
7285 | } |
7286 | inline void Value::Builder::setBool(bool value) { |
7287 | _builder.setDataField<Value::Which>( |
7288 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::BOOL); |
7289 | _builder.setDataField<bool>( |
7290 | ::capnp::bounded<16>() * ::capnp::ELEMENTS, value); |
7291 | } |
7292 | |
7293 | inline bool Value::Reader::isInt8() const { |
7294 | return which() == Value::INT8; |
7295 | } |
7296 | inline bool Value::Builder::isInt8() { |
7297 | return which() == Value::INT8; |
7298 | } |
7299 | inline ::int8_t Value::Reader::getInt8() const { |
7300 | KJ_IREQUIRE((which() == Value::INT8), |
7301 | "Must check which() before get()ing a union member." ); |
7302 | return _reader.getDataField< ::int8_t>( |
7303 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
7304 | } |
7305 | |
7306 | inline ::int8_t Value::Builder::getInt8() { |
7307 | KJ_IREQUIRE((which() == Value::INT8), |
7308 | "Must check which() before get()ing a union member." ); |
7309 | return _builder.getDataField< ::int8_t>( |
7310 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
7311 | } |
7312 | inline void Value::Builder::setInt8( ::int8_t value) { |
7313 | _builder.setDataField<Value::Which>( |
7314 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT8); |
7315 | _builder.setDataField< ::int8_t>( |
7316 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
7317 | } |
7318 | |
7319 | inline bool Value::Reader::isInt16() const { |
7320 | return which() == Value::INT16; |
7321 | } |
7322 | inline bool Value::Builder::isInt16() { |
7323 | return which() == Value::INT16; |
7324 | } |
7325 | inline ::int16_t Value::Reader::getInt16() const { |
7326 | KJ_IREQUIRE((which() == Value::INT16), |
7327 | "Must check which() before get()ing a union member." ); |
7328 | return _reader.getDataField< ::int16_t>( |
7329 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7330 | } |
7331 | |
7332 | inline ::int16_t Value::Builder::getInt16() { |
7333 | KJ_IREQUIRE((which() == Value::INT16), |
7334 | "Must check which() before get()ing a union member." ); |
7335 | return _builder.getDataField< ::int16_t>( |
7336 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7337 | } |
7338 | inline void Value::Builder::setInt16( ::int16_t value) { |
7339 | _builder.setDataField<Value::Which>( |
7340 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT16); |
7341 | _builder.setDataField< ::int16_t>( |
7342 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7343 | } |
7344 | |
7345 | inline bool Value::Reader::isInt32() const { |
7346 | return which() == Value::INT32; |
7347 | } |
7348 | inline bool Value::Builder::isInt32() { |
7349 | return which() == Value::INT32; |
7350 | } |
7351 | inline ::int32_t Value::Reader::getInt32() const { |
7352 | KJ_IREQUIRE((which() == Value::INT32), |
7353 | "Must check which() before get()ing a union member." ); |
7354 | return _reader.getDataField< ::int32_t>( |
7355 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7356 | } |
7357 | |
7358 | inline ::int32_t Value::Builder::getInt32() { |
7359 | KJ_IREQUIRE((which() == Value::INT32), |
7360 | "Must check which() before get()ing a union member." ); |
7361 | return _builder.getDataField< ::int32_t>( |
7362 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7363 | } |
7364 | inline void Value::Builder::setInt32( ::int32_t value) { |
7365 | _builder.setDataField<Value::Which>( |
7366 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT32); |
7367 | _builder.setDataField< ::int32_t>( |
7368 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7369 | } |
7370 | |
7371 | inline bool Value::Reader::isInt64() const { |
7372 | return which() == Value::INT64; |
7373 | } |
7374 | inline bool Value::Builder::isInt64() { |
7375 | return which() == Value::INT64; |
7376 | } |
7377 | inline ::int64_t Value::Reader::getInt64() const { |
7378 | KJ_IREQUIRE((which() == Value::INT64), |
7379 | "Must check which() before get()ing a union member." ); |
7380 | return _reader.getDataField< ::int64_t>( |
7381 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7382 | } |
7383 | |
7384 | inline ::int64_t Value::Builder::getInt64() { |
7385 | KJ_IREQUIRE((which() == Value::INT64), |
7386 | "Must check which() before get()ing a union member." ); |
7387 | return _builder.getDataField< ::int64_t>( |
7388 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7389 | } |
7390 | inline void Value::Builder::setInt64( ::int64_t value) { |
7391 | _builder.setDataField<Value::Which>( |
7392 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT64); |
7393 | _builder.setDataField< ::int64_t>( |
7394 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7395 | } |
7396 | |
7397 | inline bool Value::Reader::isUint8() const { |
7398 | return which() == Value::UINT8; |
7399 | } |
7400 | inline bool Value::Builder::isUint8() { |
7401 | return which() == Value::UINT8; |
7402 | } |
7403 | inline ::uint8_t Value::Reader::getUint8() const { |
7404 | KJ_IREQUIRE((which() == Value::UINT8), |
7405 | "Must check which() before get()ing a union member." ); |
7406 | return _reader.getDataField< ::uint8_t>( |
7407 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
7408 | } |
7409 | |
7410 | inline ::uint8_t Value::Builder::getUint8() { |
7411 | KJ_IREQUIRE((which() == Value::UINT8), |
7412 | "Must check which() before get()ing a union member." ); |
7413 | return _builder.getDataField< ::uint8_t>( |
7414 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
7415 | } |
7416 | inline void Value::Builder::setUint8( ::uint8_t value) { |
7417 | _builder.setDataField<Value::Which>( |
7418 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT8); |
7419 | _builder.setDataField< ::uint8_t>( |
7420 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
7421 | } |
7422 | |
7423 | inline bool Value::Reader::isUint16() const { |
7424 | return which() == Value::UINT16; |
7425 | } |
7426 | inline bool Value::Builder::isUint16() { |
7427 | return which() == Value::UINT16; |
7428 | } |
7429 | inline ::uint16_t Value::Reader::getUint16() const { |
7430 | KJ_IREQUIRE((which() == Value::UINT16), |
7431 | "Must check which() before get()ing a union member." ); |
7432 | return _reader.getDataField< ::uint16_t>( |
7433 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7434 | } |
7435 | |
7436 | inline ::uint16_t Value::Builder::getUint16() { |
7437 | KJ_IREQUIRE((which() == Value::UINT16), |
7438 | "Must check which() before get()ing a union member." ); |
7439 | return _builder.getDataField< ::uint16_t>( |
7440 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7441 | } |
7442 | inline void Value::Builder::setUint16( ::uint16_t value) { |
7443 | _builder.setDataField<Value::Which>( |
7444 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT16); |
7445 | _builder.setDataField< ::uint16_t>( |
7446 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7447 | } |
7448 | |
7449 | inline bool Value::Reader::isUint32() const { |
7450 | return which() == Value::UINT32; |
7451 | } |
7452 | inline bool Value::Builder::isUint32() { |
7453 | return which() == Value::UINT32; |
7454 | } |
7455 | inline ::uint32_t Value::Reader::getUint32() const { |
7456 | KJ_IREQUIRE((which() == Value::UINT32), |
7457 | "Must check which() before get()ing a union member." ); |
7458 | return _reader.getDataField< ::uint32_t>( |
7459 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7460 | } |
7461 | |
7462 | inline ::uint32_t Value::Builder::getUint32() { |
7463 | KJ_IREQUIRE((which() == Value::UINT32), |
7464 | "Must check which() before get()ing a union member." ); |
7465 | return _builder.getDataField< ::uint32_t>( |
7466 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7467 | } |
7468 | inline void Value::Builder::setUint32( ::uint32_t value) { |
7469 | _builder.setDataField<Value::Which>( |
7470 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT32); |
7471 | _builder.setDataField< ::uint32_t>( |
7472 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7473 | } |
7474 | |
7475 | inline bool Value::Reader::isUint64() const { |
7476 | return which() == Value::UINT64; |
7477 | } |
7478 | inline bool Value::Builder::isUint64() { |
7479 | return which() == Value::UINT64; |
7480 | } |
7481 | inline ::uint64_t Value::Reader::getUint64() const { |
7482 | KJ_IREQUIRE((which() == Value::UINT64), |
7483 | "Must check which() before get()ing a union member." ); |
7484 | return _reader.getDataField< ::uint64_t>( |
7485 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7486 | } |
7487 | |
7488 | inline ::uint64_t Value::Builder::getUint64() { |
7489 | KJ_IREQUIRE((which() == Value::UINT64), |
7490 | "Must check which() before get()ing a union member." ); |
7491 | return _builder.getDataField< ::uint64_t>( |
7492 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7493 | } |
7494 | inline void Value::Builder::setUint64( ::uint64_t value) { |
7495 | _builder.setDataField<Value::Which>( |
7496 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT64); |
7497 | _builder.setDataField< ::uint64_t>( |
7498 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7499 | } |
7500 | |
7501 | inline bool Value::Reader::isFloat32() const { |
7502 | return which() == Value::FLOAT32; |
7503 | } |
7504 | inline bool Value::Builder::isFloat32() { |
7505 | return which() == Value::FLOAT32; |
7506 | } |
7507 | inline float Value::Reader::getFloat32() const { |
7508 | KJ_IREQUIRE((which() == Value::FLOAT32), |
7509 | "Must check which() before get()ing a union member." ); |
7510 | return _reader.getDataField<float>( |
7511 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7512 | } |
7513 | |
7514 | inline float Value::Builder::getFloat32() { |
7515 | KJ_IREQUIRE((which() == Value::FLOAT32), |
7516 | "Must check which() before get()ing a union member." ); |
7517 | return _builder.getDataField<float>( |
7518 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7519 | } |
7520 | inline void Value::Builder::setFloat32(float value) { |
7521 | _builder.setDataField<Value::Which>( |
7522 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::FLOAT32); |
7523 | _builder.setDataField<float>( |
7524 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7525 | } |
7526 | |
7527 | inline bool Value::Reader::isFloat64() const { |
7528 | return which() == Value::FLOAT64; |
7529 | } |
7530 | inline bool Value::Builder::isFloat64() { |
7531 | return which() == Value::FLOAT64; |
7532 | } |
7533 | inline double Value::Reader::getFloat64() const { |
7534 | KJ_IREQUIRE((which() == Value::FLOAT64), |
7535 | "Must check which() before get()ing a union member." ); |
7536 | return _reader.getDataField<double>( |
7537 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7538 | } |
7539 | |
7540 | inline double Value::Builder::getFloat64() { |
7541 | KJ_IREQUIRE((which() == Value::FLOAT64), |
7542 | "Must check which() before get()ing a union member." ); |
7543 | return _builder.getDataField<double>( |
7544 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7545 | } |
7546 | inline void Value::Builder::setFloat64(double value) { |
7547 | _builder.setDataField<Value::Which>( |
7548 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::FLOAT64); |
7549 | _builder.setDataField<double>( |
7550 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7551 | } |
7552 | |
7553 | inline bool Value::Reader::isText() const { |
7554 | return which() == Value::TEXT; |
7555 | } |
7556 | inline bool Value::Builder::isText() { |
7557 | return which() == Value::TEXT; |
7558 | } |
7559 | inline bool Value::Reader::hasText() const { |
7560 | if (which() != Value::TEXT) return false; |
7561 | return !_reader.getPointerField( |
7562 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7563 | } |
7564 | inline bool Value::Builder::hasText() { |
7565 | if (which() != Value::TEXT) return false; |
7566 | return !_builder.getPointerField( |
7567 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7568 | } |
7569 | inline ::capnp::Text::Reader Value::Reader::getText() const { |
7570 | KJ_IREQUIRE((which() == Value::TEXT), |
7571 | "Must check which() before get()ing a union member." ); |
7572 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
7573 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7574 | } |
7575 | inline ::capnp::Text::Builder Value::Builder::getText() { |
7576 | KJ_IREQUIRE((which() == Value::TEXT), |
7577 | "Must check which() before get()ing a union member." ); |
7578 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
7579 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7580 | } |
7581 | inline void Value::Builder::setText( ::capnp::Text::Reader value) { |
7582 | _builder.setDataField<Value::Which>( |
7583 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); |
7584 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
7585 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7586 | } |
7587 | inline ::capnp::Text::Builder Value::Builder::initText(unsigned int size) { |
7588 | _builder.setDataField<Value::Which>( |
7589 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); |
7590 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
7591 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7592 | } |
7593 | inline void Value::Builder::adoptText( |
7594 | ::capnp::Orphan< ::capnp::Text>&& value) { |
7595 | _builder.setDataField<Value::Which>( |
7596 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); |
7597 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
7598 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7599 | } |
7600 | inline ::capnp::Orphan< ::capnp::Text> Value::Builder::disownText() { |
7601 | KJ_IREQUIRE((which() == Value::TEXT), |
7602 | "Must check which() before get()ing a union member." ); |
7603 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
7604 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7605 | } |
7606 | |
7607 | inline bool Value::Reader::isData() const { |
7608 | return which() == Value::DATA; |
7609 | } |
7610 | inline bool Value::Builder::isData() { |
7611 | return which() == Value::DATA; |
7612 | } |
7613 | inline bool Value::Reader::hasData() const { |
7614 | if (which() != Value::DATA) return false; |
7615 | return !_reader.getPointerField( |
7616 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7617 | } |
7618 | inline bool Value::Builder::hasData() { |
7619 | if (which() != Value::DATA) return false; |
7620 | return !_builder.getPointerField( |
7621 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7622 | } |
7623 | inline ::capnp::Data::Reader Value::Reader::getData() const { |
7624 | KJ_IREQUIRE((which() == Value::DATA), |
7625 | "Must check which() before get()ing a union member." ); |
7626 | return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField( |
7627 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7628 | } |
7629 | inline ::capnp::Data::Builder Value::Builder::getData() { |
7630 | KJ_IREQUIRE((which() == Value::DATA), |
7631 | "Must check which() before get()ing a union member." ); |
7632 | return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField( |
7633 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7634 | } |
7635 | inline void Value::Builder::setData( ::capnp::Data::Reader value) { |
7636 | _builder.setDataField<Value::Which>( |
7637 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); |
7638 | ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField( |
7639 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7640 | } |
7641 | inline ::capnp::Data::Builder Value::Builder::initData(unsigned int size) { |
7642 | _builder.setDataField<Value::Which>( |
7643 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); |
7644 | return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField( |
7645 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7646 | } |
7647 | inline void Value::Builder::adoptData( |
7648 | ::capnp::Orphan< ::capnp::Data>&& value) { |
7649 | _builder.setDataField<Value::Which>( |
7650 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); |
7651 | ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField( |
7652 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7653 | } |
7654 | inline ::capnp::Orphan< ::capnp::Data> Value::Builder::disownData() { |
7655 | KJ_IREQUIRE((which() == Value::DATA), |
7656 | "Must check which() before get()ing a union member." ); |
7657 | return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField( |
7658 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7659 | } |
7660 | |
7661 | inline bool Value::Reader::isList() const { |
7662 | return which() == Value::LIST; |
7663 | } |
7664 | inline bool Value::Builder::isList() { |
7665 | return which() == Value::LIST; |
7666 | } |
7667 | inline bool Value::Reader::hasList() const { |
7668 | if (which() != Value::LIST) return false; |
7669 | return !_reader.getPointerField( |
7670 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7671 | } |
7672 | inline bool Value::Builder::hasList() { |
7673 | if (which() != Value::LIST) return false; |
7674 | return !_builder.getPointerField( |
7675 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7676 | } |
7677 | inline ::capnp::AnyPointer::Reader Value::Reader::getList() const { |
7678 | KJ_IREQUIRE((which() == Value::LIST), |
7679 | "Must check which() before get()ing a union member." ); |
7680 | return ::capnp::AnyPointer::Reader(_reader.getPointerField( |
7681 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7682 | } |
7683 | inline ::capnp::AnyPointer::Builder Value::Builder::getList() { |
7684 | KJ_IREQUIRE((which() == Value::LIST), |
7685 | "Must check which() before get()ing a union member." ); |
7686 | return ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7687 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7688 | } |
7689 | inline ::capnp::AnyPointer::Builder Value::Builder::initList() { |
7690 | _builder.setDataField<Value::Which>( |
7691 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::LIST); |
7692 | auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7693 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7694 | result.clear(); |
7695 | return result; |
7696 | } |
7697 | |
7698 | inline bool Value::Reader::isEnum() const { |
7699 | return which() == Value::ENUM; |
7700 | } |
7701 | inline bool Value::Builder::isEnum() { |
7702 | return which() == Value::ENUM; |
7703 | } |
7704 | inline ::uint16_t Value::Reader::getEnum() const { |
7705 | KJ_IREQUIRE((which() == Value::ENUM), |
7706 | "Must check which() before get()ing a union member." ); |
7707 | return _reader.getDataField< ::uint16_t>( |
7708 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7709 | } |
7710 | |
7711 | inline ::uint16_t Value::Builder::getEnum() { |
7712 | KJ_IREQUIRE((which() == Value::ENUM), |
7713 | "Must check which() before get()ing a union member." ); |
7714 | return _builder.getDataField< ::uint16_t>( |
7715 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7716 | } |
7717 | inline void Value::Builder::setEnum( ::uint16_t value) { |
7718 | _builder.setDataField<Value::Which>( |
7719 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::ENUM); |
7720 | _builder.setDataField< ::uint16_t>( |
7721 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7722 | } |
7723 | |
7724 | inline bool Value::Reader::isStruct() const { |
7725 | return which() == Value::STRUCT; |
7726 | } |
7727 | inline bool Value::Builder::isStruct() { |
7728 | return which() == Value::STRUCT; |
7729 | } |
7730 | inline bool Value::Reader::hasStruct() const { |
7731 | if (which() != Value::STRUCT) return false; |
7732 | return !_reader.getPointerField( |
7733 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7734 | } |
7735 | inline bool Value::Builder::hasStruct() { |
7736 | if (which() != Value::STRUCT) return false; |
7737 | return !_builder.getPointerField( |
7738 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7739 | } |
7740 | inline ::capnp::AnyPointer::Reader Value::Reader::getStruct() const { |
7741 | KJ_IREQUIRE((which() == Value::STRUCT), |
7742 | "Must check which() before get()ing a union member." ); |
7743 | return ::capnp::AnyPointer::Reader(_reader.getPointerField( |
7744 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7745 | } |
7746 | inline ::capnp::AnyPointer::Builder Value::Builder::getStruct() { |
7747 | KJ_IREQUIRE((which() == Value::STRUCT), |
7748 | "Must check which() before get()ing a union member." ); |
7749 | return ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7750 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7751 | } |
7752 | inline ::capnp::AnyPointer::Builder Value::Builder::initStruct() { |
7753 | _builder.setDataField<Value::Which>( |
7754 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::STRUCT); |
7755 | auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7756 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7757 | result.clear(); |
7758 | return result; |
7759 | } |
7760 | |
7761 | inline bool Value::Reader::isInterface() const { |
7762 | return which() == Value::INTERFACE; |
7763 | } |
7764 | inline bool Value::Builder::isInterface() { |
7765 | return which() == Value::INTERFACE; |
7766 | } |
7767 | inline ::capnp::Void Value::Reader::getInterface() const { |
7768 | KJ_IREQUIRE((which() == Value::INTERFACE), |
7769 | "Must check which() before get()ing a union member." ); |
7770 | return _reader.getDataField< ::capnp::Void>( |
7771 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7772 | } |
7773 | |
7774 | inline ::capnp::Void Value::Builder::getInterface() { |
7775 | KJ_IREQUIRE((which() == Value::INTERFACE), |
7776 | "Must check which() before get()ing a union member." ); |
7777 | return _builder.getDataField< ::capnp::Void>( |
7778 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7779 | } |
7780 | inline void Value::Builder::setInterface( ::capnp::Void value) { |
7781 | _builder.setDataField<Value::Which>( |
7782 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INTERFACE); |
7783 | _builder.setDataField< ::capnp::Void>( |
7784 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7785 | } |
7786 | |
7787 | inline bool Value::Reader::isAnyPointer() const { |
7788 | return which() == Value::ANY_POINTER; |
7789 | } |
7790 | inline bool Value::Builder::isAnyPointer() { |
7791 | return which() == Value::ANY_POINTER; |
7792 | } |
7793 | inline bool Value::Reader::hasAnyPointer() const { |
7794 | if (which() != Value::ANY_POINTER) return false; |
7795 | return !_reader.getPointerField( |
7796 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7797 | } |
7798 | inline bool Value::Builder::hasAnyPointer() { |
7799 | if (which() != Value::ANY_POINTER) return false; |
7800 | return !_builder.getPointerField( |
7801 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7802 | } |
7803 | inline ::capnp::AnyPointer::Reader Value::Reader::getAnyPointer() const { |
7804 | KJ_IREQUIRE((which() == Value::ANY_POINTER), |
7805 | "Must check which() before get()ing a union member." ); |
7806 | return ::capnp::AnyPointer::Reader(_reader.getPointerField( |
7807 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7808 | } |
7809 | inline ::capnp::AnyPointer::Builder Value::Builder::getAnyPointer() { |
7810 | KJ_IREQUIRE((which() == Value::ANY_POINTER), |
7811 | "Must check which() before get()ing a union member." ); |
7812 | return ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7813 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7814 | } |
7815 | inline ::capnp::AnyPointer::Builder Value::Builder::initAnyPointer() { |
7816 | _builder.setDataField<Value::Which>( |
7817 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::ANY_POINTER); |
7818 | auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7819 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7820 | result.clear(); |
7821 | return result; |
7822 | } |
7823 | |
7824 | inline ::uint64_t Annotation::Reader::getId() const { |
7825 | return _reader.getDataField< ::uint64_t>( |
7826 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7827 | } |
7828 | |
7829 | inline ::uint64_t Annotation::Builder::getId() { |
7830 | return _builder.getDataField< ::uint64_t>( |
7831 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7832 | } |
7833 | inline void Annotation::Builder::setId( ::uint64_t value) { |
7834 | _builder.setDataField< ::uint64_t>( |
7835 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7836 | } |
7837 | |
7838 | inline bool Annotation::Reader::hasValue() const { |
7839 | return !_reader.getPointerField( |
7840 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7841 | } |
7842 | inline bool Annotation::Builder::hasValue() { |
7843 | return !_builder.getPointerField( |
7844 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7845 | } |
7846 | inline ::capnp::schema::Value::Reader Annotation::Reader::getValue() const { |
7847 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( |
7848 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7849 | } |
7850 | inline ::capnp::schema::Value::Builder Annotation::Builder::getValue() { |
7851 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( |
7852 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7853 | } |
7854 | #if !CAPNP_LITE |
7855 | inline ::capnp::schema::Value::Pipeline Annotation::Pipeline::getValue() { |
7856 | return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(0)); |
7857 | } |
7858 | #endif // !CAPNP_LITE |
7859 | inline void Annotation::Builder::setValue( ::capnp::schema::Value::Reader value) { |
7860 | ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( |
7861 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7862 | } |
7863 | inline ::capnp::schema::Value::Builder Annotation::Builder::initValue() { |
7864 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( |
7865 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7866 | } |
7867 | inline void Annotation::Builder::adoptValue( |
7868 | ::capnp::Orphan< ::capnp::schema::Value>&& value) { |
7869 | ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( |
7870 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7871 | } |
7872 | inline ::capnp::Orphan< ::capnp::schema::Value> Annotation::Builder::disownValue() { |
7873 | return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( |
7874 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7875 | } |
7876 | |
7877 | inline bool Annotation::Reader::hasBrand() const { |
7878 | return !_reader.getPointerField( |
7879 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
7880 | } |
7881 | inline bool Annotation::Builder::hasBrand() { |
7882 | return !_builder.getPointerField( |
7883 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
7884 | } |
7885 | inline ::capnp::schema::Brand::Reader Annotation::Reader::getBrand() const { |
7886 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
7887 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7888 | } |
7889 | inline ::capnp::schema::Brand::Builder Annotation::Builder::getBrand() { |
7890 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
7891 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7892 | } |
7893 | #if !CAPNP_LITE |
7894 | inline ::capnp::schema::Brand::Pipeline Annotation::Pipeline::getBrand() { |
7895 | return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(1)); |
7896 | } |
7897 | #endif // !CAPNP_LITE |
7898 | inline void Annotation::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
7899 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
7900 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
7901 | } |
7902 | inline ::capnp::schema::Brand::Builder Annotation::Builder::initBrand() { |
7903 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
7904 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7905 | } |
7906 | inline void Annotation::Builder::adoptBrand( |
7907 | ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
7908 | ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
7909 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
7910 | } |
7911 | inline ::capnp::Orphan< ::capnp::schema::Brand> Annotation::Builder::disownBrand() { |
7912 | return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
7913 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7914 | } |
7915 | |
7916 | inline ::uint16_t CapnpVersion::Reader::getMajor() const { |
7917 | return _reader.getDataField< ::uint16_t>( |
7918 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7919 | } |
7920 | |
7921 | inline ::uint16_t CapnpVersion::Builder::getMajor() { |
7922 | return _builder.getDataField< ::uint16_t>( |
7923 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7924 | } |
7925 | inline void CapnpVersion::Builder::setMajor( ::uint16_t value) { |
7926 | _builder.setDataField< ::uint16_t>( |
7927 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7928 | } |
7929 | |
7930 | inline ::uint8_t CapnpVersion::Reader::getMinor() const { |
7931 | return _reader.getDataField< ::uint8_t>( |
7932 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
7933 | } |
7934 | |
7935 | inline ::uint8_t CapnpVersion::Builder::getMinor() { |
7936 | return _builder.getDataField< ::uint8_t>( |
7937 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
7938 | } |
7939 | inline void CapnpVersion::Builder::setMinor( ::uint8_t value) { |
7940 | _builder.setDataField< ::uint8_t>( |
7941 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
7942 | } |
7943 | |
7944 | inline ::uint8_t CapnpVersion::Reader::getMicro() const { |
7945 | return _reader.getDataField< ::uint8_t>( |
7946 | ::capnp::bounded<3>() * ::capnp::ELEMENTS); |
7947 | } |
7948 | |
7949 | inline ::uint8_t CapnpVersion::Builder::getMicro() { |
7950 | return _builder.getDataField< ::uint8_t>( |
7951 | ::capnp::bounded<3>() * ::capnp::ELEMENTS); |
7952 | } |
7953 | inline void CapnpVersion::Builder::setMicro( ::uint8_t value) { |
7954 | _builder.setDataField< ::uint8_t>( |
7955 | ::capnp::bounded<3>() * ::capnp::ELEMENTS, value); |
7956 | } |
7957 | |
7958 | inline bool CodeGeneratorRequest::Reader::hasNodes() const { |
7959 | return !_reader.getPointerField( |
7960 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7961 | } |
7962 | inline bool CodeGeneratorRequest::Builder::hasNodes() { |
7963 | return !_builder.getPointerField( |
7964 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
7965 | } |
7966 | inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::Reader::getNodes() const { |
7967 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
7968 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7969 | } |
7970 | inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::getNodes() { |
7971 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
7972 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7973 | } |
7974 | inline void CodeGeneratorRequest::Builder::setNodes( ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader value) { |
7975 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
7976 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7977 | } |
7978 | inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::initNodes(unsigned int size) { |
7979 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
7980 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7981 | } |
7982 | inline void CodeGeneratorRequest::Builder::adoptNodes( |
7983 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>&& value) { |
7984 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
7985 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7986 | } |
7987 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::Builder::disownNodes() { |
7988 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
7989 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7990 | } |
7991 | |
7992 | inline bool CodeGeneratorRequest::Reader::hasRequestedFiles() const { |
7993 | return !_reader.getPointerField( |
7994 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
7995 | } |
7996 | inline bool CodeGeneratorRequest::Builder::hasRequestedFiles() { |
7997 | return !_builder.getPointerField( |
7998 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
7999 | } |
8000 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::Reader::getRequestedFiles() const { |
8001 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
8002 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
8003 | } |
8004 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::getRequestedFiles() { |
8005 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
8006 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
8007 | } |
8008 | inline void CodeGeneratorRequest::Builder::setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader value) { |
8009 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
8010 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
8011 | } |
8012 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::initRequestedFiles(unsigned int size) { |
8013 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
8014 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
8015 | } |
8016 | inline void CodeGeneratorRequest::Builder::adoptRequestedFiles( |
8017 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>&& value) { |
8018 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
8019 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
8020 | } |
8021 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::Builder::disownRequestedFiles() { |
8022 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
8023 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
8024 | } |
8025 | |
8026 | inline bool CodeGeneratorRequest::Reader::hasCapnpVersion() const { |
8027 | return !_reader.getPointerField( |
8028 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
8029 | } |
8030 | inline bool CodeGeneratorRequest::Builder::hasCapnpVersion() { |
8031 | return !_builder.getPointerField( |
8032 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
8033 | } |
8034 | inline ::capnp::schema::CapnpVersion::Reader CodeGeneratorRequest::Reader::getCapnpVersion() const { |
8035 | return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::get(_reader.getPointerField( |
8036 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
8037 | } |
8038 | inline ::capnp::schema::CapnpVersion::Builder CodeGeneratorRequest::Builder::getCapnpVersion() { |
8039 | return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::get(_builder.getPointerField( |
8040 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
8041 | } |
8042 | #if !CAPNP_LITE |
8043 | inline ::capnp::schema::CapnpVersion::Pipeline CodeGeneratorRequest::Pipeline::getCapnpVersion() { |
8044 | return ::capnp::schema::CapnpVersion::Pipeline(_typeless.getPointerField(2)); |
8045 | } |
8046 | #endif // !CAPNP_LITE |
8047 | inline void CodeGeneratorRequest::Builder::setCapnpVersion( ::capnp::schema::CapnpVersion::Reader value) { |
8048 | ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::set(_builder.getPointerField( |
8049 | ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
8050 | } |
8051 | inline ::capnp::schema::CapnpVersion::Builder CodeGeneratorRequest::Builder::initCapnpVersion() { |
8052 | return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::init(_builder.getPointerField( |
8053 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
8054 | } |
8055 | inline void CodeGeneratorRequest::Builder::adoptCapnpVersion( |
8056 | ::capnp::Orphan< ::capnp::schema::CapnpVersion>&& value) { |
8057 | ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::adopt(_builder.getPointerField( |
8058 | ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
8059 | } |
8060 | inline ::capnp::Orphan< ::capnp::schema::CapnpVersion> CodeGeneratorRequest::Builder::disownCapnpVersion() { |
8061 | return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::disown(_builder.getPointerField( |
8062 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
8063 | } |
8064 | |
8065 | inline bool CodeGeneratorRequest::Reader::hasSourceInfo() const { |
8066 | return !_reader.getPointerField( |
8067 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
8068 | } |
8069 | inline bool CodeGeneratorRequest::Builder::hasSourceInfo() { |
8070 | return !_builder.getPointerField( |
8071 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
8072 | } |
8073 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::Reader::getSourceInfo() const { |
8074 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
8075 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
8076 | } |
8077 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::getSourceInfo() { |
8078 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
8079 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
8080 | } |
8081 | inline void CodeGeneratorRequest::Builder::setSourceInfo( ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader value) { |
8082 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
8083 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
8084 | } |
8085 | inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::initSourceInfo(unsigned int size) { |
8086 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
8087 | ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
8088 | } |
8089 | inline void CodeGeneratorRequest::Builder::adoptSourceInfo( |
8090 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>&& value) { |
8091 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
8092 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
8093 | } |
8094 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::Builder::disownSourceInfo() { |
8095 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
8096 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
8097 | } |
8098 | |
8099 | inline ::uint64_t CodeGeneratorRequest::RequestedFile::Reader::getId() const { |
8100 | return _reader.getDataField< ::uint64_t>( |
8101 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
8102 | } |
8103 | |
8104 | inline ::uint64_t CodeGeneratorRequest::RequestedFile::Builder::getId() { |
8105 | return _builder.getDataField< ::uint64_t>( |
8106 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
8107 | } |
8108 | inline void CodeGeneratorRequest::RequestedFile::Builder::setId( ::uint64_t value) { |
8109 | _builder.setDataField< ::uint64_t>( |
8110 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
8111 | } |
8112 | |
8113 | inline bool CodeGeneratorRequest::RequestedFile::Reader::hasFilename() const { |
8114 | return !_reader.getPointerField( |
8115 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
8116 | } |
8117 | inline bool CodeGeneratorRequest::RequestedFile::Builder::hasFilename() { |
8118 | return !_builder.getPointerField( |
8119 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
8120 | } |
8121 | inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Reader::getFilename() const { |
8122 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
8123 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
8124 | } |
8125 | inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::getFilename() { |
8126 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
8127 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
8128 | } |
8129 | inline void CodeGeneratorRequest::RequestedFile::Builder::setFilename( ::capnp::Text::Reader value) { |
8130 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
8131 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
8132 | } |
8133 | inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::initFilename(unsigned int size) { |
8134 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
8135 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
8136 | } |
8137 | inline void CodeGeneratorRequest::RequestedFile::Builder::adoptFilename( |
8138 | ::capnp::Orphan< ::capnp::Text>&& value) { |
8139 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
8140 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
8141 | } |
8142 | inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Builder::disownFilename() { |
8143 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
8144 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
8145 | } |
8146 | |
8147 | inline bool CodeGeneratorRequest::RequestedFile::Reader::hasImports() const { |
8148 | return !_reader.getPointerField( |
8149 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
8150 | } |
8151 | inline bool CodeGeneratorRequest::RequestedFile::Builder::hasImports() { |
8152 | return !_builder.getPointerField( |
8153 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
8154 | } |
8155 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::RequestedFile::Reader::getImports() const { |
8156 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
8157 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
8158 | } |
8159 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::RequestedFile::Builder::getImports() { |
8160 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
8161 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
8162 | } |
8163 | inline void CodeGeneratorRequest::RequestedFile::Builder::setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader value) { |
8164 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
8165 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
8166 | } |
8167 | inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::RequestedFile::Builder::initImports(unsigned int size) { |
8168 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
8169 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
8170 | } |
8171 | inline void CodeGeneratorRequest::RequestedFile::Builder::adoptImports( |
8172 | ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>&& value) { |
8173 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
8174 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
8175 | } |
8176 | inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::RequestedFile::Builder::disownImports() { |
8177 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
8178 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
8179 | } |
8180 | |
8181 | inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Reader::getId() const { |
8182 | return _reader.getDataField< ::uint64_t>( |
8183 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
8184 | } |
8185 | |
8186 | inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Builder::getId() { |
8187 | return _builder.getDataField< ::uint64_t>( |
8188 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
8189 | } |
8190 | inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setId( ::uint64_t value) { |
8191 | _builder.setDataField< ::uint64_t>( |
8192 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
8193 | } |
8194 | |
8195 | inline bool CodeGeneratorRequest::RequestedFile::Import::Reader::hasName() const { |
8196 | return !_reader.getPointerField( |
8197 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
8198 | } |
8199 | inline bool CodeGeneratorRequest::RequestedFile::Import::Builder::hasName() { |
8200 | return !_builder.getPointerField( |
8201 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
8202 | } |
8203 | inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Import::Reader::getName() const { |
8204 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
8205 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
8206 | } |
8207 | inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::getName() { |
8208 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
8209 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
8210 | } |
8211 | inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setName( ::capnp::Text::Reader value) { |
8212 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
8213 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
8214 | } |
8215 | inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::initName(unsigned int size) { |
8216 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
8217 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
8218 | } |
8219 | inline void CodeGeneratorRequest::RequestedFile::Import::Builder::adoptName( |
8220 | ::capnp::Orphan< ::capnp::Text>&& value) { |
8221 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
8222 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
8223 | } |
8224 | inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Import::Builder::disownName() { |
8225 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
8226 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
8227 | } |
8228 | |
8229 | } // namespace |
8230 | } // namespace |
8231 | |
8232 | |