Mercurial > hg > sv-dependency-builds
comparison win32-mingw/include/capnp/schema.capnp.h @ 64:eccd51b72864
Update Win32 capnp builds to v0.6
author | Chris Cannam |
---|---|
date | Tue, 23 May 2017 09:16:54 +0100 |
parents | 37d53a7e8262 |
children |
comparison
equal
deleted
inserted
replaced
63:0f2d93caa50c | 64:eccd51b72864 |
---|---|
54 EIGHT_BYTES, | 54 EIGHT_BYTES, |
55 POINTER, | 55 POINTER, |
56 INLINE_COMPOSITE, | 56 INLINE_COMPOSITE, |
57 }; | 57 }; |
58 CAPNP_DECLARE_ENUM(ElementSize, d1958f7dba521926); | 58 CAPNP_DECLARE_ENUM(ElementSize, d1958f7dba521926); |
59 CAPNP_DECLARE_SCHEMA(d85d305b7d839963); | |
59 CAPNP_DECLARE_SCHEMA(bfc546f6210ad7ce); | 60 CAPNP_DECLARE_SCHEMA(bfc546f6210ad7ce); |
60 CAPNP_DECLARE_SCHEMA(cfea0eb02e810062); | 61 CAPNP_DECLARE_SCHEMA(cfea0eb02e810062); |
61 CAPNP_DECLARE_SCHEMA(ae504193122357e5); | 62 CAPNP_DECLARE_SCHEMA(ae504193122357e5); |
62 | 63 |
63 } // namespace schemas | 64 } // namespace schemas |
89 struct Annotation; | 90 struct Annotation; |
90 | 91 |
91 struct _capnpPrivate { | 92 struct _capnpPrivate { |
92 CAPNP_DECLARE_STRUCT_HEADER(e682ab4cf923a417, 5, 6) | 93 CAPNP_DECLARE_STRUCT_HEADER(e682ab4cf923a417, 5, 6) |
93 #if !CAPNP_LITE | 94 #if !CAPNP_LITE |
94 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 95 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
95 #endif // !CAPNP_LITE | 96 #endif // !CAPNP_LITE |
96 }; | 97 }; |
97 }; | 98 }; |
98 | 99 |
99 struct Node::Parameter { | 100 struct Node::Parameter { |
104 class Pipeline; | 105 class Pipeline; |
105 | 106 |
106 struct _capnpPrivate { | 107 struct _capnpPrivate { |
107 CAPNP_DECLARE_STRUCT_HEADER(b9521bccf10fa3b1, 0, 1) | 108 CAPNP_DECLARE_STRUCT_HEADER(b9521bccf10fa3b1, 0, 1) |
108 #if !CAPNP_LITE | 109 #if !CAPNP_LITE |
109 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 110 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
110 #endif // !CAPNP_LITE | 111 #endif // !CAPNP_LITE |
111 }; | 112 }; |
112 }; | 113 }; |
113 | 114 |
114 struct Node::NestedNode { | 115 struct Node::NestedNode { |
119 class Pipeline; | 120 class Pipeline; |
120 | 121 |
121 struct _capnpPrivate { | 122 struct _capnpPrivate { |
122 CAPNP_DECLARE_STRUCT_HEADER(debf55bbfa0fc242, 1, 1) | 123 CAPNP_DECLARE_STRUCT_HEADER(debf55bbfa0fc242, 1, 1) |
123 #if !CAPNP_LITE | 124 #if !CAPNP_LITE |
124 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 125 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
125 #endif // !CAPNP_LITE | 126 #endif // !CAPNP_LITE |
126 }; | 127 }; |
127 }; | 128 }; |
128 | 129 |
129 struct Node::Struct { | 130 struct Node::Struct { |
134 class Pipeline; | 135 class Pipeline; |
135 | 136 |
136 struct _capnpPrivate { | 137 struct _capnpPrivate { |
137 CAPNP_DECLARE_STRUCT_HEADER(9ea0b19b37fb4435, 5, 6) | 138 CAPNP_DECLARE_STRUCT_HEADER(9ea0b19b37fb4435, 5, 6) |
138 #if !CAPNP_LITE | 139 #if !CAPNP_LITE |
139 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 140 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
140 #endif // !CAPNP_LITE | 141 #endif // !CAPNP_LITE |
141 }; | 142 }; |
142 }; | 143 }; |
143 | 144 |
144 struct Node::Enum { | 145 struct Node::Enum { |
149 class Pipeline; | 150 class Pipeline; |
150 | 151 |
151 struct _capnpPrivate { | 152 struct _capnpPrivate { |
152 CAPNP_DECLARE_STRUCT_HEADER(b54ab3364333f598, 5, 6) | 153 CAPNP_DECLARE_STRUCT_HEADER(b54ab3364333f598, 5, 6) |
153 #if !CAPNP_LITE | 154 #if !CAPNP_LITE |
154 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 155 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
155 #endif // !CAPNP_LITE | 156 #endif // !CAPNP_LITE |
156 }; | 157 }; |
157 }; | 158 }; |
158 | 159 |
159 struct Node::Interface { | 160 struct Node::Interface { |
164 class Pipeline; | 165 class Pipeline; |
165 | 166 |
166 struct _capnpPrivate { | 167 struct _capnpPrivate { |
167 CAPNP_DECLARE_STRUCT_HEADER(e82753cff0c2218f, 5, 6) | 168 CAPNP_DECLARE_STRUCT_HEADER(e82753cff0c2218f, 5, 6) |
168 #if !CAPNP_LITE | 169 #if !CAPNP_LITE |
169 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 170 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
170 #endif // !CAPNP_LITE | 171 #endif // !CAPNP_LITE |
171 }; | 172 }; |
172 }; | 173 }; |
173 | 174 |
174 struct Node::Const { | 175 struct Node::Const { |
179 class Pipeline; | 180 class Pipeline; |
180 | 181 |
181 struct _capnpPrivate { | 182 struct _capnpPrivate { |
182 CAPNP_DECLARE_STRUCT_HEADER(b18aa5ac7a0d9420, 5, 6) | 183 CAPNP_DECLARE_STRUCT_HEADER(b18aa5ac7a0d9420, 5, 6) |
183 #if !CAPNP_LITE | 184 #if !CAPNP_LITE |
184 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 185 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
185 #endif // !CAPNP_LITE | 186 #endif // !CAPNP_LITE |
186 }; | 187 }; |
187 }; | 188 }; |
188 | 189 |
189 struct Node::Annotation { | 190 struct Node::Annotation { |
194 class Pipeline; | 195 class Pipeline; |
195 | 196 |
196 struct _capnpPrivate { | 197 struct _capnpPrivate { |
197 CAPNP_DECLARE_STRUCT_HEADER(ec1619d4400a0290, 5, 6) | 198 CAPNP_DECLARE_STRUCT_HEADER(ec1619d4400a0290, 5, 6) |
198 #if !CAPNP_LITE | 199 #if !CAPNP_LITE |
199 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 200 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
200 #endif // !CAPNP_LITE | 201 #endif // !CAPNP_LITE |
201 }; | 202 }; |
202 }; | 203 }; |
203 | 204 |
204 struct Field { | 205 struct Field { |
217 struct Ordinal; | 218 struct Ordinal; |
218 | 219 |
219 struct _capnpPrivate { | 220 struct _capnpPrivate { |
220 CAPNP_DECLARE_STRUCT_HEADER(9aad50a41f4af45f, 3, 4) | 221 CAPNP_DECLARE_STRUCT_HEADER(9aad50a41f4af45f, 3, 4) |
221 #if !CAPNP_LITE | 222 #if !CAPNP_LITE |
222 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 223 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
223 #endif // !CAPNP_LITE | 224 #endif // !CAPNP_LITE |
224 }; | 225 }; |
225 }; | 226 }; |
226 | 227 |
227 struct Field::Slot { | 228 struct Field::Slot { |
232 class Pipeline; | 233 class Pipeline; |
233 | 234 |
234 struct _capnpPrivate { | 235 struct _capnpPrivate { |
235 CAPNP_DECLARE_STRUCT_HEADER(c42305476bb4746f, 3, 4) | 236 CAPNP_DECLARE_STRUCT_HEADER(c42305476bb4746f, 3, 4) |
236 #if !CAPNP_LITE | 237 #if !CAPNP_LITE |
237 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 238 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
238 #endif // !CAPNP_LITE | 239 #endif // !CAPNP_LITE |
239 }; | 240 }; |
240 }; | 241 }; |
241 | 242 |
242 struct Field::Group { | 243 struct Field::Group { |
247 class Pipeline; | 248 class Pipeline; |
248 | 249 |
249 struct _capnpPrivate { | 250 struct _capnpPrivate { |
250 CAPNP_DECLARE_STRUCT_HEADER(cafccddb68db1d11, 3, 4) | 251 CAPNP_DECLARE_STRUCT_HEADER(cafccddb68db1d11, 3, 4) |
251 #if !CAPNP_LITE | 252 #if !CAPNP_LITE |
252 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 253 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
253 #endif // !CAPNP_LITE | 254 #endif // !CAPNP_LITE |
254 }; | 255 }; |
255 }; | 256 }; |
256 | 257 |
257 struct Field::Ordinal { | 258 struct Field::Ordinal { |
266 }; | 267 }; |
267 | 268 |
268 struct _capnpPrivate { | 269 struct _capnpPrivate { |
269 CAPNP_DECLARE_STRUCT_HEADER(bb90d5c287870be6, 3, 4) | 270 CAPNP_DECLARE_STRUCT_HEADER(bb90d5c287870be6, 3, 4) |
270 #if !CAPNP_LITE | 271 #if !CAPNP_LITE |
271 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 272 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
272 #endif // !CAPNP_LITE | 273 #endif // !CAPNP_LITE |
273 }; | 274 }; |
274 }; | 275 }; |
275 | 276 |
276 struct Enumerant { | 277 struct Enumerant { |
281 class Pipeline; | 282 class Pipeline; |
282 | 283 |
283 struct _capnpPrivate { | 284 struct _capnpPrivate { |
284 CAPNP_DECLARE_STRUCT_HEADER(978a7cebdc549a4d, 1, 2) | 285 CAPNP_DECLARE_STRUCT_HEADER(978a7cebdc549a4d, 1, 2) |
285 #if !CAPNP_LITE | 286 #if !CAPNP_LITE |
286 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 287 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
287 #endif // !CAPNP_LITE | 288 #endif // !CAPNP_LITE |
288 }; | 289 }; |
289 }; | 290 }; |
290 | 291 |
291 struct Superclass { | 292 struct Superclass { |
296 class Pipeline; | 297 class Pipeline; |
297 | 298 |
298 struct _capnpPrivate { | 299 struct _capnpPrivate { |
299 CAPNP_DECLARE_STRUCT_HEADER(a9962a9ed0a4d7f8, 1, 1) | 300 CAPNP_DECLARE_STRUCT_HEADER(a9962a9ed0a4d7f8, 1, 1) |
300 #if !CAPNP_LITE | 301 #if !CAPNP_LITE |
301 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 302 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
302 #endif // !CAPNP_LITE | 303 #endif // !CAPNP_LITE |
303 }; | 304 }; |
304 }; | 305 }; |
305 | 306 |
306 struct Method { | 307 struct Method { |
311 class Pipeline; | 312 class Pipeline; |
312 | 313 |
313 struct _capnpPrivate { | 314 struct _capnpPrivate { |
314 CAPNP_DECLARE_STRUCT_HEADER(9500cce23b334d80, 3, 5) | 315 CAPNP_DECLARE_STRUCT_HEADER(9500cce23b334d80, 3, 5) |
315 #if !CAPNP_LITE | 316 #if !CAPNP_LITE |
316 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 317 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
317 #endif // !CAPNP_LITE | 318 #endif // !CAPNP_LITE |
318 }; | 319 }; |
319 }; | 320 }; |
320 | 321 |
321 struct Type { | 322 struct Type { |
352 struct AnyPointer; | 353 struct AnyPointer; |
353 | 354 |
354 struct _capnpPrivate { | 355 struct _capnpPrivate { |
355 CAPNP_DECLARE_STRUCT_HEADER(d07378ede1f9cc60, 3, 1) | 356 CAPNP_DECLARE_STRUCT_HEADER(d07378ede1f9cc60, 3, 1) |
356 #if !CAPNP_LITE | 357 #if !CAPNP_LITE |
357 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 358 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
358 #endif // !CAPNP_LITE | 359 #endif // !CAPNP_LITE |
359 }; | 360 }; |
360 }; | 361 }; |
361 | 362 |
362 struct Type::List { | 363 struct Type::List { |
367 class Pipeline; | 368 class Pipeline; |
368 | 369 |
369 struct _capnpPrivate { | 370 struct _capnpPrivate { |
370 CAPNP_DECLARE_STRUCT_HEADER(87e739250a60ea97, 3, 1) | 371 CAPNP_DECLARE_STRUCT_HEADER(87e739250a60ea97, 3, 1) |
371 #if !CAPNP_LITE | 372 #if !CAPNP_LITE |
372 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 373 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
373 #endif // !CAPNP_LITE | 374 #endif // !CAPNP_LITE |
374 }; | 375 }; |
375 }; | 376 }; |
376 | 377 |
377 struct Type::Enum { | 378 struct Type::Enum { |
382 class Pipeline; | 383 class Pipeline; |
383 | 384 |
384 struct _capnpPrivate { | 385 struct _capnpPrivate { |
385 CAPNP_DECLARE_STRUCT_HEADER(9e0e78711a7f87a9, 3, 1) | 386 CAPNP_DECLARE_STRUCT_HEADER(9e0e78711a7f87a9, 3, 1) |
386 #if !CAPNP_LITE | 387 #if !CAPNP_LITE |
387 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 388 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
388 #endif // !CAPNP_LITE | 389 #endif // !CAPNP_LITE |
389 }; | 390 }; |
390 }; | 391 }; |
391 | 392 |
392 struct Type::Struct { | 393 struct Type::Struct { |
397 class Pipeline; | 398 class Pipeline; |
398 | 399 |
399 struct _capnpPrivate { | 400 struct _capnpPrivate { |
400 CAPNP_DECLARE_STRUCT_HEADER(ac3a6f60ef4cc6d3, 3, 1) | 401 CAPNP_DECLARE_STRUCT_HEADER(ac3a6f60ef4cc6d3, 3, 1) |
401 #if !CAPNP_LITE | 402 #if !CAPNP_LITE |
402 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 403 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
403 #endif // !CAPNP_LITE | 404 #endif // !CAPNP_LITE |
404 }; | 405 }; |
405 }; | 406 }; |
406 | 407 |
407 struct Type::Interface { | 408 struct Type::Interface { |
412 class Pipeline; | 413 class Pipeline; |
413 | 414 |
414 struct _capnpPrivate { | 415 struct _capnpPrivate { |
415 CAPNP_DECLARE_STRUCT_HEADER(ed8bca69f7fb0cbf, 3, 1) | 416 CAPNP_DECLARE_STRUCT_HEADER(ed8bca69f7fb0cbf, 3, 1) |
416 #if !CAPNP_LITE | 417 #if !CAPNP_LITE |
417 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 418 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
418 #endif // !CAPNP_LITE | 419 #endif // !CAPNP_LITE |
419 }; | 420 }; |
420 }; | 421 }; |
421 | 422 |
422 struct Type::AnyPointer { | 423 struct Type::AnyPointer { |
435 struct ImplicitMethodParameter; | 436 struct ImplicitMethodParameter; |
436 | 437 |
437 struct _capnpPrivate { | 438 struct _capnpPrivate { |
438 CAPNP_DECLARE_STRUCT_HEADER(c2573fe8a23e49f1, 3, 1) | 439 CAPNP_DECLARE_STRUCT_HEADER(c2573fe8a23e49f1, 3, 1) |
439 #if !CAPNP_LITE | 440 #if !CAPNP_LITE |
440 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 441 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
441 #endif // !CAPNP_LITE | 442 #endif // !CAPNP_LITE |
442 }; | 443 }; |
443 }; | 444 }; |
444 | 445 |
445 struct Type::AnyPointer::Unconstrained { | 446 struct Type::AnyPointer::Unconstrained { |
456 }; | 457 }; |
457 | 458 |
458 struct _capnpPrivate { | 459 struct _capnpPrivate { |
459 CAPNP_DECLARE_STRUCT_HEADER(8e3b5f79fe593656, 3, 1) | 460 CAPNP_DECLARE_STRUCT_HEADER(8e3b5f79fe593656, 3, 1) |
460 #if !CAPNP_LITE | 461 #if !CAPNP_LITE |
461 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 462 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
462 #endif // !CAPNP_LITE | 463 #endif // !CAPNP_LITE |
463 }; | 464 }; |
464 }; | 465 }; |
465 | 466 |
466 struct Type::AnyPointer::Parameter { | 467 struct Type::AnyPointer::Parameter { |
471 class Pipeline; | 472 class Pipeline; |
472 | 473 |
473 struct _capnpPrivate { | 474 struct _capnpPrivate { |
474 CAPNP_DECLARE_STRUCT_HEADER(9dd1f724f4614a85, 3, 1) | 475 CAPNP_DECLARE_STRUCT_HEADER(9dd1f724f4614a85, 3, 1) |
475 #if !CAPNP_LITE | 476 #if !CAPNP_LITE |
476 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 477 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
477 #endif // !CAPNP_LITE | 478 #endif // !CAPNP_LITE |
478 }; | 479 }; |
479 }; | 480 }; |
480 | 481 |
481 struct Type::AnyPointer::ImplicitMethodParameter { | 482 struct Type::AnyPointer::ImplicitMethodParameter { |
486 class Pipeline; | 487 class Pipeline; |
487 | 488 |
488 struct _capnpPrivate { | 489 struct _capnpPrivate { |
489 CAPNP_DECLARE_STRUCT_HEADER(baefc9120c56e274, 3, 1) | 490 CAPNP_DECLARE_STRUCT_HEADER(baefc9120c56e274, 3, 1) |
490 #if !CAPNP_LITE | 491 #if !CAPNP_LITE |
491 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 492 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
492 #endif // !CAPNP_LITE | 493 #endif // !CAPNP_LITE |
493 }; | 494 }; |
494 }; | 495 }; |
495 | 496 |
496 struct Brand { | 497 struct Brand { |
503 struct Binding; | 504 struct Binding; |
504 | 505 |
505 struct _capnpPrivate { | 506 struct _capnpPrivate { |
506 CAPNP_DECLARE_STRUCT_HEADER(903455f06065422b, 0, 1) | 507 CAPNP_DECLARE_STRUCT_HEADER(903455f06065422b, 0, 1) |
507 #if !CAPNP_LITE | 508 #if !CAPNP_LITE |
508 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 509 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
509 #endif // !CAPNP_LITE | 510 #endif // !CAPNP_LITE |
510 }; | 511 }; |
511 }; | 512 }; |
512 | 513 |
513 struct Brand::Scope { | 514 struct Brand::Scope { |
522 }; | 523 }; |
523 | 524 |
524 struct _capnpPrivate { | 525 struct _capnpPrivate { |
525 CAPNP_DECLARE_STRUCT_HEADER(abd73485a9636bc9, 2, 1) | 526 CAPNP_DECLARE_STRUCT_HEADER(abd73485a9636bc9, 2, 1) |
526 #if !CAPNP_LITE | 527 #if !CAPNP_LITE |
527 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 528 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
528 #endif // !CAPNP_LITE | 529 #endif // !CAPNP_LITE |
529 }; | 530 }; |
530 }; | 531 }; |
531 | 532 |
532 struct Brand::Binding { | 533 struct Brand::Binding { |
541 }; | 542 }; |
542 | 543 |
543 struct _capnpPrivate { | 544 struct _capnpPrivate { |
544 CAPNP_DECLARE_STRUCT_HEADER(c863cd16969ee7fc, 1, 1) | 545 CAPNP_DECLARE_STRUCT_HEADER(c863cd16969ee7fc, 1, 1) |
545 #if !CAPNP_LITE | 546 #if !CAPNP_LITE |
546 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 547 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
547 #endif // !CAPNP_LITE | 548 #endif // !CAPNP_LITE |
548 }; | 549 }; |
549 }; | 550 }; |
550 | 551 |
551 struct Value { | 552 struct Value { |
577 }; | 578 }; |
578 | 579 |
579 struct _capnpPrivate { | 580 struct _capnpPrivate { |
580 CAPNP_DECLARE_STRUCT_HEADER(ce23dcd2d7b00c9b, 2, 1) | 581 CAPNP_DECLARE_STRUCT_HEADER(ce23dcd2d7b00c9b, 2, 1) |
581 #if !CAPNP_LITE | 582 #if !CAPNP_LITE |
582 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 583 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
583 #endif // !CAPNP_LITE | 584 #endif // !CAPNP_LITE |
584 }; | 585 }; |
585 }; | 586 }; |
586 | 587 |
587 struct Annotation { | 588 struct Annotation { |
592 class Pipeline; | 593 class Pipeline; |
593 | 594 |
594 struct _capnpPrivate { | 595 struct _capnpPrivate { |
595 CAPNP_DECLARE_STRUCT_HEADER(f1c8950dab257542, 1, 2) | 596 CAPNP_DECLARE_STRUCT_HEADER(f1c8950dab257542, 1, 2) |
596 #if !CAPNP_LITE | 597 #if !CAPNP_LITE |
597 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 598 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
598 #endif // !CAPNP_LITE | 599 #endif // !CAPNP_LITE |
599 }; | 600 }; |
600 }; | 601 }; |
601 | 602 |
602 typedef ::capnp::schemas::ElementSize_d1958f7dba521926 ElementSize; | 603 typedef ::capnp::schemas::ElementSize_d1958f7dba521926 ElementSize; |
604 | |
605 struct CapnpVersion { | |
606 CapnpVersion() = delete; | |
607 | |
608 class Reader; | |
609 class Builder; | |
610 class Pipeline; | |
611 | |
612 struct _capnpPrivate { | |
613 CAPNP_DECLARE_STRUCT_HEADER(d85d305b7d839963, 1, 0) | |
614 #if !CAPNP_LITE | |
615 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } | |
616 #endif // !CAPNP_LITE | |
617 }; | |
618 }; | |
603 | 619 |
604 struct CodeGeneratorRequest { | 620 struct CodeGeneratorRequest { |
605 CodeGeneratorRequest() = delete; | 621 CodeGeneratorRequest() = delete; |
606 | 622 |
607 class Reader; | 623 class Reader; |
608 class Builder; | 624 class Builder; |
609 class Pipeline; | 625 class Pipeline; |
610 struct RequestedFile; | 626 struct RequestedFile; |
611 | 627 |
612 struct _capnpPrivate { | 628 struct _capnpPrivate { |
613 CAPNP_DECLARE_STRUCT_HEADER(bfc546f6210ad7ce, 0, 2) | 629 CAPNP_DECLARE_STRUCT_HEADER(bfc546f6210ad7ce, 0, 3) |
614 #if !CAPNP_LITE | 630 #if !CAPNP_LITE |
615 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 631 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
616 #endif // !CAPNP_LITE | 632 #endif // !CAPNP_LITE |
617 }; | 633 }; |
618 }; | 634 }; |
619 | 635 |
620 struct CodeGeneratorRequest::RequestedFile { | 636 struct CodeGeneratorRequest::RequestedFile { |
626 struct Import; | 642 struct Import; |
627 | 643 |
628 struct _capnpPrivate { | 644 struct _capnpPrivate { |
629 CAPNP_DECLARE_STRUCT_HEADER(cfea0eb02e810062, 1, 2) | 645 CAPNP_DECLARE_STRUCT_HEADER(cfea0eb02e810062, 1, 2) |
630 #if !CAPNP_LITE | 646 #if !CAPNP_LITE |
631 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 647 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
632 #endif // !CAPNP_LITE | 648 #endif // !CAPNP_LITE |
633 }; | 649 }; |
634 }; | 650 }; |
635 | 651 |
636 struct CodeGeneratorRequest::RequestedFile::Import { | 652 struct CodeGeneratorRequest::RequestedFile::Import { |
641 class Pipeline; | 657 class Pipeline; |
642 | 658 |
643 struct _capnpPrivate { | 659 struct _capnpPrivate { |
644 CAPNP_DECLARE_STRUCT_HEADER(ae504193122357e5, 1, 1) | 660 CAPNP_DECLARE_STRUCT_HEADER(ae504193122357e5, 1, 1) |
645 #if !CAPNP_LITE | 661 #if !CAPNP_LITE |
646 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 662 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
647 #endif // !CAPNP_LITE | 663 #endif // !CAPNP_LITE |
648 }; | 664 }; |
649 }; | 665 }; |
650 | 666 |
651 // ======================================================================================= | 667 // ======================================================================================= |
661 return _reader.totalSize().asPublic(); | 677 return _reader.totalSize().asPublic(); |
662 } | 678 } |
663 | 679 |
664 #if !CAPNP_LITE | 680 #if !CAPNP_LITE |
665 inline ::kj::StringTree toString() const { | 681 inline ::kj::StringTree toString() const { |
666 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 682 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
667 } | 683 } |
668 #endif // !CAPNP_LITE | 684 #endif // !CAPNP_LITE |
669 | 685 |
670 inline Which which() const; | 686 inline Which which() const; |
671 inline ::uint64_t getId() const; | 687 inline ::uint64_t getId() const; |
836 return _reader.totalSize().asPublic(); | 852 return _reader.totalSize().asPublic(); |
837 } | 853 } |
838 | 854 |
839 #if !CAPNP_LITE | 855 #if !CAPNP_LITE |
840 inline ::kj::StringTree toString() const { | 856 inline ::kj::StringTree toString() const { |
841 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 857 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
842 } | 858 } |
843 #endif // !CAPNP_LITE | 859 #endif // !CAPNP_LITE |
844 | 860 |
845 inline bool hasName() const; | 861 inline bool hasName() const; |
846 inline ::capnp::Text::Reader getName() const; | 862 inline ::capnp::Text::Reader getName() const; |
917 return _reader.totalSize().asPublic(); | 933 return _reader.totalSize().asPublic(); |
918 } | 934 } |
919 | 935 |
920 #if !CAPNP_LITE | 936 #if !CAPNP_LITE |
921 inline ::kj::StringTree toString() const { | 937 inline ::kj::StringTree toString() const { |
922 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 938 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
923 } | 939 } |
924 #endif // !CAPNP_LITE | 940 #endif // !CAPNP_LITE |
925 | 941 |
926 inline bool hasName() const; | 942 inline bool hasName() const; |
927 inline ::capnp::Text::Reader getName() const; | 943 inline ::capnp::Text::Reader getName() const; |
1003 return _reader.totalSize().asPublic(); | 1019 return _reader.totalSize().asPublic(); |
1004 } | 1020 } |
1005 | 1021 |
1006 #if !CAPNP_LITE | 1022 #if !CAPNP_LITE |
1007 inline ::kj::StringTree toString() const { | 1023 inline ::kj::StringTree toString() const { |
1008 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1024 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1009 } | 1025 } |
1010 #endif // !CAPNP_LITE | 1026 #endif // !CAPNP_LITE |
1011 | 1027 |
1012 inline ::uint16_t getDataWordCount() const; | 1028 inline ::uint16_t getDataWordCount() const; |
1013 | 1029 |
1114 return _reader.totalSize().asPublic(); | 1130 return _reader.totalSize().asPublic(); |
1115 } | 1131 } |
1116 | 1132 |
1117 #if !CAPNP_LITE | 1133 #if !CAPNP_LITE |
1118 inline ::kj::StringTree toString() const { | 1134 inline ::kj::StringTree toString() const { |
1119 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1135 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1120 } | 1136 } |
1121 #endif // !CAPNP_LITE | 1137 #endif // !CAPNP_LITE |
1122 | 1138 |
1123 inline bool hasEnumerants() const; | 1139 inline bool hasEnumerants() const; |
1124 inline ::capnp::List< ::capnp::schema::Enumerant>::Reader getEnumerants() const; | 1140 inline ::capnp::List< ::capnp::schema::Enumerant>::Reader getEnumerants() const; |
1195 return _reader.totalSize().asPublic(); | 1211 return _reader.totalSize().asPublic(); |
1196 } | 1212 } |
1197 | 1213 |
1198 #if !CAPNP_LITE | 1214 #if !CAPNP_LITE |
1199 inline ::kj::StringTree toString() const { | 1215 inline ::kj::StringTree toString() const { |
1200 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1216 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1201 } | 1217 } |
1202 #endif // !CAPNP_LITE | 1218 #endif // !CAPNP_LITE |
1203 | 1219 |
1204 inline bool hasMethods() const; | 1220 inline bool hasMethods() const; |
1205 inline ::capnp::List< ::capnp::schema::Method>::Reader getMethods() const; | 1221 inline ::capnp::List< ::capnp::schema::Method>::Reader getMethods() const; |
1286 return _reader.totalSize().asPublic(); | 1302 return _reader.totalSize().asPublic(); |
1287 } | 1303 } |
1288 | 1304 |
1289 #if !CAPNP_LITE | 1305 #if !CAPNP_LITE |
1290 inline ::kj::StringTree toString() const { | 1306 inline ::kj::StringTree toString() const { |
1291 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1307 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1292 } | 1308 } |
1293 #endif // !CAPNP_LITE | 1309 #endif // !CAPNP_LITE |
1294 | 1310 |
1295 inline bool hasType() const; | 1311 inline bool hasType() const; |
1296 inline ::capnp::schema::Type::Reader getType() const; | 1312 inline ::capnp::schema::Type::Reader getType() const; |
1379 return _reader.totalSize().asPublic(); | 1395 return _reader.totalSize().asPublic(); |
1380 } | 1396 } |
1381 | 1397 |
1382 #if !CAPNP_LITE | 1398 #if !CAPNP_LITE |
1383 inline ::kj::StringTree toString() const { | 1399 inline ::kj::StringTree toString() const { |
1384 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1400 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1385 } | 1401 } |
1386 #endif // !CAPNP_LITE | 1402 #endif // !CAPNP_LITE |
1387 | 1403 |
1388 inline bool hasType() const; | 1404 inline bool hasType() const; |
1389 inline ::capnp::schema::Type::Reader getType() const; | 1405 inline ::capnp::schema::Type::Reader getType() const; |
1521 return _reader.totalSize().asPublic(); | 1537 return _reader.totalSize().asPublic(); |
1522 } | 1538 } |
1523 | 1539 |
1524 #if !CAPNP_LITE | 1540 #if !CAPNP_LITE |
1525 inline ::kj::StringTree toString() const { | 1541 inline ::kj::StringTree toString() const { |
1526 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1542 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1527 } | 1543 } |
1528 #endif // !CAPNP_LITE | 1544 #endif // !CAPNP_LITE |
1529 | 1545 |
1530 inline Which which() const; | 1546 inline Which which() const; |
1531 inline bool hasName() const; | 1547 inline bool hasName() const; |
1644 return _reader.totalSize().asPublic(); | 1660 return _reader.totalSize().asPublic(); |
1645 } | 1661 } |
1646 | 1662 |
1647 #if !CAPNP_LITE | 1663 #if !CAPNP_LITE |
1648 inline ::kj::StringTree toString() const { | 1664 inline ::kj::StringTree toString() const { |
1649 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1665 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1650 } | 1666 } |
1651 #endif // !CAPNP_LITE | 1667 #endif // !CAPNP_LITE |
1652 | 1668 |
1653 inline ::uint32_t getOffset() const; | 1669 inline ::uint32_t getOffset() const; |
1654 | 1670 |
1747 return _reader.totalSize().asPublic(); | 1763 return _reader.totalSize().asPublic(); |
1748 } | 1764 } |
1749 | 1765 |
1750 #if !CAPNP_LITE | 1766 #if !CAPNP_LITE |
1751 inline ::kj::StringTree toString() const { | 1767 inline ::kj::StringTree toString() const { |
1752 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1768 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1753 } | 1769 } |
1754 #endif // !CAPNP_LITE | 1770 #endif // !CAPNP_LITE |
1755 | 1771 |
1756 inline ::uint64_t getTypeId() const; | 1772 inline ::uint64_t getTypeId() const; |
1757 | 1773 |
1823 return _reader.totalSize().asPublic(); | 1839 return _reader.totalSize().asPublic(); |
1824 } | 1840 } |
1825 | 1841 |
1826 #if !CAPNP_LITE | 1842 #if !CAPNP_LITE |
1827 inline ::kj::StringTree toString() const { | 1843 inline ::kj::StringTree toString() const { |
1828 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1844 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1829 } | 1845 } |
1830 #endif // !CAPNP_LITE | 1846 #endif // !CAPNP_LITE |
1831 | 1847 |
1832 inline Which which() const; | 1848 inline Which which() const; |
1833 inline bool isImplicit() const; | 1849 inline bool isImplicit() const; |
1910 return _reader.totalSize().asPublic(); | 1926 return _reader.totalSize().asPublic(); |
1911 } | 1927 } |
1912 | 1928 |
1913 #if !CAPNP_LITE | 1929 #if !CAPNP_LITE |
1914 inline ::kj::StringTree toString() const { | 1930 inline ::kj::StringTree toString() const { |
1915 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1931 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
1916 } | 1932 } |
1917 #endif // !CAPNP_LITE | 1933 #endif // !CAPNP_LITE |
1918 | 1934 |
1919 inline bool hasName() const; | 1935 inline bool hasName() const; |
1920 inline ::capnp::Text::Reader getName() const; | 1936 inline ::capnp::Text::Reader getName() const; |
2006 return _reader.totalSize().asPublic(); | 2022 return _reader.totalSize().asPublic(); |
2007 } | 2023 } |
2008 | 2024 |
2009 #if !CAPNP_LITE | 2025 #if !CAPNP_LITE |
2010 inline ::kj::StringTree toString() const { | 2026 inline ::kj::StringTree toString() const { |
2011 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2027 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2012 } | 2028 } |
2013 #endif // !CAPNP_LITE | 2029 #endif // !CAPNP_LITE |
2014 | 2030 |
2015 inline ::uint64_t getId() const; | 2031 inline ::uint64_t getId() const; |
2016 | 2032 |
2093 return _reader.totalSize().asPublic(); | 2109 return _reader.totalSize().asPublic(); |
2094 } | 2110 } |
2095 | 2111 |
2096 #if !CAPNP_LITE | 2112 #if !CAPNP_LITE |
2097 inline ::kj::StringTree toString() const { | 2113 inline ::kj::StringTree toString() const { |
2098 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2114 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2099 } | 2115 } |
2100 #endif // !CAPNP_LITE | 2116 #endif // !CAPNP_LITE |
2101 | 2117 |
2102 inline bool hasName() const; | 2118 inline bool hasName() const; |
2103 inline ::capnp::Text::Reader getName() const; | 2119 inline ::capnp::Text::Reader getName() const; |
2231 return _reader.totalSize().asPublic(); | 2247 return _reader.totalSize().asPublic(); |
2232 } | 2248 } |
2233 | 2249 |
2234 #if !CAPNP_LITE | 2250 #if !CAPNP_LITE |
2235 inline ::kj::StringTree toString() const { | 2251 inline ::kj::StringTree toString() const { |
2236 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2252 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2237 } | 2253 } |
2238 #endif // !CAPNP_LITE | 2254 #endif // !CAPNP_LITE |
2239 | 2255 |
2240 inline Which which() const; | 2256 inline Which which() const; |
2241 inline bool isVoid() const; | 2257 inline bool isVoid() const; |
2437 return _reader.totalSize().asPublic(); | 2453 return _reader.totalSize().asPublic(); |
2438 } | 2454 } |
2439 | 2455 |
2440 #if !CAPNP_LITE | 2456 #if !CAPNP_LITE |
2441 inline ::kj::StringTree toString() const { | 2457 inline ::kj::StringTree toString() const { |
2442 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2458 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2443 } | 2459 } |
2444 #endif // !CAPNP_LITE | 2460 #endif // !CAPNP_LITE |
2445 | 2461 |
2446 inline bool hasElementType() const; | 2462 inline bool hasElementType() const; |
2447 inline ::capnp::schema::Type::Reader getElementType() const; | 2463 inline ::capnp::schema::Type::Reader getElementType() const; |
2519 return _reader.totalSize().asPublic(); | 2535 return _reader.totalSize().asPublic(); |
2520 } | 2536 } |
2521 | 2537 |
2522 #if !CAPNP_LITE | 2538 #if !CAPNP_LITE |
2523 inline ::kj::StringTree toString() const { | 2539 inline ::kj::StringTree toString() const { |
2524 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2540 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2525 } | 2541 } |
2526 #endif // !CAPNP_LITE | 2542 #endif // !CAPNP_LITE |
2527 | 2543 |
2528 inline ::uint64_t getTypeId() const; | 2544 inline ::uint64_t getTypeId() const; |
2529 | 2545 |
2606 return _reader.totalSize().asPublic(); | 2622 return _reader.totalSize().asPublic(); |
2607 } | 2623 } |
2608 | 2624 |
2609 #if !CAPNP_LITE | 2625 #if !CAPNP_LITE |
2610 inline ::kj::StringTree toString() const { | 2626 inline ::kj::StringTree toString() const { |
2611 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2627 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2612 } | 2628 } |
2613 #endif // !CAPNP_LITE | 2629 #endif // !CAPNP_LITE |
2614 | 2630 |
2615 inline ::uint64_t getTypeId() const; | 2631 inline ::uint64_t getTypeId() const; |
2616 | 2632 |
2693 return _reader.totalSize().asPublic(); | 2709 return _reader.totalSize().asPublic(); |
2694 } | 2710 } |
2695 | 2711 |
2696 #if !CAPNP_LITE | 2712 #if !CAPNP_LITE |
2697 inline ::kj::StringTree toString() const { | 2713 inline ::kj::StringTree toString() const { |
2698 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2714 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2699 } | 2715 } |
2700 #endif // !CAPNP_LITE | 2716 #endif // !CAPNP_LITE |
2701 | 2717 |
2702 inline ::uint64_t getTypeId() const; | 2718 inline ::uint64_t getTypeId() const; |
2703 | 2719 |
2780 return _reader.totalSize().asPublic(); | 2796 return _reader.totalSize().asPublic(); |
2781 } | 2797 } |
2782 | 2798 |
2783 #if !CAPNP_LITE | 2799 #if !CAPNP_LITE |
2784 inline ::kj::StringTree toString() const { | 2800 inline ::kj::StringTree toString() const { |
2785 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2801 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2786 } | 2802 } |
2787 #endif // !CAPNP_LITE | 2803 #endif // !CAPNP_LITE |
2788 | 2804 |
2789 inline Which which() const; | 2805 inline Which which() const; |
2790 inline bool isUnconstrained() const; | 2806 inline bool isUnconstrained() const; |
2874 return _reader.totalSize().asPublic(); | 2890 return _reader.totalSize().asPublic(); |
2875 } | 2891 } |
2876 | 2892 |
2877 #if !CAPNP_LITE | 2893 #if !CAPNP_LITE |
2878 inline ::kj::StringTree toString() const { | 2894 inline ::kj::StringTree toString() const { |
2879 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2895 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2880 } | 2896 } |
2881 #endif // !CAPNP_LITE | 2897 #endif // !CAPNP_LITE |
2882 | 2898 |
2883 inline Which which() const; | 2899 inline Which which() const; |
2884 inline bool isAnyKind() const; | 2900 inline bool isAnyKind() const; |
2975 return _reader.totalSize().asPublic(); | 2991 return _reader.totalSize().asPublic(); |
2976 } | 2992 } |
2977 | 2993 |
2978 #if !CAPNP_LITE | 2994 #if !CAPNP_LITE |
2979 inline ::kj::StringTree toString() const { | 2995 inline ::kj::StringTree toString() const { |
2980 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 2996 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
2981 } | 2997 } |
2982 #endif // !CAPNP_LITE | 2998 #endif // !CAPNP_LITE |
2983 | 2999 |
2984 inline ::uint64_t getScopeId() const; | 3000 inline ::uint64_t getScopeId() const; |
2985 | 3001 |
3056 return _reader.totalSize().asPublic(); | 3072 return _reader.totalSize().asPublic(); |
3057 } | 3073 } |
3058 | 3074 |
3059 #if !CAPNP_LITE | 3075 #if !CAPNP_LITE |
3060 inline ::kj::StringTree toString() const { | 3076 inline ::kj::StringTree toString() const { |
3061 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3077 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3062 } | 3078 } |
3063 #endif // !CAPNP_LITE | 3079 #endif // !CAPNP_LITE |
3064 | 3080 |
3065 inline ::uint16_t getParameterIndex() const; | 3081 inline ::uint16_t getParameterIndex() const; |
3066 | 3082 |
3132 return _reader.totalSize().asPublic(); | 3148 return _reader.totalSize().asPublic(); |
3133 } | 3149 } |
3134 | 3150 |
3135 #if !CAPNP_LITE | 3151 #if !CAPNP_LITE |
3136 inline ::kj::StringTree toString() const { | 3152 inline ::kj::StringTree toString() const { |
3137 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3153 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3138 } | 3154 } |
3139 #endif // !CAPNP_LITE | 3155 #endif // !CAPNP_LITE |
3140 | 3156 |
3141 inline bool hasScopes() const; | 3157 inline bool hasScopes() const; |
3142 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Reader getScopes() const; | 3158 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Reader getScopes() const; |
3213 return _reader.totalSize().asPublic(); | 3229 return _reader.totalSize().asPublic(); |
3214 } | 3230 } |
3215 | 3231 |
3216 #if !CAPNP_LITE | 3232 #if !CAPNP_LITE |
3217 inline ::kj::StringTree toString() const { | 3233 inline ::kj::StringTree toString() const { |
3218 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3234 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3219 } | 3235 } |
3220 #endif // !CAPNP_LITE | 3236 #endif // !CAPNP_LITE |
3221 | 3237 |
3222 inline Which which() const; | 3238 inline Which which() const; |
3223 inline ::uint64_t getScopeId() const; | 3239 inline ::uint64_t getScopeId() const; |
3310 return _reader.totalSize().asPublic(); | 3326 return _reader.totalSize().asPublic(); |
3311 } | 3327 } |
3312 | 3328 |
3313 #if !CAPNP_LITE | 3329 #if !CAPNP_LITE |
3314 inline ::kj::StringTree toString() const { | 3330 inline ::kj::StringTree toString() const { |
3315 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3331 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3316 } | 3332 } |
3317 #endif // !CAPNP_LITE | 3333 #endif // !CAPNP_LITE |
3318 | 3334 |
3319 inline Which which() const; | 3335 inline Which which() const; |
3320 inline bool isUnbound() const; | 3336 inline bool isUnbound() const; |
3402 return _reader.totalSize().asPublic(); | 3418 return _reader.totalSize().asPublic(); |
3403 } | 3419 } |
3404 | 3420 |
3405 #if !CAPNP_LITE | 3421 #if !CAPNP_LITE |
3406 inline ::kj::StringTree toString() const { | 3422 inline ::kj::StringTree toString() const { |
3407 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3423 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3408 } | 3424 } |
3409 #endif // !CAPNP_LITE | 3425 #endif // !CAPNP_LITE |
3410 | 3426 |
3411 inline Which which() const; | 3427 inline Which which() const; |
3412 inline bool isVoid() const; | 3428 inline bool isVoid() const; |
3624 return _reader.totalSize().asPublic(); | 3640 return _reader.totalSize().asPublic(); |
3625 } | 3641 } |
3626 | 3642 |
3627 #if !CAPNP_LITE | 3643 #if !CAPNP_LITE |
3628 inline ::kj::StringTree toString() const { | 3644 inline ::kj::StringTree toString() const { |
3629 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3645 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3630 } | 3646 } |
3631 #endif // !CAPNP_LITE | 3647 #endif // !CAPNP_LITE |
3632 | 3648 |
3633 inline ::uint64_t getId() const; | 3649 inline ::uint64_t getId() const; |
3634 | 3650 |
3709 template <typename, ::capnp::Kind> | 3725 template <typename, ::capnp::Kind> |
3710 friend struct ::capnp::ToDynamic_; | 3726 friend struct ::capnp::ToDynamic_; |
3711 }; | 3727 }; |
3712 #endif // !CAPNP_LITE | 3728 #endif // !CAPNP_LITE |
3713 | 3729 |
3714 class CodeGeneratorRequest::Reader { | 3730 class CapnpVersion::Reader { |
3715 public: | 3731 public: |
3716 typedef CodeGeneratorRequest Reads; | 3732 typedef CapnpVersion Reads; |
3717 | 3733 |
3718 Reader() = default; | 3734 Reader() = default; |
3719 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | 3735 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
3720 | 3736 |
3721 inline ::capnp::MessageSize totalSize() const { | 3737 inline ::capnp::MessageSize totalSize() const { |
3722 return _reader.totalSize().asPublic(); | 3738 return _reader.totalSize().asPublic(); |
3723 } | 3739 } |
3724 | 3740 |
3725 #if !CAPNP_LITE | 3741 #if !CAPNP_LITE |
3726 inline ::kj::StringTree toString() const { | 3742 inline ::kj::StringTree toString() const { |
3727 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3743 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3728 } | 3744 } |
3729 #endif // !CAPNP_LITE | 3745 #endif // !CAPNP_LITE |
3730 | 3746 |
3731 inline bool hasNodes() const; | 3747 inline ::uint16_t getMajor() const; |
3732 inline ::capnp::List< ::capnp::schema::Node>::Reader getNodes() const; | 3748 |
3733 | 3749 inline ::uint8_t getMinor() const; |
3734 inline bool hasRequestedFiles() const; | 3750 |
3735 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader getRequestedFiles() const; | 3751 inline ::uint8_t getMicro() const; |
3736 | 3752 |
3737 private: | 3753 private: |
3738 ::capnp::_::StructReader _reader; | 3754 ::capnp::_::StructReader _reader; |
3739 template <typename, ::capnp::Kind> | 3755 template <typename, ::capnp::Kind> |
3740 friend struct ::capnp::ToDynamic_; | 3756 friend struct ::capnp::ToDynamic_; |
3744 friend struct ::capnp::List; | 3760 friend struct ::capnp::List; |
3745 friend class ::capnp::MessageBuilder; | 3761 friend class ::capnp::MessageBuilder; |
3746 friend class ::capnp::Orphanage; | 3762 friend class ::capnp::Orphanage; |
3747 }; | 3763 }; |
3748 | 3764 |
3749 class CodeGeneratorRequest::Builder { | 3765 class CapnpVersion::Builder { |
3750 public: | 3766 public: |
3751 typedef CodeGeneratorRequest Builds; | 3767 typedef CapnpVersion Builds; |
3752 | 3768 |
3753 Builder() = delete; // Deleted to discourage incorrect usage. | 3769 Builder() = delete; // Deleted to discourage incorrect usage. |
3754 // You can explicitly initialize to nullptr instead. | 3770 // You can explicitly initialize to nullptr instead. |
3755 inline Builder(decltype(nullptr)) {} | 3771 inline Builder(decltype(nullptr)) {} |
3756 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | 3772 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
3760 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | 3776 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
3761 #if !CAPNP_LITE | 3777 #if !CAPNP_LITE |
3762 inline ::kj::StringTree toString() const { return asReader().toString(); } | 3778 inline ::kj::StringTree toString() const { return asReader().toString(); } |
3763 #endif // !CAPNP_LITE | 3779 #endif // !CAPNP_LITE |
3764 | 3780 |
3781 inline ::uint16_t getMajor(); | |
3782 inline void setMajor( ::uint16_t value); | |
3783 | |
3784 inline ::uint8_t getMinor(); | |
3785 inline void setMinor( ::uint8_t value); | |
3786 | |
3787 inline ::uint8_t getMicro(); | |
3788 inline void setMicro( ::uint8_t value); | |
3789 | |
3790 private: | |
3791 ::capnp::_::StructBuilder _builder; | |
3792 template <typename, ::capnp::Kind> | |
3793 friend struct ::capnp::ToDynamic_; | |
3794 friend class ::capnp::Orphanage; | |
3795 template <typename, ::capnp::Kind> | |
3796 friend struct ::capnp::_::PointerHelpers; | |
3797 }; | |
3798 | |
3799 #if !CAPNP_LITE | |
3800 class CapnpVersion::Pipeline { | |
3801 public: | |
3802 typedef CapnpVersion Pipelines; | |
3803 | |
3804 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
3805 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
3806 : _typeless(kj::mv(typeless)) {} | |
3807 | |
3808 private: | |
3809 ::capnp::AnyPointer::Pipeline _typeless; | |
3810 friend class ::capnp::PipelineHook; | |
3811 template <typename, ::capnp::Kind> | |
3812 friend struct ::capnp::ToDynamic_; | |
3813 }; | |
3814 #endif // !CAPNP_LITE | |
3815 | |
3816 class CodeGeneratorRequest::Reader { | |
3817 public: | |
3818 typedef CodeGeneratorRequest Reads; | |
3819 | |
3820 Reader() = default; | |
3821 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
3822 | |
3823 inline ::capnp::MessageSize totalSize() const { | |
3824 return _reader.totalSize().asPublic(); | |
3825 } | |
3826 | |
3827 #if !CAPNP_LITE | |
3828 inline ::kj::StringTree toString() const { | |
3829 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); | |
3830 } | |
3831 #endif // !CAPNP_LITE | |
3832 | |
3833 inline bool hasNodes() const; | |
3834 inline ::capnp::List< ::capnp::schema::Node>::Reader getNodes() const; | |
3835 | |
3836 inline bool hasRequestedFiles() const; | |
3837 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader getRequestedFiles() const; | |
3838 | |
3839 inline bool hasCapnpVersion() const; | |
3840 inline ::capnp::schema::CapnpVersion::Reader getCapnpVersion() const; | |
3841 | |
3842 private: | |
3843 ::capnp::_::StructReader _reader; | |
3844 template <typename, ::capnp::Kind> | |
3845 friend struct ::capnp::ToDynamic_; | |
3846 template <typename, ::capnp::Kind> | |
3847 friend struct ::capnp::_::PointerHelpers; | |
3848 template <typename, ::capnp::Kind> | |
3849 friend struct ::capnp::List; | |
3850 friend class ::capnp::MessageBuilder; | |
3851 friend class ::capnp::Orphanage; | |
3852 }; | |
3853 | |
3854 class CodeGeneratorRequest::Builder { | |
3855 public: | |
3856 typedef CodeGeneratorRequest Builds; | |
3857 | |
3858 Builder() = delete; // Deleted to discourage incorrect usage. | |
3859 // You can explicitly initialize to nullptr instead. | |
3860 inline Builder(decltype(nullptr)) {} | |
3861 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
3862 inline operator Reader() const { return Reader(_builder.asReader()); } | |
3863 inline Reader asReader() const { return *this; } | |
3864 | |
3865 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
3866 #if !CAPNP_LITE | |
3867 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
3868 #endif // !CAPNP_LITE | |
3869 | |
3765 inline bool hasNodes(); | 3870 inline bool hasNodes(); |
3766 inline ::capnp::List< ::capnp::schema::Node>::Builder getNodes(); | 3871 inline ::capnp::List< ::capnp::schema::Node>::Builder getNodes(); |
3767 inline void setNodes( ::capnp::List< ::capnp::schema::Node>::Reader value); | 3872 inline void setNodes( ::capnp::List< ::capnp::schema::Node>::Reader value); |
3768 inline ::capnp::List< ::capnp::schema::Node>::Builder initNodes(unsigned int size); | 3873 inline ::capnp::List< ::capnp::schema::Node>::Builder initNodes(unsigned int size); |
3769 inline void adoptNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>>&& value); | 3874 inline void adoptNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>>&& value); |
3774 inline void setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader value); | 3879 inline void setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader value); |
3775 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder initRequestedFiles(unsigned int size); | 3880 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder initRequestedFiles(unsigned int size); |
3776 inline void adoptRequestedFiles(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>&& value); | 3881 inline void adoptRequestedFiles(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>&& value); |
3777 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>> disownRequestedFiles(); | 3882 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>> disownRequestedFiles(); |
3778 | 3883 |
3884 inline bool hasCapnpVersion(); | |
3885 inline ::capnp::schema::CapnpVersion::Builder getCapnpVersion(); | |
3886 inline void setCapnpVersion( ::capnp::schema::CapnpVersion::Reader value); | |
3887 inline ::capnp::schema::CapnpVersion::Builder initCapnpVersion(); | |
3888 inline void adoptCapnpVersion(::capnp::Orphan< ::capnp::schema::CapnpVersion>&& value); | |
3889 inline ::capnp::Orphan< ::capnp::schema::CapnpVersion> disownCapnpVersion(); | |
3890 | |
3779 private: | 3891 private: |
3780 ::capnp::_::StructBuilder _builder; | 3892 ::capnp::_::StructBuilder _builder; |
3781 template <typename, ::capnp::Kind> | 3893 template <typename, ::capnp::Kind> |
3782 friend struct ::capnp::ToDynamic_; | 3894 friend struct ::capnp::ToDynamic_; |
3783 friend class ::capnp::Orphanage; | 3895 friend class ::capnp::Orphanage; |
3792 | 3904 |
3793 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | 3905 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
3794 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | 3906 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
3795 : _typeless(kj::mv(typeless)) {} | 3907 : _typeless(kj::mv(typeless)) {} |
3796 | 3908 |
3909 inline ::capnp::schema::CapnpVersion::Pipeline getCapnpVersion(); | |
3797 private: | 3910 private: |
3798 ::capnp::AnyPointer::Pipeline _typeless; | 3911 ::capnp::AnyPointer::Pipeline _typeless; |
3799 friend class ::capnp::PipelineHook; | 3912 friend class ::capnp::PipelineHook; |
3800 template <typename, ::capnp::Kind> | 3913 template <typename, ::capnp::Kind> |
3801 friend struct ::capnp::ToDynamic_; | 3914 friend struct ::capnp::ToDynamic_; |
3813 return _reader.totalSize().asPublic(); | 3926 return _reader.totalSize().asPublic(); |
3814 } | 3927 } |
3815 | 3928 |
3816 #if !CAPNP_LITE | 3929 #if !CAPNP_LITE |
3817 inline ::kj::StringTree toString() const { | 3930 inline ::kj::StringTree toString() const { |
3818 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 3931 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3819 } | 3932 } |
3820 #endif // !CAPNP_LITE | 3933 #endif // !CAPNP_LITE |
3821 | 3934 |
3822 inline ::uint64_t getId() const; | 3935 inline ::uint64_t getId() const; |
3823 | 3936 |
3909 return _reader.totalSize().asPublic(); | 4022 return _reader.totalSize().asPublic(); |
3910 } | 4023 } |
3911 | 4024 |
3912 #if !CAPNP_LITE | 4025 #if !CAPNP_LITE |
3913 inline ::kj::StringTree toString() const { | 4026 inline ::kj::StringTree toString() const { |
3914 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 4027 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
3915 } | 4028 } |
3916 #endif // !CAPNP_LITE | 4029 #endif // !CAPNP_LITE |
3917 | 4030 |
3918 inline ::uint64_t getId() const; | 4031 inline ::uint64_t getId() const; |
3919 | 4032 |
3985 #endif // !CAPNP_LITE | 4098 #endif // !CAPNP_LITE |
3986 | 4099 |
3987 // ======================================================================================= | 4100 // ======================================================================================= |
3988 | 4101 |
3989 inline ::capnp::schema::Node::Which Node::Reader::which() const { | 4102 inline ::capnp::schema::Node::Which Node::Reader::which() const { |
3990 return _reader.getDataField<Which>(6 * ::capnp::ELEMENTS); | 4103 return _reader.getDataField<Which>( |
4104 ::capnp::bounded<6>() * ::capnp::ELEMENTS); | |
3991 } | 4105 } |
3992 inline ::capnp::schema::Node::Which Node::Builder::which() { | 4106 inline ::capnp::schema::Node::Which Node::Builder::which() { |
3993 return _builder.getDataField<Which>(6 * ::capnp::ELEMENTS); | 4107 return _builder.getDataField<Which>( |
4108 ::capnp::bounded<6>() * ::capnp::ELEMENTS); | |
3994 } | 4109 } |
3995 | 4110 |
3996 inline ::uint64_t Node::Reader::getId() const { | 4111 inline ::uint64_t Node::Reader::getId() const { |
3997 return _reader.getDataField< ::uint64_t>( | 4112 return _reader.getDataField< ::uint64_t>( |
3998 0 * ::capnp::ELEMENTS); | 4113 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
3999 } | 4114 } |
4000 | 4115 |
4001 inline ::uint64_t Node::Builder::getId() { | 4116 inline ::uint64_t Node::Builder::getId() { |
4002 return _builder.getDataField< ::uint64_t>( | 4117 return _builder.getDataField< ::uint64_t>( |
4003 0 * ::capnp::ELEMENTS); | 4118 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4004 } | 4119 } |
4005 inline void Node::Builder::setId( ::uint64_t value) { | 4120 inline void Node::Builder::setId( ::uint64_t value) { |
4006 _builder.setDataField< ::uint64_t>( | 4121 _builder.setDataField< ::uint64_t>( |
4007 0 * ::capnp::ELEMENTS, value); | 4122 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4008 } | 4123 } |
4009 | 4124 |
4010 inline bool Node::Reader::hasDisplayName() const { | 4125 inline bool Node::Reader::hasDisplayName() const { |
4011 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4126 return !_reader.getPointerField( |
4127 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4012 } | 4128 } |
4013 inline bool Node::Builder::hasDisplayName() { | 4129 inline bool Node::Builder::hasDisplayName() { |
4014 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4130 return !_builder.getPointerField( |
4131 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4015 } | 4132 } |
4016 inline ::capnp::Text::Reader Node::Reader::getDisplayName() const { | 4133 inline ::capnp::Text::Reader Node::Reader::getDisplayName() const { |
4017 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4134 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4018 _reader.getPointerField(0 * ::capnp::POINTERS)); | 4135 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4019 } | 4136 } |
4020 inline ::capnp::Text::Builder Node::Builder::getDisplayName() { | 4137 inline ::capnp::Text::Builder Node::Builder::getDisplayName() { |
4021 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4138 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4022 _builder.getPointerField(0 * ::capnp::POINTERS)); | 4139 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4023 } | 4140 } |
4024 inline void Node::Builder::setDisplayName( ::capnp::Text::Reader value) { | 4141 inline void Node::Builder::setDisplayName( ::capnp::Text::Reader value) { |
4025 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 4142 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4026 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 4143 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4027 } | 4144 } |
4028 inline ::capnp::Text::Builder Node::Builder::initDisplayName(unsigned int size) { | 4145 inline ::capnp::Text::Builder Node::Builder::initDisplayName(unsigned int size) { |
4029 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 4146 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4030 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 4147 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4031 } | 4148 } |
4032 inline void Node::Builder::adoptDisplayName( | 4149 inline void Node::Builder::adoptDisplayName( |
4033 ::capnp::Orphan< ::capnp::Text>&& value) { | 4150 ::capnp::Orphan< ::capnp::Text>&& value) { |
4034 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 4151 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4035 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 4152 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4036 } | 4153 } |
4037 inline ::capnp::Orphan< ::capnp::Text> Node::Builder::disownDisplayName() { | 4154 inline ::capnp::Orphan< ::capnp::Text> Node::Builder::disownDisplayName() { |
4038 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 4155 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4039 _builder.getPointerField(0 * ::capnp::POINTERS)); | 4156 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4040 } | 4157 } |
4041 | 4158 |
4042 inline ::uint32_t Node::Reader::getDisplayNamePrefixLength() const { | 4159 inline ::uint32_t Node::Reader::getDisplayNamePrefixLength() const { |
4043 return _reader.getDataField< ::uint32_t>( | 4160 return _reader.getDataField< ::uint32_t>( |
4044 2 * ::capnp::ELEMENTS); | 4161 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4045 } | 4162 } |
4046 | 4163 |
4047 inline ::uint32_t Node::Builder::getDisplayNamePrefixLength() { | 4164 inline ::uint32_t Node::Builder::getDisplayNamePrefixLength() { |
4048 return _builder.getDataField< ::uint32_t>( | 4165 return _builder.getDataField< ::uint32_t>( |
4049 2 * ::capnp::ELEMENTS); | 4166 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4050 } | 4167 } |
4051 inline void Node::Builder::setDisplayNamePrefixLength( ::uint32_t value) { | 4168 inline void Node::Builder::setDisplayNamePrefixLength( ::uint32_t value) { |
4052 _builder.setDataField< ::uint32_t>( | 4169 _builder.setDataField< ::uint32_t>( |
4053 2 * ::capnp::ELEMENTS, value); | 4170 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
4054 } | 4171 } |
4055 | 4172 |
4056 inline ::uint64_t Node::Reader::getScopeId() const { | 4173 inline ::uint64_t Node::Reader::getScopeId() const { |
4057 return _reader.getDataField< ::uint64_t>( | 4174 return _reader.getDataField< ::uint64_t>( |
4058 2 * ::capnp::ELEMENTS); | 4175 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4059 } | 4176 } |
4060 | 4177 |
4061 inline ::uint64_t Node::Builder::getScopeId() { | 4178 inline ::uint64_t Node::Builder::getScopeId() { |
4062 return _builder.getDataField< ::uint64_t>( | 4179 return _builder.getDataField< ::uint64_t>( |
4063 2 * ::capnp::ELEMENTS); | 4180 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
4064 } | 4181 } |
4065 inline void Node::Builder::setScopeId( ::uint64_t value) { | 4182 inline void Node::Builder::setScopeId( ::uint64_t value) { |
4066 _builder.setDataField< ::uint64_t>( | 4183 _builder.setDataField< ::uint64_t>( |
4067 2 * ::capnp::ELEMENTS, value); | 4184 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
4068 } | 4185 } |
4069 | 4186 |
4070 inline bool Node::Reader::hasNestedNodes() const { | 4187 inline bool Node::Reader::hasNestedNodes() const { |
4071 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | 4188 return !_reader.getPointerField( |
4189 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
4072 } | 4190 } |
4073 inline bool Node::Builder::hasNestedNodes() { | 4191 inline bool Node::Builder::hasNestedNodes() { |
4074 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | 4192 return !_builder.getPointerField( |
4193 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
4075 } | 4194 } |
4076 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader Node::Reader::getNestedNodes() const { | 4195 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader Node::Reader::getNestedNodes() const { |
4077 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::get( | 4196 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::get(_reader.getPointerField( |
4078 _reader.getPointerField(1 * ::capnp::POINTERS)); | 4197 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4079 } | 4198 } |
4080 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder Node::Builder::getNestedNodes() { | 4199 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder Node::Builder::getNestedNodes() { |
4081 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::get( | 4200 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::get(_builder.getPointerField( |
4082 _builder.getPointerField(1 * ::capnp::POINTERS)); | 4201 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4083 } | 4202 } |
4084 inline void Node::Builder::setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader value) { | 4203 inline void Node::Builder::setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode>::Reader value) { |
4085 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::set( | 4204 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::set(_builder.getPointerField( |
4086 _builder.getPointerField(1 * ::capnp::POINTERS), value); | 4205 ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
4087 } | 4206 } |
4088 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder Node::Builder::initNestedNodes(unsigned int size) { | 4207 inline ::capnp::List< ::capnp::schema::Node::NestedNode>::Builder Node::Builder::initNestedNodes(unsigned int size) { |
4089 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::init( | 4208 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::init(_builder.getPointerField( |
4090 _builder.getPointerField(1 * ::capnp::POINTERS), size); | 4209 ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
4091 } | 4210 } |
4092 inline void Node::Builder::adoptNestedNodes( | 4211 inline void Node::Builder::adoptNestedNodes( |
4093 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>>&& value) { | 4212 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>>&& value) { |
4094 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::adopt( | 4213 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::adopt(_builder.getPointerField( |
4095 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | 4214 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
4096 } | 4215 } |
4097 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>> Node::Builder::disownNestedNodes() { | 4216 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode>> Node::Builder::disownNestedNodes() { |
4098 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::disown( | 4217 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode>>::disown(_builder.getPointerField( |
4099 _builder.getPointerField(1 * ::capnp::POINTERS)); | 4218 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4100 } | 4219 } |
4101 | 4220 |
4102 inline bool Node::Reader::hasAnnotations() const { | 4221 inline bool Node::Reader::hasAnnotations() const { |
4103 return !_reader.getPointerField(2 * ::capnp::POINTERS).isNull(); | 4222 return !_reader.getPointerField( |
4223 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
4104 } | 4224 } |
4105 inline bool Node::Builder::hasAnnotations() { | 4225 inline bool Node::Builder::hasAnnotations() { |
4106 return !_builder.getPointerField(2 * ::capnp::POINTERS).isNull(); | 4226 return !_builder.getPointerField( |
4227 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
4107 } | 4228 } |
4108 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Node::Reader::getAnnotations() const { | 4229 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Node::Reader::getAnnotations() const { |
4109 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 4230 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_reader.getPointerField( |
4110 _reader.getPointerField(2 * ::capnp::POINTERS)); | 4231 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
4111 } | 4232 } |
4112 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Node::Builder::getAnnotations() { | 4233 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Node::Builder::getAnnotations() { |
4113 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 4234 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_builder.getPointerField( |
4114 _builder.getPointerField(2 * ::capnp::POINTERS)); | 4235 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
4115 } | 4236 } |
4116 inline void Node::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | 4237 inline void Node::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { |
4117 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | 4238 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set(_builder.getPointerField( |
4118 _builder.getPointerField(2 * ::capnp::POINTERS), value); | 4239 ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
4119 } | 4240 } |
4120 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Node::Builder::initAnnotations(unsigned int size) { | 4241 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Node::Builder::initAnnotations(unsigned int size) { |
4121 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | 4242 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init(_builder.getPointerField( |
4122 _builder.getPointerField(2 * ::capnp::POINTERS), size); | 4243 ::capnp::bounded<2>() * ::capnp::POINTERS), size); |
4123 } | 4244 } |
4124 inline void Node::Builder::adoptAnnotations( | 4245 inline void Node::Builder::adoptAnnotations( |
4125 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | 4246 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { |
4126 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | 4247 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt(_builder.getPointerField( |
4127 _builder.getPointerField(2 * ::capnp::POINTERS), kj::mv(value)); | 4248 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
4128 } | 4249 } |
4129 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Node::Builder::disownAnnotations() { | 4250 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Node::Builder::disownAnnotations() { |
4130 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | 4251 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown(_builder.getPointerField( |
4131 _builder.getPointerField(2 * ::capnp::POINTERS)); | 4252 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
4132 } | 4253 } |
4133 | 4254 |
4134 inline bool Node::Reader::isFile() const { | 4255 inline bool Node::Reader::isFile() const { |
4135 return which() == Node::FILE; | 4256 return which() == Node::FILE; |
4136 } | 4257 } |
4139 } | 4260 } |
4140 inline ::capnp::Void Node::Reader::getFile() const { | 4261 inline ::capnp::Void Node::Reader::getFile() const { |
4141 KJ_IREQUIRE((which() == Node::FILE), | 4262 KJ_IREQUIRE((which() == Node::FILE), |
4142 "Must check which() before get()ing a union member."); | 4263 "Must check which() before get()ing a union member."); |
4143 return _reader.getDataField< ::capnp::Void>( | 4264 return _reader.getDataField< ::capnp::Void>( |
4144 0 * ::capnp::ELEMENTS); | 4265 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4145 } | 4266 } |
4146 | 4267 |
4147 inline ::capnp::Void Node::Builder::getFile() { | 4268 inline ::capnp::Void Node::Builder::getFile() { |
4148 KJ_IREQUIRE((which() == Node::FILE), | 4269 KJ_IREQUIRE((which() == Node::FILE), |
4149 "Must check which() before get()ing a union member."); | 4270 "Must check which() before get()ing a union member."); |
4150 return _builder.getDataField< ::capnp::Void>( | 4271 return _builder.getDataField< ::capnp::Void>( |
4151 0 * ::capnp::ELEMENTS); | 4272 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4152 } | 4273 } |
4153 inline void Node::Builder::setFile( ::capnp::Void value) { | 4274 inline void Node::Builder::setFile( ::capnp::Void value) { |
4154 _builder.setDataField<Node::Which>( | 4275 _builder.setDataField<Node::Which>( |
4155 6 * ::capnp::ELEMENTS, Node::FILE); | 4276 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::FILE); |
4156 _builder.setDataField< ::capnp::Void>( | 4277 _builder.setDataField< ::capnp::Void>( |
4157 0 * ::capnp::ELEMENTS, value); | 4278 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4158 } | 4279 } |
4159 | 4280 |
4160 inline bool Node::Reader::isStruct() const { | 4281 inline bool Node::Reader::isStruct() const { |
4161 return which() == Node::STRUCT; | 4282 return which() == Node::STRUCT; |
4162 } | 4283 } |
4173 "Must check which() before get()ing a union member."); | 4294 "Must check which() before get()ing a union member."); |
4174 return typename Node::Struct::Builder(_builder); | 4295 return typename Node::Struct::Builder(_builder); |
4175 } | 4296 } |
4176 inline typename Node::Struct::Builder Node::Builder::initStruct() { | 4297 inline typename Node::Struct::Builder Node::Builder::initStruct() { |
4177 _builder.setDataField<Node::Which>( | 4298 _builder.setDataField<Node::Which>( |
4178 6 * ::capnp::ELEMENTS, Node::STRUCT); | 4299 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::STRUCT); |
4179 _builder.setDataField< ::uint16_t>(7 * ::capnp::ELEMENTS, 0); | 4300 _builder.setDataField< ::uint16_t>(::capnp::bounded<7>() * ::capnp::ELEMENTS, 0); |
4180 _builder.setDataField< ::uint16_t>(12 * ::capnp::ELEMENTS, 0); | 4301 _builder.setDataField< ::uint16_t>(::capnp::bounded<12>() * ::capnp::ELEMENTS, 0); |
4181 _builder.setDataField< ::uint16_t>(13 * ::capnp::ELEMENTS, 0); | 4302 _builder.setDataField< ::uint16_t>(::capnp::bounded<13>() * ::capnp::ELEMENTS, 0); |
4182 _builder.setDataField<bool>(224 * ::capnp::ELEMENTS, 0); | 4303 _builder.setDataField<bool>(::capnp::bounded<224>() * ::capnp::ELEMENTS, 0); |
4183 _builder.setDataField< ::uint16_t>(15 * ::capnp::ELEMENTS, 0); | 4304 _builder.setDataField< ::uint16_t>(::capnp::bounded<15>() * ::capnp::ELEMENTS, 0); |
4184 _builder.setDataField< ::uint32_t>(8 * ::capnp::ELEMENTS, 0); | 4305 _builder.setDataField< ::uint32_t>(::capnp::bounded<8>() * ::capnp::ELEMENTS, 0); |
4185 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | 4306 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4186 return typename Node::Struct::Builder(_builder); | 4307 return typename Node::Struct::Builder(_builder); |
4187 } | 4308 } |
4188 inline bool Node::Reader::isEnum() const { | 4309 inline bool Node::Reader::isEnum() const { |
4189 return which() == Node::ENUM; | 4310 return which() == Node::ENUM; |
4190 } | 4311 } |
4201 "Must check which() before get()ing a union member."); | 4322 "Must check which() before get()ing a union member."); |
4202 return typename Node::Enum::Builder(_builder); | 4323 return typename Node::Enum::Builder(_builder); |
4203 } | 4324 } |
4204 inline typename Node::Enum::Builder Node::Builder::initEnum() { | 4325 inline typename Node::Enum::Builder Node::Builder::initEnum() { |
4205 _builder.setDataField<Node::Which>( | 4326 _builder.setDataField<Node::Which>( |
4206 6 * ::capnp::ELEMENTS, Node::ENUM); | 4327 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::ENUM); |
4207 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | 4328 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4208 return typename Node::Enum::Builder(_builder); | 4329 return typename Node::Enum::Builder(_builder); |
4209 } | 4330 } |
4210 inline bool Node::Reader::isInterface() const { | 4331 inline bool Node::Reader::isInterface() const { |
4211 return which() == Node::INTERFACE; | 4332 return which() == Node::INTERFACE; |
4212 } | 4333 } |
4223 "Must check which() before get()ing a union member."); | 4344 "Must check which() before get()ing a union member."); |
4224 return typename Node::Interface::Builder(_builder); | 4345 return typename Node::Interface::Builder(_builder); |
4225 } | 4346 } |
4226 inline typename Node::Interface::Builder Node::Builder::initInterface() { | 4347 inline typename Node::Interface::Builder Node::Builder::initInterface() { |
4227 _builder.setDataField<Node::Which>( | 4348 _builder.setDataField<Node::Which>( |
4228 6 * ::capnp::ELEMENTS, Node::INTERFACE); | 4349 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::INTERFACE); |
4229 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | 4350 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4230 _builder.getPointerField(4 * ::capnp::POINTERS).clear(); | 4351 _builder.getPointerField(::capnp::bounded<4>() * ::capnp::POINTERS).clear(); |
4231 return typename Node::Interface::Builder(_builder); | 4352 return typename Node::Interface::Builder(_builder); |
4232 } | 4353 } |
4233 inline bool Node::Reader::isConst() const { | 4354 inline bool Node::Reader::isConst() const { |
4234 return which() == Node::CONST; | 4355 return which() == Node::CONST; |
4235 } | 4356 } |
4246 "Must check which() before get()ing a union member."); | 4367 "Must check which() before get()ing a union member."); |
4247 return typename Node::Const::Builder(_builder); | 4368 return typename Node::Const::Builder(_builder); |
4248 } | 4369 } |
4249 inline typename Node::Const::Builder Node::Builder::initConst() { | 4370 inline typename Node::Const::Builder Node::Builder::initConst() { |
4250 _builder.setDataField<Node::Which>( | 4371 _builder.setDataField<Node::Which>( |
4251 6 * ::capnp::ELEMENTS, Node::CONST); | 4372 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::CONST); |
4252 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | 4373 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4253 _builder.getPointerField(4 * ::capnp::POINTERS).clear(); | 4374 _builder.getPointerField(::capnp::bounded<4>() * ::capnp::POINTERS).clear(); |
4254 return typename Node::Const::Builder(_builder); | 4375 return typename Node::Const::Builder(_builder); |
4255 } | 4376 } |
4256 inline bool Node::Reader::isAnnotation() const { | 4377 inline bool Node::Reader::isAnnotation() const { |
4257 return which() == Node::ANNOTATION; | 4378 return which() == Node::ANNOTATION; |
4258 } | 4379 } |
4269 "Must check which() before get()ing a union member."); | 4390 "Must check which() before get()ing a union member."); |
4270 return typename Node::Annotation::Builder(_builder); | 4391 return typename Node::Annotation::Builder(_builder); |
4271 } | 4392 } |
4272 inline typename Node::Annotation::Builder Node::Builder::initAnnotation() { | 4393 inline typename Node::Annotation::Builder Node::Builder::initAnnotation() { |
4273 _builder.setDataField<Node::Which>( | 4394 _builder.setDataField<Node::Which>( |
4274 6 * ::capnp::ELEMENTS, Node::ANNOTATION); | 4395 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::ANNOTATION); |
4275 _builder.setDataField<bool>(112 * ::capnp::ELEMENTS, 0); | 4396 _builder.setDataField<bool>(::capnp::bounded<112>() * ::capnp::ELEMENTS, 0); |
4276 _builder.setDataField<bool>(113 * ::capnp::ELEMENTS, 0); | 4397 _builder.setDataField<bool>(::capnp::bounded<113>() * ::capnp::ELEMENTS, 0); |
4277 _builder.setDataField<bool>(114 * ::capnp::ELEMENTS, 0); | 4398 _builder.setDataField<bool>(::capnp::bounded<114>() * ::capnp::ELEMENTS, 0); |
4278 _builder.setDataField<bool>(115 * ::capnp::ELEMENTS, 0); | 4399 _builder.setDataField<bool>(::capnp::bounded<115>() * ::capnp::ELEMENTS, 0); |
4279 _builder.setDataField<bool>(116 * ::capnp::ELEMENTS, 0); | 4400 _builder.setDataField<bool>(::capnp::bounded<116>() * ::capnp::ELEMENTS, 0); |
4280 _builder.setDataField<bool>(117 * ::capnp::ELEMENTS, 0); | 4401 _builder.setDataField<bool>(::capnp::bounded<117>() * ::capnp::ELEMENTS, 0); |
4281 _builder.setDataField<bool>(118 * ::capnp::ELEMENTS, 0); | 4402 _builder.setDataField<bool>(::capnp::bounded<118>() * ::capnp::ELEMENTS, 0); |
4282 _builder.setDataField<bool>(119 * ::capnp::ELEMENTS, 0); | 4403 _builder.setDataField<bool>(::capnp::bounded<119>() * ::capnp::ELEMENTS, 0); |
4283 _builder.setDataField<bool>(120 * ::capnp::ELEMENTS, 0); | 4404 _builder.setDataField<bool>(::capnp::bounded<120>() * ::capnp::ELEMENTS, 0); |
4284 _builder.setDataField<bool>(121 * ::capnp::ELEMENTS, 0); | 4405 _builder.setDataField<bool>(::capnp::bounded<121>() * ::capnp::ELEMENTS, 0); |
4285 _builder.setDataField<bool>(122 * ::capnp::ELEMENTS, 0); | 4406 _builder.setDataField<bool>(::capnp::bounded<122>() * ::capnp::ELEMENTS, 0); |
4286 _builder.setDataField<bool>(123 * ::capnp::ELEMENTS, 0); | 4407 _builder.setDataField<bool>(::capnp::bounded<123>() * ::capnp::ELEMENTS, 0); |
4287 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | 4408 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
4288 return typename Node::Annotation::Builder(_builder); | 4409 return typename Node::Annotation::Builder(_builder); |
4289 } | 4410 } |
4290 inline bool Node::Reader::hasParameters() const { | 4411 inline bool Node::Reader::hasParameters() const { |
4291 return !_reader.getPointerField(5 * ::capnp::POINTERS).isNull(); | 4412 return !_reader.getPointerField( |
4413 ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); | |
4292 } | 4414 } |
4293 inline bool Node::Builder::hasParameters() { | 4415 inline bool Node::Builder::hasParameters() { |
4294 return !_builder.getPointerField(5 * ::capnp::POINTERS).isNull(); | 4416 return !_builder.getPointerField( |
4417 ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); | |
4295 } | 4418 } |
4296 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader Node::Reader::getParameters() const { | 4419 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader Node::Reader::getParameters() const { |
4297 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | 4420 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get(_reader.getPointerField( |
4298 _reader.getPointerField(5 * ::capnp::POINTERS)); | 4421 ::capnp::bounded<5>() * ::capnp::POINTERS)); |
4299 } | 4422 } |
4300 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Node::Builder::getParameters() { | 4423 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Node::Builder::getParameters() { |
4301 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | 4424 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get(_builder.getPointerField( |
4302 _builder.getPointerField(5 * ::capnp::POINTERS)); | 4425 ::capnp::bounded<5>() * ::capnp::POINTERS)); |
4303 } | 4426 } |
4304 inline void Node::Builder::setParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value) { | 4427 inline void Node::Builder::setParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value) { |
4305 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::set( | 4428 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::set(_builder.getPointerField( |
4306 _builder.getPointerField(5 * ::capnp::POINTERS), value); | 4429 ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
4307 } | 4430 } |
4308 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Node::Builder::initParameters(unsigned int size) { | 4431 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Node::Builder::initParameters(unsigned int size) { |
4309 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::init( | 4432 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::init(_builder.getPointerField( |
4310 _builder.getPointerField(5 * ::capnp::POINTERS), size); | 4433 ::capnp::bounded<5>() * ::capnp::POINTERS), size); |
4311 } | 4434 } |
4312 inline void Node::Builder::adoptParameters( | 4435 inline void Node::Builder::adoptParameters( |
4313 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value) { | 4436 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value) { |
4314 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::adopt( | 4437 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::adopt(_builder.getPointerField( |
4315 _builder.getPointerField(5 * ::capnp::POINTERS), kj::mv(value)); | 4438 ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
4316 } | 4439 } |
4317 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> Node::Builder::disownParameters() { | 4440 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> Node::Builder::disownParameters() { |
4318 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::disown( | 4441 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::disown(_builder.getPointerField( |
4319 _builder.getPointerField(5 * ::capnp::POINTERS)); | 4442 ::capnp::bounded<5>() * ::capnp::POINTERS)); |
4320 } | 4443 } |
4321 | 4444 |
4322 inline bool Node::Reader::getIsGeneric() const { | 4445 inline bool Node::Reader::getIsGeneric() const { |
4323 return _reader.getDataField<bool>( | 4446 return _reader.getDataField<bool>( |
4324 288 * ::capnp::ELEMENTS); | 4447 ::capnp::bounded<288>() * ::capnp::ELEMENTS); |
4325 } | 4448 } |
4326 | 4449 |
4327 inline bool Node::Builder::getIsGeneric() { | 4450 inline bool Node::Builder::getIsGeneric() { |
4328 return _builder.getDataField<bool>( | 4451 return _builder.getDataField<bool>( |
4329 288 * ::capnp::ELEMENTS); | 4452 ::capnp::bounded<288>() * ::capnp::ELEMENTS); |
4330 } | 4453 } |
4331 inline void Node::Builder::setIsGeneric(bool value) { | 4454 inline void Node::Builder::setIsGeneric(bool value) { |
4332 _builder.setDataField<bool>( | 4455 _builder.setDataField<bool>( |
4333 288 * ::capnp::ELEMENTS, value); | 4456 ::capnp::bounded<288>() * ::capnp::ELEMENTS, value); |
4334 } | 4457 } |
4335 | 4458 |
4336 inline bool Node::Parameter::Reader::hasName() const { | 4459 inline bool Node::Parameter::Reader::hasName() const { |
4337 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4460 return !_reader.getPointerField( |
4461 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4338 } | 4462 } |
4339 inline bool Node::Parameter::Builder::hasName() { | 4463 inline bool Node::Parameter::Builder::hasName() { |
4340 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4464 return !_builder.getPointerField( |
4465 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4341 } | 4466 } |
4342 inline ::capnp::Text::Reader Node::Parameter::Reader::getName() const { | 4467 inline ::capnp::Text::Reader Node::Parameter::Reader::getName() const { |
4343 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4468 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4344 _reader.getPointerField(0 * ::capnp::POINTERS)); | 4469 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4345 } | 4470 } |
4346 inline ::capnp::Text::Builder Node::Parameter::Builder::getName() { | 4471 inline ::capnp::Text::Builder Node::Parameter::Builder::getName() { |
4347 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4472 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4348 _builder.getPointerField(0 * ::capnp::POINTERS)); | 4473 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4349 } | 4474 } |
4350 inline void Node::Parameter::Builder::setName( ::capnp::Text::Reader value) { | 4475 inline void Node::Parameter::Builder::setName( ::capnp::Text::Reader value) { |
4351 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 4476 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4352 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 4477 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4353 } | 4478 } |
4354 inline ::capnp::Text::Builder Node::Parameter::Builder::initName(unsigned int size) { | 4479 inline ::capnp::Text::Builder Node::Parameter::Builder::initName(unsigned int size) { |
4355 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 4480 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4356 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 4481 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4357 } | 4482 } |
4358 inline void Node::Parameter::Builder::adoptName( | 4483 inline void Node::Parameter::Builder::adoptName( |
4359 ::capnp::Orphan< ::capnp::Text>&& value) { | 4484 ::capnp::Orphan< ::capnp::Text>&& value) { |
4360 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 4485 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4361 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 4486 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4362 } | 4487 } |
4363 inline ::capnp::Orphan< ::capnp::Text> Node::Parameter::Builder::disownName() { | 4488 inline ::capnp::Orphan< ::capnp::Text> Node::Parameter::Builder::disownName() { |
4364 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 4489 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4365 _builder.getPointerField(0 * ::capnp::POINTERS)); | 4490 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4366 } | 4491 } |
4367 | 4492 |
4368 inline bool Node::NestedNode::Reader::hasName() const { | 4493 inline bool Node::NestedNode::Reader::hasName() const { |
4369 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4494 return !_reader.getPointerField( |
4495 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4370 } | 4496 } |
4371 inline bool Node::NestedNode::Builder::hasName() { | 4497 inline bool Node::NestedNode::Builder::hasName() { |
4372 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4498 return !_builder.getPointerField( |
4499 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4373 } | 4500 } |
4374 inline ::capnp::Text::Reader Node::NestedNode::Reader::getName() const { | 4501 inline ::capnp::Text::Reader Node::NestedNode::Reader::getName() const { |
4375 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4502 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4376 _reader.getPointerField(0 * ::capnp::POINTERS)); | 4503 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4377 } | 4504 } |
4378 inline ::capnp::Text::Builder Node::NestedNode::Builder::getName() { | 4505 inline ::capnp::Text::Builder Node::NestedNode::Builder::getName() { |
4379 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4506 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4380 _builder.getPointerField(0 * ::capnp::POINTERS)); | 4507 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4381 } | 4508 } |
4382 inline void Node::NestedNode::Builder::setName( ::capnp::Text::Reader value) { | 4509 inline void Node::NestedNode::Builder::setName( ::capnp::Text::Reader value) { |
4383 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 4510 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4384 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 4511 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4385 } | 4512 } |
4386 inline ::capnp::Text::Builder Node::NestedNode::Builder::initName(unsigned int size) { | 4513 inline ::capnp::Text::Builder Node::NestedNode::Builder::initName(unsigned int size) { |
4387 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 4514 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4388 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 4515 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4389 } | 4516 } |
4390 inline void Node::NestedNode::Builder::adoptName( | 4517 inline void Node::NestedNode::Builder::adoptName( |
4391 ::capnp::Orphan< ::capnp::Text>&& value) { | 4518 ::capnp::Orphan< ::capnp::Text>&& value) { |
4392 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 4519 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4393 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 4520 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4394 } | 4521 } |
4395 inline ::capnp::Orphan< ::capnp::Text> Node::NestedNode::Builder::disownName() { | 4522 inline ::capnp::Orphan< ::capnp::Text> Node::NestedNode::Builder::disownName() { |
4396 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 4523 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4397 _builder.getPointerField(0 * ::capnp::POINTERS)); | 4524 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4398 } | 4525 } |
4399 | 4526 |
4400 inline ::uint64_t Node::NestedNode::Reader::getId() const { | 4527 inline ::uint64_t Node::NestedNode::Reader::getId() const { |
4401 return _reader.getDataField< ::uint64_t>( | 4528 return _reader.getDataField< ::uint64_t>( |
4402 0 * ::capnp::ELEMENTS); | 4529 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4403 } | 4530 } |
4404 | 4531 |
4405 inline ::uint64_t Node::NestedNode::Builder::getId() { | 4532 inline ::uint64_t Node::NestedNode::Builder::getId() { |
4406 return _builder.getDataField< ::uint64_t>( | 4533 return _builder.getDataField< ::uint64_t>( |
4407 0 * ::capnp::ELEMENTS); | 4534 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4408 } | 4535 } |
4409 inline void Node::NestedNode::Builder::setId( ::uint64_t value) { | 4536 inline void Node::NestedNode::Builder::setId( ::uint64_t value) { |
4410 _builder.setDataField< ::uint64_t>( | 4537 _builder.setDataField< ::uint64_t>( |
4411 0 * ::capnp::ELEMENTS, value); | 4538 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4412 } | 4539 } |
4413 | 4540 |
4414 inline ::uint16_t Node::Struct::Reader::getDataWordCount() const { | 4541 inline ::uint16_t Node::Struct::Reader::getDataWordCount() const { |
4415 return _reader.getDataField< ::uint16_t>( | 4542 return _reader.getDataField< ::uint16_t>( |
4416 7 * ::capnp::ELEMENTS); | 4543 ::capnp::bounded<7>() * ::capnp::ELEMENTS); |
4417 } | 4544 } |
4418 | 4545 |
4419 inline ::uint16_t Node::Struct::Builder::getDataWordCount() { | 4546 inline ::uint16_t Node::Struct::Builder::getDataWordCount() { |
4420 return _builder.getDataField< ::uint16_t>( | 4547 return _builder.getDataField< ::uint16_t>( |
4421 7 * ::capnp::ELEMENTS); | 4548 ::capnp::bounded<7>() * ::capnp::ELEMENTS); |
4422 } | 4549 } |
4423 inline void Node::Struct::Builder::setDataWordCount( ::uint16_t value) { | 4550 inline void Node::Struct::Builder::setDataWordCount( ::uint16_t value) { |
4424 _builder.setDataField< ::uint16_t>( | 4551 _builder.setDataField< ::uint16_t>( |
4425 7 * ::capnp::ELEMENTS, value); | 4552 ::capnp::bounded<7>() * ::capnp::ELEMENTS, value); |
4426 } | 4553 } |
4427 | 4554 |
4428 inline ::uint16_t Node::Struct::Reader::getPointerCount() const { | 4555 inline ::uint16_t Node::Struct::Reader::getPointerCount() const { |
4429 return _reader.getDataField< ::uint16_t>( | 4556 return _reader.getDataField< ::uint16_t>( |
4430 12 * ::capnp::ELEMENTS); | 4557 ::capnp::bounded<12>() * ::capnp::ELEMENTS); |
4431 } | 4558 } |
4432 | 4559 |
4433 inline ::uint16_t Node::Struct::Builder::getPointerCount() { | 4560 inline ::uint16_t Node::Struct::Builder::getPointerCount() { |
4434 return _builder.getDataField< ::uint16_t>( | 4561 return _builder.getDataField< ::uint16_t>( |
4435 12 * ::capnp::ELEMENTS); | 4562 ::capnp::bounded<12>() * ::capnp::ELEMENTS); |
4436 } | 4563 } |
4437 inline void Node::Struct::Builder::setPointerCount( ::uint16_t value) { | 4564 inline void Node::Struct::Builder::setPointerCount( ::uint16_t value) { |
4438 _builder.setDataField< ::uint16_t>( | 4565 _builder.setDataField< ::uint16_t>( |
4439 12 * ::capnp::ELEMENTS, value); | 4566 ::capnp::bounded<12>() * ::capnp::ELEMENTS, value); |
4440 } | 4567 } |
4441 | 4568 |
4442 inline ::capnp::schema::ElementSize Node::Struct::Reader::getPreferredListEncoding() const { | 4569 inline ::capnp::schema::ElementSize Node::Struct::Reader::getPreferredListEncoding() const { |
4443 return _reader.getDataField< ::capnp::schema::ElementSize>( | 4570 return _reader.getDataField< ::capnp::schema::ElementSize>( |
4444 13 * ::capnp::ELEMENTS); | 4571 ::capnp::bounded<13>() * ::capnp::ELEMENTS); |
4445 } | 4572 } |
4446 | 4573 |
4447 inline ::capnp::schema::ElementSize Node::Struct::Builder::getPreferredListEncoding() { | 4574 inline ::capnp::schema::ElementSize Node::Struct::Builder::getPreferredListEncoding() { |
4448 return _builder.getDataField< ::capnp::schema::ElementSize>( | 4575 return _builder.getDataField< ::capnp::schema::ElementSize>( |
4449 13 * ::capnp::ELEMENTS); | 4576 ::capnp::bounded<13>() * ::capnp::ELEMENTS); |
4450 } | 4577 } |
4451 inline void Node::Struct::Builder::setPreferredListEncoding( ::capnp::schema::ElementSize value) { | 4578 inline void Node::Struct::Builder::setPreferredListEncoding( ::capnp::schema::ElementSize value) { |
4452 _builder.setDataField< ::capnp::schema::ElementSize>( | 4579 _builder.setDataField< ::capnp::schema::ElementSize>( |
4453 13 * ::capnp::ELEMENTS, value); | 4580 ::capnp::bounded<13>() * ::capnp::ELEMENTS, value); |
4454 } | 4581 } |
4455 | 4582 |
4456 inline bool Node::Struct::Reader::getIsGroup() const { | 4583 inline bool Node::Struct::Reader::getIsGroup() const { |
4457 return _reader.getDataField<bool>( | 4584 return _reader.getDataField<bool>( |
4458 224 * ::capnp::ELEMENTS); | 4585 ::capnp::bounded<224>() * ::capnp::ELEMENTS); |
4459 } | 4586 } |
4460 | 4587 |
4461 inline bool Node::Struct::Builder::getIsGroup() { | 4588 inline bool Node::Struct::Builder::getIsGroup() { |
4462 return _builder.getDataField<bool>( | 4589 return _builder.getDataField<bool>( |
4463 224 * ::capnp::ELEMENTS); | 4590 ::capnp::bounded<224>() * ::capnp::ELEMENTS); |
4464 } | 4591 } |
4465 inline void Node::Struct::Builder::setIsGroup(bool value) { | 4592 inline void Node::Struct::Builder::setIsGroup(bool value) { |
4466 _builder.setDataField<bool>( | 4593 _builder.setDataField<bool>( |
4467 224 * ::capnp::ELEMENTS, value); | 4594 ::capnp::bounded<224>() * ::capnp::ELEMENTS, value); |
4468 } | 4595 } |
4469 | 4596 |
4470 inline ::uint16_t Node::Struct::Reader::getDiscriminantCount() const { | 4597 inline ::uint16_t Node::Struct::Reader::getDiscriminantCount() const { |
4471 return _reader.getDataField< ::uint16_t>( | 4598 return _reader.getDataField< ::uint16_t>( |
4472 15 * ::capnp::ELEMENTS); | 4599 ::capnp::bounded<15>() * ::capnp::ELEMENTS); |
4473 } | 4600 } |
4474 | 4601 |
4475 inline ::uint16_t Node::Struct::Builder::getDiscriminantCount() { | 4602 inline ::uint16_t Node::Struct::Builder::getDiscriminantCount() { |
4476 return _builder.getDataField< ::uint16_t>( | 4603 return _builder.getDataField< ::uint16_t>( |
4477 15 * ::capnp::ELEMENTS); | 4604 ::capnp::bounded<15>() * ::capnp::ELEMENTS); |
4478 } | 4605 } |
4479 inline void Node::Struct::Builder::setDiscriminantCount( ::uint16_t value) { | 4606 inline void Node::Struct::Builder::setDiscriminantCount( ::uint16_t value) { |
4480 _builder.setDataField< ::uint16_t>( | 4607 _builder.setDataField< ::uint16_t>( |
4481 15 * ::capnp::ELEMENTS, value); | 4608 ::capnp::bounded<15>() * ::capnp::ELEMENTS, value); |
4482 } | 4609 } |
4483 | 4610 |
4484 inline ::uint32_t Node::Struct::Reader::getDiscriminantOffset() const { | 4611 inline ::uint32_t Node::Struct::Reader::getDiscriminantOffset() const { |
4485 return _reader.getDataField< ::uint32_t>( | 4612 return _reader.getDataField< ::uint32_t>( |
4486 8 * ::capnp::ELEMENTS); | 4613 ::capnp::bounded<8>() * ::capnp::ELEMENTS); |
4487 } | 4614 } |
4488 | 4615 |
4489 inline ::uint32_t Node::Struct::Builder::getDiscriminantOffset() { | 4616 inline ::uint32_t Node::Struct::Builder::getDiscriminantOffset() { |
4490 return _builder.getDataField< ::uint32_t>( | 4617 return _builder.getDataField< ::uint32_t>( |
4491 8 * ::capnp::ELEMENTS); | 4618 ::capnp::bounded<8>() * ::capnp::ELEMENTS); |
4492 } | 4619 } |
4493 inline void Node::Struct::Builder::setDiscriminantOffset( ::uint32_t value) { | 4620 inline void Node::Struct::Builder::setDiscriminantOffset( ::uint32_t value) { |
4494 _builder.setDataField< ::uint32_t>( | 4621 _builder.setDataField< ::uint32_t>( |
4495 8 * ::capnp::ELEMENTS, value); | 4622 ::capnp::bounded<8>() * ::capnp::ELEMENTS, value); |
4496 } | 4623 } |
4497 | 4624 |
4498 inline bool Node::Struct::Reader::hasFields() const { | 4625 inline bool Node::Struct::Reader::hasFields() const { |
4499 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4626 return !_reader.getPointerField( |
4627 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4500 } | 4628 } |
4501 inline bool Node::Struct::Builder::hasFields() { | 4629 inline bool Node::Struct::Builder::hasFields() { |
4502 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4630 return !_builder.getPointerField( |
4631 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4503 } | 4632 } |
4504 inline ::capnp::List< ::capnp::schema::Field>::Reader Node::Struct::Reader::getFields() const { | 4633 inline ::capnp::List< ::capnp::schema::Field>::Reader Node::Struct::Reader::getFields() const { |
4505 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::get( | 4634 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::get(_reader.getPointerField( |
4506 _reader.getPointerField(3 * ::capnp::POINTERS)); | 4635 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4507 } | 4636 } |
4508 inline ::capnp::List< ::capnp::schema::Field>::Builder Node::Struct::Builder::getFields() { | 4637 inline ::capnp::List< ::capnp::schema::Field>::Builder Node::Struct::Builder::getFields() { |
4509 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::get( | 4638 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::get(_builder.getPointerField( |
4510 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4639 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4511 } | 4640 } |
4512 inline void Node::Struct::Builder::setFields( ::capnp::List< ::capnp::schema::Field>::Reader value) { | 4641 inline void Node::Struct::Builder::setFields( ::capnp::List< ::capnp::schema::Field>::Reader value) { |
4513 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::set( | 4642 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::set(_builder.getPointerField( |
4514 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 4643 ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
4515 } | 4644 } |
4516 inline ::capnp::List< ::capnp::schema::Field>::Builder Node::Struct::Builder::initFields(unsigned int size) { | 4645 inline ::capnp::List< ::capnp::schema::Field>::Builder Node::Struct::Builder::initFields(unsigned int size) { |
4517 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::init( | 4646 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::init(_builder.getPointerField( |
4518 _builder.getPointerField(3 * ::capnp::POINTERS), size); | 4647 ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
4519 } | 4648 } |
4520 inline void Node::Struct::Builder::adoptFields( | 4649 inline void Node::Struct::Builder::adoptFields( |
4521 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>>&& value) { | 4650 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>>&& value) { |
4522 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::adopt( | 4651 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::adopt(_builder.getPointerField( |
4523 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 4652 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
4524 } | 4653 } |
4525 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>> Node::Struct::Builder::disownFields() { | 4654 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field>> Node::Struct::Builder::disownFields() { |
4526 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::disown( | 4655 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field>>::disown(_builder.getPointerField( |
4527 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4656 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4528 } | 4657 } |
4529 | 4658 |
4530 inline bool Node::Enum::Reader::hasEnumerants() const { | 4659 inline bool Node::Enum::Reader::hasEnumerants() const { |
4531 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4660 return !_reader.getPointerField( |
4661 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4532 } | 4662 } |
4533 inline bool Node::Enum::Builder::hasEnumerants() { | 4663 inline bool Node::Enum::Builder::hasEnumerants() { |
4534 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4664 return !_builder.getPointerField( |
4665 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4535 } | 4666 } |
4536 inline ::capnp::List< ::capnp::schema::Enumerant>::Reader Node::Enum::Reader::getEnumerants() const { | 4667 inline ::capnp::List< ::capnp::schema::Enumerant>::Reader Node::Enum::Reader::getEnumerants() const { |
4537 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::get( | 4668 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::get(_reader.getPointerField( |
4538 _reader.getPointerField(3 * ::capnp::POINTERS)); | 4669 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4539 } | 4670 } |
4540 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder Node::Enum::Builder::getEnumerants() { | 4671 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder Node::Enum::Builder::getEnumerants() { |
4541 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::get( | 4672 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::get(_builder.getPointerField( |
4542 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4673 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4543 } | 4674 } |
4544 inline void Node::Enum::Builder::setEnumerants( ::capnp::List< ::capnp::schema::Enumerant>::Reader value) { | 4675 inline void Node::Enum::Builder::setEnumerants( ::capnp::List< ::capnp::schema::Enumerant>::Reader value) { |
4545 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::set( | 4676 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::set(_builder.getPointerField( |
4546 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 4677 ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
4547 } | 4678 } |
4548 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder Node::Enum::Builder::initEnumerants(unsigned int size) { | 4679 inline ::capnp::List< ::capnp::schema::Enumerant>::Builder Node::Enum::Builder::initEnumerants(unsigned int size) { |
4549 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::init( | 4680 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::init(_builder.getPointerField( |
4550 _builder.getPointerField(3 * ::capnp::POINTERS), size); | 4681 ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
4551 } | 4682 } |
4552 inline void Node::Enum::Builder::adoptEnumerants( | 4683 inline void Node::Enum::Builder::adoptEnumerants( |
4553 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>>&& value) { | 4684 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>>&& value) { |
4554 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::adopt( | 4685 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::adopt(_builder.getPointerField( |
4555 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 4686 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
4556 } | 4687 } |
4557 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>> Node::Enum::Builder::disownEnumerants() { | 4688 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant>> Node::Enum::Builder::disownEnumerants() { |
4558 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::disown( | 4689 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant>>::disown(_builder.getPointerField( |
4559 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4690 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4560 } | 4691 } |
4561 | 4692 |
4562 inline bool Node::Interface::Reader::hasMethods() const { | 4693 inline bool Node::Interface::Reader::hasMethods() const { |
4563 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4694 return !_reader.getPointerField( |
4695 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4564 } | 4696 } |
4565 inline bool Node::Interface::Builder::hasMethods() { | 4697 inline bool Node::Interface::Builder::hasMethods() { |
4566 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4698 return !_builder.getPointerField( |
4699 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4567 } | 4700 } |
4568 inline ::capnp::List< ::capnp::schema::Method>::Reader Node::Interface::Reader::getMethods() const { | 4701 inline ::capnp::List< ::capnp::schema::Method>::Reader Node::Interface::Reader::getMethods() const { |
4569 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::get( | 4702 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::get(_reader.getPointerField( |
4570 _reader.getPointerField(3 * ::capnp::POINTERS)); | 4703 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4571 } | 4704 } |
4572 inline ::capnp::List< ::capnp::schema::Method>::Builder Node::Interface::Builder::getMethods() { | 4705 inline ::capnp::List< ::capnp::schema::Method>::Builder Node::Interface::Builder::getMethods() { |
4573 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::get( | 4706 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::get(_builder.getPointerField( |
4574 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4707 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4575 } | 4708 } |
4576 inline void Node::Interface::Builder::setMethods( ::capnp::List< ::capnp::schema::Method>::Reader value) { | 4709 inline void Node::Interface::Builder::setMethods( ::capnp::List< ::capnp::schema::Method>::Reader value) { |
4577 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::set( | 4710 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::set(_builder.getPointerField( |
4578 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 4711 ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
4579 } | 4712 } |
4580 inline ::capnp::List< ::capnp::schema::Method>::Builder Node::Interface::Builder::initMethods(unsigned int size) { | 4713 inline ::capnp::List< ::capnp::schema::Method>::Builder Node::Interface::Builder::initMethods(unsigned int size) { |
4581 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::init( | 4714 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::init(_builder.getPointerField( |
4582 _builder.getPointerField(3 * ::capnp::POINTERS), size); | 4715 ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
4583 } | 4716 } |
4584 inline void Node::Interface::Builder::adoptMethods( | 4717 inline void Node::Interface::Builder::adoptMethods( |
4585 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>>&& value) { | 4718 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>>&& value) { |
4586 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::adopt( | 4719 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::adopt(_builder.getPointerField( |
4587 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 4720 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
4588 } | 4721 } |
4589 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>> Node::Interface::Builder::disownMethods() { | 4722 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method>> Node::Interface::Builder::disownMethods() { |
4590 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::disown( | 4723 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method>>::disown(_builder.getPointerField( |
4591 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4724 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4592 } | 4725 } |
4593 | 4726 |
4594 inline bool Node::Interface::Reader::hasSuperclasses() const { | 4727 inline bool Node::Interface::Reader::hasSuperclasses() const { |
4595 return !_reader.getPointerField(4 * ::capnp::POINTERS).isNull(); | 4728 return !_reader.getPointerField( |
4729 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
4596 } | 4730 } |
4597 inline bool Node::Interface::Builder::hasSuperclasses() { | 4731 inline bool Node::Interface::Builder::hasSuperclasses() { |
4598 return !_builder.getPointerField(4 * ::capnp::POINTERS).isNull(); | 4732 return !_builder.getPointerField( |
4733 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
4599 } | 4734 } |
4600 inline ::capnp::List< ::capnp::schema::Superclass>::Reader Node::Interface::Reader::getSuperclasses() const { | 4735 inline ::capnp::List< ::capnp::schema::Superclass>::Reader Node::Interface::Reader::getSuperclasses() const { |
4601 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::get( | 4736 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::get(_reader.getPointerField( |
4602 _reader.getPointerField(4 * ::capnp::POINTERS)); | 4737 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
4603 } | 4738 } |
4604 inline ::capnp::List< ::capnp::schema::Superclass>::Builder Node::Interface::Builder::getSuperclasses() { | 4739 inline ::capnp::List< ::capnp::schema::Superclass>::Builder Node::Interface::Builder::getSuperclasses() { |
4605 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::get( | 4740 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::get(_builder.getPointerField( |
4606 _builder.getPointerField(4 * ::capnp::POINTERS)); | 4741 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
4607 } | 4742 } |
4608 inline void Node::Interface::Builder::setSuperclasses( ::capnp::List< ::capnp::schema::Superclass>::Reader value) { | 4743 inline void Node::Interface::Builder::setSuperclasses( ::capnp::List< ::capnp::schema::Superclass>::Reader value) { |
4609 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::set( | 4744 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::set(_builder.getPointerField( |
4610 _builder.getPointerField(4 * ::capnp::POINTERS), value); | 4745 ::capnp::bounded<4>() * ::capnp::POINTERS), value); |
4611 } | 4746 } |
4612 inline ::capnp::List< ::capnp::schema::Superclass>::Builder Node::Interface::Builder::initSuperclasses(unsigned int size) { | 4747 inline ::capnp::List< ::capnp::schema::Superclass>::Builder Node::Interface::Builder::initSuperclasses(unsigned int size) { |
4613 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::init( | 4748 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::init(_builder.getPointerField( |
4614 _builder.getPointerField(4 * ::capnp::POINTERS), size); | 4749 ::capnp::bounded<4>() * ::capnp::POINTERS), size); |
4615 } | 4750 } |
4616 inline void Node::Interface::Builder::adoptSuperclasses( | 4751 inline void Node::Interface::Builder::adoptSuperclasses( |
4617 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>>&& value) { | 4752 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>>&& value) { |
4618 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::adopt( | 4753 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::adopt(_builder.getPointerField( |
4619 _builder.getPointerField(4 * ::capnp::POINTERS), kj::mv(value)); | 4754 ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); |
4620 } | 4755 } |
4621 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>> Node::Interface::Builder::disownSuperclasses() { | 4756 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass>> Node::Interface::Builder::disownSuperclasses() { |
4622 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::disown( | 4757 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass>>::disown(_builder.getPointerField( |
4623 _builder.getPointerField(4 * ::capnp::POINTERS)); | 4758 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
4624 } | 4759 } |
4625 | 4760 |
4626 inline bool Node::Const::Reader::hasType() const { | 4761 inline bool Node::Const::Reader::hasType() const { |
4627 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4762 return !_reader.getPointerField( |
4763 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4628 } | 4764 } |
4629 inline bool Node::Const::Builder::hasType() { | 4765 inline bool Node::Const::Builder::hasType() { |
4630 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4766 return !_builder.getPointerField( |
4767 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4631 } | 4768 } |
4632 inline ::capnp::schema::Type::Reader Node::Const::Reader::getType() const { | 4769 inline ::capnp::schema::Type::Reader Node::Const::Reader::getType() const { |
4633 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 4770 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
4634 _reader.getPointerField(3 * ::capnp::POINTERS)); | 4771 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4635 } | 4772 } |
4636 inline ::capnp::schema::Type::Builder Node::Const::Builder::getType() { | 4773 inline ::capnp::schema::Type::Builder Node::Const::Builder::getType() { |
4637 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 4774 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
4638 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4775 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4639 } | 4776 } |
4640 #if !CAPNP_LITE | 4777 #if !CAPNP_LITE |
4641 inline ::capnp::schema::Type::Pipeline Node::Const::Pipeline::getType() { | 4778 inline ::capnp::schema::Type::Pipeline Node::Const::Pipeline::getType() { |
4642 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); | 4779 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); |
4643 } | 4780 } |
4644 #endif // !CAPNP_LITE | 4781 #endif // !CAPNP_LITE |
4645 inline void Node::Const::Builder::setType( ::capnp::schema::Type::Reader value) { | 4782 inline void Node::Const::Builder::setType( ::capnp::schema::Type::Reader value) { |
4646 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | 4783 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
4647 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 4784 ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
4648 } | 4785 } |
4649 inline ::capnp::schema::Type::Builder Node::Const::Builder::initType() { | 4786 inline ::capnp::schema::Type::Builder Node::Const::Builder::initType() { |
4650 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | 4787 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
4651 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4788 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4652 } | 4789 } |
4653 inline void Node::Const::Builder::adoptType( | 4790 inline void Node::Const::Builder::adoptType( |
4654 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | 4791 ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
4655 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | 4792 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
4656 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 4793 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
4657 } | 4794 } |
4658 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Const::Builder::disownType() { | 4795 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Const::Builder::disownType() { |
4659 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | 4796 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
4660 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4797 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4661 } | 4798 } |
4662 | 4799 |
4663 inline bool Node::Const::Reader::hasValue() const { | 4800 inline bool Node::Const::Reader::hasValue() const { |
4664 return !_reader.getPointerField(4 * ::capnp::POINTERS).isNull(); | 4801 return !_reader.getPointerField( |
4802 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
4665 } | 4803 } |
4666 inline bool Node::Const::Builder::hasValue() { | 4804 inline bool Node::Const::Builder::hasValue() { |
4667 return !_builder.getPointerField(4 * ::capnp::POINTERS).isNull(); | 4805 return !_builder.getPointerField( |
4806 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
4668 } | 4807 } |
4669 inline ::capnp::schema::Value::Reader Node::Const::Reader::getValue() const { | 4808 inline ::capnp::schema::Value::Reader Node::Const::Reader::getValue() const { |
4670 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | 4809 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( |
4671 _reader.getPointerField(4 * ::capnp::POINTERS)); | 4810 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
4672 } | 4811 } |
4673 inline ::capnp::schema::Value::Builder Node::Const::Builder::getValue() { | 4812 inline ::capnp::schema::Value::Builder Node::Const::Builder::getValue() { |
4674 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | 4813 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( |
4675 _builder.getPointerField(4 * ::capnp::POINTERS)); | 4814 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
4676 } | 4815 } |
4677 #if !CAPNP_LITE | 4816 #if !CAPNP_LITE |
4678 inline ::capnp::schema::Value::Pipeline Node::Const::Pipeline::getValue() { | 4817 inline ::capnp::schema::Value::Pipeline Node::Const::Pipeline::getValue() { |
4679 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(4)); | 4818 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(4)); |
4680 } | 4819 } |
4681 #endif // !CAPNP_LITE | 4820 #endif // !CAPNP_LITE |
4682 inline void Node::Const::Builder::setValue( ::capnp::schema::Value::Reader value) { | 4821 inline void Node::Const::Builder::setValue( ::capnp::schema::Value::Reader value) { |
4683 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set( | 4822 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( |
4684 _builder.getPointerField(4 * ::capnp::POINTERS), value); | 4823 ::capnp::bounded<4>() * ::capnp::POINTERS), value); |
4685 } | 4824 } |
4686 inline ::capnp::schema::Value::Builder Node::Const::Builder::initValue() { | 4825 inline ::capnp::schema::Value::Builder Node::Const::Builder::initValue() { |
4687 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init( | 4826 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( |
4688 _builder.getPointerField(4 * ::capnp::POINTERS)); | 4827 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
4689 } | 4828 } |
4690 inline void Node::Const::Builder::adoptValue( | 4829 inline void Node::Const::Builder::adoptValue( |
4691 ::capnp::Orphan< ::capnp::schema::Value>&& value) { | 4830 ::capnp::Orphan< ::capnp::schema::Value>&& value) { |
4692 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt( | 4831 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( |
4693 _builder.getPointerField(4 * ::capnp::POINTERS), kj::mv(value)); | 4832 ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); |
4694 } | 4833 } |
4695 inline ::capnp::Orphan< ::capnp::schema::Value> Node::Const::Builder::disownValue() { | 4834 inline ::capnp::Orphan< ::capnp::schema::Value> Node::Const::Builder::disownValue() { |
4696 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown( | 4835 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( |
4697 _builder.getPointerField(4 * ::capnp::POINTERS)); | 4836 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
4698 } | 4837 } |
4699 | 4838 |
4700 inline bool Node::Annotation::Reader::hasType() const { | 4839 inline bool Node::Annotation::Reader::hasType() const { |
4701 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4840 return !_reader.getPointerField( |
4841 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4702 } | 4842 } |
4703 inline bool Node::Annotation::Builder::hasType() { | 4843 inline bool Node::Annotation::Builder::hasType() { |
4704 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4844 return !_builder.getPointerField( |
4845 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
4705 } | 4846 } |
4706 inline ::capnp::schema::Type::Reader Node::Annotation::Reader::getType() const { | 4847 inline ::capnp::schema::Type::Reader Node::Annotation::Reader::getType() const { |
4707 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 4848 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
4708 _reader.getPointerField(3 * ::capnp::POINTERS)); | 4849 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4709 } | 4850 } |
4710 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::getType() { | 4851 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::getType() { |
4711 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 4852 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
4712 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4853 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4713 } | 4854 } |
4714 #if !CAPNP_LITE | 4855 #if !CAPNP_LITE |
4715 inline ::capnp::schema::Type::Pipeline Node::Annotation::Pipeline::getType() { | 4856 inline ::capnp::schema::Type::Pipeline Node::Annotation::Pipeline::getType() { |
4716 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); | 4857 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); |
4717 } | 4858 } |
4718 #endif // !CAPNP_LITE | 4859 #endif // !CAPNP_LITE |
4719 inline void Node::Annotation::Builder::setType( ::capnp::schema::Type::Reader value) { | 4860 inline void Node::Annotation::Builder::setType( ::capnp::schema::Type::Reader value) { |
4720 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | 4861 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
4721 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 4862 ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
4722 } | 4863 } |
4723 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::initType() { | 4864 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::initType() { |
4724 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | 4865 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
4725 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4866 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4726 } | 4867 } |
4727 inline void Node::Annotation::Builder::adoptType( | 4868 inline void Node::Annotation::Builder::adoptType( |
4728 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | 4869 ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
4729 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | 4870 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
4730 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 4871 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
4731 } | 4872 } |
4732 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Annotation::Builder::disownType() { | 4873 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Annotation::Builder::disownType() { |
4733 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | 4874 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
4734 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4875 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
4735 } | 4876 } |
4736 | 4877 |
4737 inline bool Node::Annotation::Reader::getTargetsFile() const { | 4878 inline bool Node::Annotation::Reader::getTargetsFile() const { |
4738 return _reader.getDataField<bool>( | 4879 return _reader.getDataField<bool>( |
4739 112 * ::capnp::ELEMENTS); | 4880 ::capnp::bounded<112>() * ::capnp::ELEMENTS); |
4740 } | 4881 } |
4741 | 4882 |
4742 inline bool Node::Annotation::Builder::getTargetsFile() { | 4883 inline bool Node::Annotation::Builder::getTargetsFile() { |
4743 return _builder.getDataField<bool>( | 4884 return _builder.getDataField<bool>( |
4744 112 * ::capnp::ELEMENTS); | 4885 ::capnp::bounded<112>() * ::capnp::ELEMENTS); |
4745 } | 4886 } |
4746 inline void Node::Annotation::Builder::setTargetsFile(bool value) { | 4887 inline void Node::Annotation::Builder::setTargetsFile(bool value) { |
4747 _builder.setDataField<bool>( | 4888 _builder.setDataField<bool>( |
4748 112 * ::capnp::ELEMENTS, value); | 4889 ::capnp::bounded<112>() * ::capnp::ELEMENTS, value); |
4749 } | 4890 } |
4750 | 4891 |
4751 inline bool Node::Annotation::Reader::getTargetsConst() const { | 4892 inline bool Node::Annotation::Reader::getTargetsConst() const { |
4752 return _reader.getDataField<bool>( | 4893 return _reader.getDataField<bool>( |
4753 113 * ::capnp::ELEMENTS); | 4894 ::capnp::bounded<113>() * ::capnp::ELEMENTS); |
4754 } | 4895 } |
4755 | 4896 |
4756 inline bool Node::Annotation::Builder::getTargetsConst() { | 4897 inline bool Node::Annotation::Builder::getTargetsConst() { |
4757 return _builder.getDataField<bool>( | 4898 return _builder.getDataField<bool>( |
4758 113 * ::capnp::ELEMENTS); | 4899 ::capnp::bounded<113>() * ::capnp::ELEMENTS); |
4759 } | 4900 } |
4760 inline void Node::Annotation::Builder::setTargetsConst(bool value) { | 4901 inline void Node::Annotation::Builder::setTargetsConst(bool value) { |
4761 _builder.setDataField<bool>( | 4902 _builder.setDataField<bool>( |
4762 113 * ::capnp::ELEMENTS, value); | 4903 ::capnp::bounded<113>() * ::capnp::ELEMENTS, value); |
4763 } | 4904 } |
4764 | 4905 |
4765 inline bool Node::Annotation::Reader::getTargetsEnum() const { | 4906 inline bool Node::Annotation::Reader::getTargetsEnum() const { |
4766 return _reader.getDataField<bool>( | 4907 return _reader.getDataField<bool>( |
4767 114 * ::capnp::ELEMENTS); | 4908 ::capnp::bounded<114>() * ::capnp::ELEMENTS); |
4768 } | 4909 } |
4769 | 4910 |
4770 inline bool Node::Annotation::Builder::getTargetsEnum() { | 4911 inline bool Node::Annotation::Builder::getTargetsEnum() { |
4771 return _builder.getDataField<bool>( | 4912 return _builder.getDataField<bool>( |
4772 114 * ::capnp::ELEMENTS); | 4913 ::capnp::bounded<114>() * ::capnp::ELEMENTS); |
4773 } | 4914 } |
4774 inline void Node::Annotation::Builder::setTargetsEnum(bool value) { | 4915 inline void Node::Annotation::Builder::setTargetsEnum(bool value) { |
4775 _builder.setDataField<bool>( | 4916 _builder.setDataField<bool>( |
4776 114 * ::capnp::ELEMENTS, value); | 4917 ::capnp::bounded<114>() * ::capnp::ELEMENTS, value); |
4777 } | 4918 } |
4778 | 4919 |
4779 inline bool Node::Annotation::Reader::getTargetsEnumerant() const { | 4920 inline bool Node::Annotation::Reader::getTargetsEnumerant() const { |
4780 return _reader.getDataField<bool>( | 4921 return _reader.getDataField<bool>( |
4781 115 * ::capnp::ELEMENTS); | 4922 ::capnp::bounded<115>() * ::capnp::ELEMENTS); |
4782 } | 4923 } |
4783 | 4924 |
4784 inline bool Node::Annotation::Builder::getTargetsEnumerant() { | 4925 inline bool Node::Annotation::Builder::getTargetsEnumerant() { |
4785 return _builder.getDataField<bool>( | 4926 return _builder.getDataField<bool>( |
4786 115 * ::capnp::ELEMENTS); | 4927 ::capnp::bounded<115>() * ::capnp::ELEMENTS); |
4787 } | 4928 } |
4788 inline void Node::Annotation::Builder::setTargetsEnumerant(bool value) { | 4929 inline void Node::Annotation::Builder::setTargetsEnumerant(bool value) { |
4789 _builder.setDataField<bool>( | 4930 _builder.setDataField<bool>( |
4790 115 * ::capnp::ELEMENTS, value); | 4931 ::capnp::bounded<115>() * ::capnp::ELEMENTS, value); |
4791 } | 4932 } |
4792 | 4933 |
4793 inline bool Node::Annotation::Reader::getTargetsStruct() const { | 4934 inline bool Node::Annotation::Reader::getTargetsStruct() const { |
4794 return _reader.getDataField<bool>( | 4935 return _reader.getDataField<bool>( |
4795 116 * ::capnp::ELEMENTS); | 4936 ::capnp::bounded<116>() * ::capnp::ELEMENTS); |
4796 } | 4937 } |
4797 | 4938 |
4798 inline bool Node::Annotation::Builder::getTargetsStruct() { | 4939 inline bool Node::Annotation::Builder::getTargetsStruct() { |
4799 return _builder.getDataField<bool>( | 4940 return _builder.getDataField<bool>( |
4800 116 * ::capnp::ELEMENTS); | 4941 ::capnp::bounded<116>() * ::capnp::ELEMENTS); |
4801 } | 4942 } |
4802 inline void Node::Annotation::Builder::setTargetsStruct(bool value) { | 4943 inline void Node::Annotation::Builder::setTargetsStruct(bool value) { |
4803 _builder.setDataField<bool>( | 4944 _builder.setDataField<bool>( |
4804 116 * ::capnp::ELEMENTS, value); | 4945 ::capnp::bounded<116>() * ::capnp::ELEMENTS, value); |
4805 } | 4946 } |
4806 | 4947 |
4807 inline bool Node::Annotation::Reader::getTargetsField() const { | 4948 inline bool Node::Annotation::Reader::getTargetsField() const { |
4808 return _reader.getDataField<bool>( | 4949 return _reader.getDataField<bool>( |
4809 117 * ::capnp::ELEMENTS); | 4950 ::capnp::bounded<117>() * ::capnp::ELEMENTS); |
4810 } | 4951 } |
4811 | 4952 |
4812 inline bool Node::Annotation::Builder::getTargetsField() { | 4953 inline bool Node::Annotation::Builder::getTargetsField() { |
4813 return _builder.getDataField<bool>( | 4954 return _builder.getDataField<bool>( |
4814 117 * ::capnp::ELEMENTS); | 4955 ::capnp::bounded<117>() * ::capnp::ELEMENTS); |
4815 } | 4956 } |
4816 inline void Node::Annotation::Builder::setTargetsField(bool value) { | 4957 inline void Node::Annotation::Builder::setTargetsField(bool value) { |
4817 _builder.setDataField<bool>( | 4958 _builder.setDataField<bool>( |
4818 117 * ::capnp::ELEMENTS, value); | 4959 ::capnp::bounded<117>() * ::capnp::ELEMENTS, value); |
4819 } | 4960 } |
4820 | 4961 |
4821 inline bool Node::Annotation::Reader::getTargetsUnion() const { | 4962 inline bool Node::Annotation::Reader::getTargetsUnion() const { |
4822 return _reader.getDataField<bool>( | 4963 return _reader.getDataField<bool>( |
4823 118 * ::capnp::ELEMENTS); | 4964 ::capnp::bounded<118>() * ::capnp::ELEMENTS); |
4824 } | 4965 } |
4825 | 4966 |
4826 inline bool Node::Annotation::Builder::getTargetsUnion() { | 4967 inline bool Node::Annotation::Builder::getTargetsUnion() { |
4827 return _builder.getDataField<bool>( | 4968 return _builder.getDataField<bool>( |
4828 118 * ::capnp::ELEMENTS); | 4969 ::capnp::bounded<118>() * ::capnp::ELEMENTS); |
4829 } | 4970 } |
4830 inline void Node::Annotation::Builder::setTargetsUnion(bool value) { | 4971 inline void Node::Annotation::Builder::setTargetsUnion(bool value) { |
4831 _builder.setDataField<bool>( | 4972 _builder.setDataField<bool>( |
4832 118 * ::capnp::ELEMENTS, value); | 4973 ::capnp::bounded<118>() * ::capnp::ELEMENTS, value); |
4833 } | 4974 } |
4834 | 4975 |
4835 inline bool Node::Annotation::Reader::getTargetsGroup() const { | 4976 inline bool Node::Annotation::Reader::getTargetsGroup() const { |
4836 return _reader.getDataField<bool>( | 4977 return _reader.getDataField<bool>( |
4837 119 * ::capnp::ELEMENTS); | 4978 ::capnp::bounded<119>() * ::capnp::ELEMENTS); |
4838 } | 4979 } |
4839 | 4980 |
4840 inline bool Node::Annotation::Builder::getTargetsGroup() { | 4981 inline bool Node::Annotation::Builder::getTargetsGroup() { |
4841 return _builder.getDataField<bool>( | 4982 return _builder.getDataField<bool>( |
4842 119 * ::capnp::ELEMENTS); | 4983 ::capnp::bounded<119>() * ::capnp::ELEMENTS); |
4843 } | 4984 } |
4844 inline void Node::Annotation::Builder::setTargetsGroup(bool value) { | 4985 inline void Node::Annotation::Builder::setTargetsGroup(bool value) { |
4845 _builder.setDataField<bool>( | 4986 _builder.setDataField<bool>( |
4846 119 * ::capnp::ELEMENTS, value); | 4987 ::capnp::bounded<119>() * ::capnp::ELEMENTS, value); |
4847 } | 4988 } |
4848 | 4989 |
4849 inline bool Node::Annotation::Reader::getTargetsInterface() const { | 4990 inline bool Node::Annotation::Reader::getTargetsInterface() const { |
4850 return _reader.getDataField<bool>( | 4991 return _reader.getDataField<bool>( |
4851 120 * ::capnp::ELEMENTS); | 4992 ::capnp::bounded<120>() * ::capnp::ELEMENTS); |
4852 } | 4993 } |
4853 | 4994 |
4854 inline bool Node::Annotation::Builder::getTargetsInterface() { | 4995 inline bool Node::Annotation::Builder::getTargetsInterface() { |
4855 return _builder.getDataField<bool>( | 4996 return _builder.getDataField<bool>( |
4856 120 * ::capnp::ELEMENTS); | 4997 ::capnp::bounded<120>() * ::capnp::ELEMENTS); |
4857 } | 4998 } |
4858 inline void Node::Annotation::Builder::setTargetsInterface(bool value) { | 4999 inline void Node::Annotation::Builder::setTargetsInterface(bool value) { |
4859 _builder.setDataField<bool>( | 5000 _builder.setDataField<bool>( |
4860 120 * ::capnp::ELEMENTS, value); | 5001 ::capnp::bounded<120>() * ::capnp::ELEMENTS, value); |
4861 } | 5002 } |
4862 | 5003 |
4863 inline bool Node::Annotation::Reader::getTargetsMethod() const { | 5004 inline bool Node::Annotation::Reader::getTargetsMethod() const { |
4864 return _reader.getDataField<bool>( | 5005 return _reader.getDataField<bool>( |
4865 121 * ::capnp::ELEMENTS); | 5006 ::capnp::bounded<121>() * ::capnp::ELEMENTS); |
4866 } | 5007 } |
4867 | 5008 |
4868 inline bool Node::Annotation::Builder::getTargetsMethod() { | 5009 inline bool Node::Annotation::Builder::getTargetsMethod() { |
4869 return _builder.getDataField<bool>( | 5010 return _builder.getDataField<bool>( |
4870 121 * ::capnp::ELEMENTS); | 5011 ::capnp::bounded<121>() * ::capnp::ELEMENTS); |
4871 } | 5012 } |
4872 inline void Node::Annotation::Builder::setTargetsMethod(bool value) { | 5013 inline void Node::Annotation::Builder::setTargetsMethod(bool value) { |
4873 _builder.setDataField<bool>( | 5014 _builder.setDataField<bool>( |
4874 121 * ::capnp::ELEMENTS, value); | 5015 ::capnp::bounded<121>() * ::capnp::ELEMENTS, value); |
4875 } | 5016 } |
4876 | 5017 |
4877 inline bool Node::Annotation::Reader::getTargetsParam() const { | 5018 inline bool Node::Annotation::Reader::getTargetsParam() const { |
4878 return _reader.getDataField<bool>( | 5019 return _reader.getDataField<bool>( |
4879 122 * ::capnp::ELEMENTS); | 5020 ::capnp::bounded<122>() * ::capnp::ELEMENTS); |
4880 } | 5021 } |
4881 | 5022 |
4882 inline bool Node::Annotation::Builder::getTargetsParam() { | 5023 inline bool Node::Annotation::Builder::getTargetsParam() { |
4883 return _builder.getDataField<bool>( | 5024 return _builder.getDataField<bool>( |
4884 122 * ::capnp::ELEMENTS); | 5025 ::capnp::bounded<122>() * ::capnp::ELEMENTS); |
4885 } | 5026 } |
4886 inline void Node::Annotation::Builder::setTargetsParam(bool value) { | 5027 inline void Node::Annotation::Builder::setTargetsParam(bool value) { |
4887 _builder.setDataField<bool>( | 5028 _builder.setDataField<bool>( |
4888 122 * ::capnp::ELEMENTS, value); | 5029 ::capnp::bounded<122>() * ::capnp::ELEMENTS, value); |
4889 } | 5030 } |
4890 | 5031 |
4891 inline bool Node::Annotation::Reader::getTargetsAnnotation() const { | 5032 inline bool Node::Annotation::Reader::getTargetsAnnotation() const { |
4892 return _reader.getDataField<bool>( | 5033 return _reader.getDataField<bool>( |
4893 123 * ::capnp::ELEMENTS); | 5034 ::capnp::bounded<123>() * ::capnp::ELEMENTS); |
4894 } | 5035 } |
4895 | 5036 |
4896 inline bool Node::Annotation::Builder::getTargetsAnnotation() { | 5037 inline bool Node::Annotation::Builder::getTargetsAnnotation() { |
4897 return _builder.getDataField<bool>( | 5038 return _builder.getDataField<bool>( |
4898 123 * ::capnp::ELEMENTS); | 5039 ::capnp::bounded<123>() * ::capnp::ELEMENTS); |
4899 } | 5040 } |
4900 inline void Node::Annotation::Builder::setTargetsAnnotation(bool value) { | 5041 inline void Node::Annotation::Builder::setTargetsAnnotation(bool value) { |
4901 _builder.setDataField<bool>( | 5042 _builder.setDataField<bool>( |
4902 123 * ::capnp::ELEMENTS, value); | 5043 ::capnp::bounded<123>() * ::capnp::ELEMENTS, value); |
4903 } | 5044 } |
4904 | 5045 |
4905 inline ::capnp::schema::Field::Which Field::Reader::which() const { | 5046 inline ::capnp::schema::Field::Which Field::Reader::which() const { |
4906 return _reader.getDataField<Which>(4 * ::capnp::ELEMENTS); | 5047 return _reader.getDataField<Which>( |
5048 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
4907 } | 5049 } |
4908 inline ::capnp::schema::Field::Which Field::Builder::which() { | 5050 inline ::capnp::schema::Field::Which Field::Builder::which() { |
4909 return _builder.getDataField<Which>(4 * ::capnp::ELEMENTS); | 5051 return _builder.getDataField<Which>( |
5052 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
4910 } | 5053 } |
4911 | 5054 |
4912 inline bool Field::Reader::hasName() const { | 5055 inline bool Field::Reader::hasName() const { |
4913 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5056 return !_reader.getPointerField( |
5057 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4914 } | 5058 } |
4915 inline bool Field::Builder::hasName() { | 5059 inline bool Field::Builder::hasName() { |
4916 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5060 return !_builder.getPointerField( |
5061 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
4917 } | 5062 } |
4918 inline ::capnp::Text::Reader Field::Reader::getName() const { | 5063 inline ::capnp::Text::Reader Field::Reader::getName() const { |
4919 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 5064 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
4920 _reader.getPointerField(0 * ::capnp::POINTERS)); | 5065 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4921 } | 5066 } |
4922 inline ::capnp::Text::Builder Field::Builder::getName() { | 5067 inline ::capnp::Text::Builder Field::Builder::getName() { |
4923 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 5068 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
4924 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5069 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4925 } | 5070 } |
4926 inline void Field::Builder::setName( ::capnp::Text::Reader value) { | 5071 inline void Field::Builder::setName( ::capnp::Text::Reader value) { |
4927 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 5072 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
4928 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 5073 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
4929 } | 5074 } |
4930 inline ::capnp::Text::Builder Field::Builder::initName(unsigned int size) { | 5075 inline ::capnp::Text::Builder Field::Builder::initName(unsigned int size) { |
4931 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 5076 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
4932 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 5077 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
4933 } | 5078 } |
4934 inline void Field::Builder::adoptName( | 5079 inline void Field::Builder::adoptName( |
4935 ::capnp::Orphan< ::capnp::Text>&& value) { | 5080 ::capnp::Orphan< ::capnp::Text>&& value) { |
4936 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 5081 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
4937 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 5082 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
4938 } | 5083 } |
4939 inline ::capnp::Orphan< ::capnp::Text> Field::Builder::disownName() { | 5084 inline ::capnp::Orphan< ::capnp::Text> Field::Builder::disownName() { |
4940 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 5085 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
4941 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5086 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
4942 } | 5087 } |
4943 | 5088 |
4944 inline ::uint16_t Field::Reader::getCodeOrder() const { | 5089 inline ::uint16_t Field::Reader::getCodeOrder() const { |
4945 return _reader.getDataField< ::uint16_t>( | 5090 return _reader.getDataField< ::uint16_t>( |
4946 0 * ::capnp::ELEMENTS); | 5091 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4947 } | 5092 } |
4948 | 5093 |
4949 inline ::uint16_t Field::Builder::getCodeOrder() { | 5094 inline ::uint16_t Field::Builder::getCodeOrder() { |
4950 return _builder.getDataField< ::uint16_t>( | 5095 return _builder.getDataField< ::uint16_t>( |
4951 0 * ::capnp::ELEMENTS); | 5096 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
4952 } | 5097 } |
4953 inline void Field::Builder::setCodeOrder( ::uint16_t value) { | 5098 inline void Field::Builder::setCodeOrder( ::uint16_t value) { |
4954 _builder.setDataField< ::uint16_t>( | 5099 _builder.setDataField< ::uint16_t>( |
4955 0 * ::capnp::ELEMENTS, value); | 5100 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
4956 } | 5101 } |
4957 | 5102 |
4958 inline bool Field::Reader::hasAnnotations() const { | 5103 inline bool Field::Reader::hasAnnotations() const { |
4959 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | 5104 return !_reader.getPointerField( |
5105 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
4960 } | 5106 } |
4961 inline bool Field::Builder::hasAnnotations() { | 5107 inline bool Field::Builder::hasAnnotations() { |
4962 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | 5108 return !_builder.getPointerField( |
5109 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
4963 } | 5110 } |
4964 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Field::Reader::getAnnotations() const { | 5111 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Field::Reader::getAnnotations() const { |
4965 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 5112 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_reader.getPointerField( |
4966 _reader.getPointerField(1 * ::capnp::POINTERS)); | 5113 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4967 } | 5114 } |
4968 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Field::Builder::getAnnotations() { | 5115 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Field::Builder::getAnnotations() { |
4969 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 5116 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_builder.getPointerField( |
4970 _builder.getPointerField(1 * ::capnp::POINTERS)); | 5117 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4971 } | 5118 } |
4972 inline void Field::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | 5119 inline void Field::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { |
4973 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | 5120 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set(_builder.getPointerField( |
4974 _builder.getPointerField(1 * ::capnp::POINTERS), value); | 5121 ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
4975 } | 5122 } |
4976 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Field::Builder::initAnnotations(unsigned int size) { | 5123 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Field::Builder::initAnnotations(unsigned int size) { |
4977 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | 5124 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init(_builder.getPointerField( |
4978 _builder.getPointerField(1 * ::capnp::POINTERS), size); | 5125 ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
4979 } | 5126 } |
4980 inline void Field::Builder::adoptAnnotations( | 5127 inline void Field::Builder::adoptAnnotations( |
4981 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | 5128 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { |
4982 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | 5129 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt(_builder.getPointerField( |
4983 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | 5130 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
4984 } | 5131 } |
4985 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Field::Builder::disownAnnotations() { | 5132 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Field::Builder::disownAnnotations() { |
4986 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | 5133 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown(_builder.getPointerField( |
4987 _builder.getPointerField(1 * ::capnp::POINTERS)); | 5134 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
4988 } | 5135 } |
4989 | 5136 |
4990 inline ::uint16_t Field::Reader::getDiscriminantValue() const { | 5137 inline ::uint16_t Field::Reader::getDiscriminantValue() const { |
4991 return _reader.getDataField< ::uint16_t>( | 5138 return _reader.getDataField< ::uint16_t>( |
4992 1 * ::capnp::ELEMENTS, 65535u); | 5139 ::capnp::bounded<1>() * ::capnp::ELEMENTS, 65535u); |
4993 } | 5140 } |
4994 | 5141 |
4995 inline ::uint16_t Field::Builder::getDiscriminantValue() { | 5142 inline ::uint16_t Field::Builder::getDiscriminantValue() { |
4996 return _builder.getDataField< ::uint16_t>( | 5143 return _builder.getDataField< ::uint16_t>( |
4997 1 * ::capnp::ELEMENTS, 65535u); | 5144 ::capnp::bounded<1>() * ::capnp::ELEMENTS, 65535u); |
4998 } | 5145 } |
4999 inline void Field::Builder::setDiscriminantValue( ::uint16_t value) { | 5146 inline void Field::Builder::setDiscriminantValue( ::uint16_t value) { |
5000 _builder.setDataField< ::uint16_t>( | 5147 _builder.setDataField< ::uint16_t>( |
5001 1 * ::capnp::ELEMENTS, value, 65535u); | 5148 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value, 65535u); |
5002 } | 5149 } |
5003 | 5150 |
5004 inline bool Field::Reader::isSlot() const { | 5151 inline bool Field::Reader::isSlot() const { |
5005 return which() == Field::SLOT; | 5152 return which() == Field::SLOT; |
5006 } | 5153 } |
5017 "Must check which() before get()ing a union member."); | 5164 "Must check which() before get()ing a union member."); |
5018 return typename Field::Slot::Builder(_builder); | 5165 return typename Field::Slot::Builder(_builder); |
5019 } | 5166 } |
5020 inline typename Field::Slot::Builder Field::Builder::initSlot() { | 5167 inline typename Field::Slot::Builder Field::Builder::initSlot() { |
5021 _builder.setDataField<Field::Which>( | 5168 _builder.setDataField<Field::Which>( |
5022 4 * ::capnp::ELEMENTS, Field::SLOT); | 5169 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Field::SLOT); |
5023 _builder.setDataField< ::uint32_t>(1 * ::capnp::ELEMENTS, 0); | 5170 _builder.setDataField< ::uint32_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
5024 _builder.setDataField<bool>(128 * ::capnp::ELEMENTS, 0); | 5171 _builder.setDataField<bool>(::capnp::bounded<128>() * ::capnp::ELEMENTS, 0); |
5025 _builder.getPointerField(2 * ::capnp::POINTERS).clear(); | 5172 _builder.getPointerField(::capnp::bounded<2>() * ::capnp::POINTERS).clear(); |
5026 _builder.getPointerField(3 * ::capnp::POINTERS).clear(); | 5173 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
5027 return typename Field::Slot::Builder(_builder); | 5174 return typename Field::Slot::Builder(_builder); |
5028 } | 5175 } |
5029 inline bool Field::Reader::isGroup() const { | 5176 inline bool Field::Reader::isGroup() const { |
5030 return which() == Field::GROUP; | 5177 return which() == Field::GROUP; |
5031 } | 5178 } |
5042 "Must check which() before get()ing a union member."); | 5189 "Must check which() before get()ing a union member."); |
5043 return typename Field::Group::Builder(_builder); | 5190 return typename Field::Group::Builder(_builder); |
5044 } | 5191 } |
5045 inline typename Field::Group::Builder Field::Builder::initGroup() { | 5192 inline typename Field::Group::Builder Field::Builder::initGroup() { |
5046 _builder.setDataField<Field::Which>( | 5193 _builder.setDataField<Field::Which>( |
5047 4 * ::capnp::ELEMENTS, Field::GROUP); | 5194 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Field::GROUP); |
5048 _builder.setDataField< ::uint64_t>(2 * ::capnp::ELEMENTS, 0); | 5195 _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); |
5049 return typename Field::Group::Builder(_builder); | 5196 return typename Field::Group::Builder(_builder); |
5050 } | 5197 } |
5051 inline typename Field::Ordinal::Reader Field::Reader::getOrdinal() const { | 5198 inline typename Field::Ordinal::Reader Field::Reader::getOrdinal() const { |
5052 return typename Field::Ordinal::Reader(_reader); | 5199 return typename Field::Ordinal::Reader(_reader); |
5053 } | 5200 } |
5058 inline typename Field::Ordinal::Pipeline Field::Pipeline::getOrdinal() { | 5205 inline typename Field::Ordinal::Pipeline Field::Pipeline::getOrdinal() { |
5059 return typename Field::Ordinal::Pipeline(_typeless.noop()); | 5206 return typename Field::Ordinal::Pipeline(_typeless.noop()); |
5060 } | 5207 } |
5061 #endif // !CAPNP_LITE | 5208 #endif // !CAPNP_LITE |
5062 inline typename Field::Ordinal::Builder Field::Builder::initOrdinal() { | 5209 inline typename Field::Ordinal::Builder Field::Builder::initOrdinal() { |
5063 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | 5210 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
5064 _builder.setDataField< ::uint16_t>(6 * ::capnp::ELEMENTS, 0); | 5211 _builder.setDataField< ::uint16_t>(::capnp::bounded<6>() * ::capnp::ELEMENTS, 0); |
5065 return typename Field::Ordinal::Builder(_builder); | 5212 return typename Field::Ordinal::Builder(_builder); |
5066 } | 5213 } |
5067 inline ::uint32_t Field::Slot::Reader::getOffset() const { | 5214 inline ::uint32_t Field::Slot::Reader::getOffset() const { |
5068 return _reader.getDataField< ::uint32_t>( | 5215 return _reader.getDataField< ::uint32_t>( |
5069 1 * ::capnp::ELEMENTS); | 5216 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5070 } | 5217 } |
5071 | 5218 |
5072 inline ::uint32_t Field::Slot::Builder::getOffset() { | 5219 inline ::uint32_t Field::Slot::Builder::getOffset() { |
5073 return _builder.getDataField< ::uint32_t>( | 5220 return _builder.getDataField< ::uint32_t>( |
5074 1 * ::capnp::ELEMENTS); | 5221 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5075 } | 5222 } |
5076 inline void Field::Slot::Builder::setOffset( ::uint32_t value) { | 5223 inline void Field::Slot::Builder::setOffset( ::uint32_t value) { |
5077 _builder.setDataField< ::uint32_t>( | 5224 _builder.setDataField< ::uint32_t>( |
5078 1 * ::capnp::ELEMENTS, value); | 5225 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
5079 } | 5226 } |
5080 | 5227 |
5081 inline bool Field::Slot::Reader::hasType() const { | 5228 inline bool Field::Slot::Reader::hasType() const { |
5082 return !_reader.getPointerField(2 * ::capnp::POINTERS).isNull(); | 5229 return !_reader.getPointerField( |
5230 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
5083 } | 5231 } |
5084 inline bool Field::Slot::Builder::hasType() { | 5232 inline bool Field::Slot::Builder::hasType() { |
5085 return !_builder.getPointerField(2 * ::capnp::POINTERS).isNull(); | 5233 return !_builder.getPointerField( |
5234 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
5086 } | 5235 } |
5087 inline ::capnp::schema::Type::Reader Field::Slot::Reader::getType() const { | 5236 inline ::capnp::schema::Type::Reader Field::Slot::Reader::getType() const { |
5088 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 5237 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
5089 _reader.getPointerField(2 * ::capnp::POINTERS)); | 5238 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5090 } | 5239 } |
5091 inline ::capnp::schema::Type::Builder Field::Slot::Builder::getType() { | 5240 inline ::capnp::schema::Type::Builder Field::Slot::Builder::getType() { |
5092 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 5241 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
5093 _builder.getPointerField(2 * ::capnp::POINTERS)); | 5242 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5094 } | 5243 } |
5095 #if !CAPNP_LITE | 5244 #if !CAPNP_LITE |
5096 inline ::capnp::schema::Type::Pipeline Field::Slot::Pipeline::getType() { | 5245 inline ::capnp::schema::Type::Pipeline Field::Slot::Pipeline::getType() { |
5097 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(2)); | 5246 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(2)); |
5098 } | 5247 } |
5099 #endif // !CAPNP_LITE | 5248 #endif // !CAPNP_LITE |
5100 inline void Field::Slot::Builder::setType( ::capnp::schema::Type::Reader value) { | 5249 inline void Field::Slot::Builder::setType( ::capnp::schema::Type::Reader value) { |
5101 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | 5250 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
5102 _builder.getPointerField(2 * ::capnp::POINTERS), value); | 5251 ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
5103 } | 5252 } |
5104 inline ::capnp::schema::Type::Builder Field::Slot::Builder::initType() { | 5253 inline ::capnp::schema::Type::Builder Field::Slot::Builder::initType() { |
5105 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | 5254 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
5106 _builder.getPointerField(2 * ::capnp::POINTERS)); | 5255 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5107 } | 5256 } |
5108 inline void Field::Slot::Builder::adoptType( | 5257 inline void Field::Slot::Builder::adoptType( |
5109 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | 5258 ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
5110 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | 5259 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
5111 _builder.getPointerField(2 * ::capnp::POINTERS), kj::mv(value)); | 5260 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
5112 } | 5261 } |
5113 inline ::capnp::Orphan< ::capnp::schema::Type> Field::Slot::Builder::disownType() { | 5262 inline ::capnp::Orphan< ::capnp::schema::Type> Field::Slot::Builder::disownType() { |
5114 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | 5263 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
5115 _builder.getPointerField(2 * ::capnp::POINTERS)); | 5264 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5116 } | 5265 } |
5117 | 5266 |
5118 inline bool Field::Slot::Reader::hasDefaultValue() const { | 5267 inline bool Field::Slot::Reader::hasDefaultValue() const { |
5119 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 5268 return !_reader.getPointerField( |
5269 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
5120 } | 5270 } |
5121 inline bool Field::Slot::Builder::hasDefaultValue() { | 5271 inline bool Field::Slot::Builder::hasDefaultValue() { |
5122 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 5272 return !_builder.getPointerField( |
5273 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
5123 } | 5274 } |
5124 inline ::capnp::schema::Value::Reader Field::Slot::Reader::getDefaultValue() const { | 5275 inline ::capnp::schema::Value::Reader Field::Slot::Reader::getDefaultValue() const { |
5125 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | 5276 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( |
5126 _reader.getPointerField(3 * ::capnp::POINTERS)); | 5277 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5127 } | 5278 } |
5128 inline ::capnp::schema::Value::Builder Field::Slot::Builder::getDefaultValue() { | 5279 inline ::capnp::schema::Value::Builder Field::Slot::Builder::getDefaultValue() { |
5129 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | 5280 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( |
5130 _builder.getPointerField(3 * ::capnp::POINTERS)); | 5281 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5131 } | 5282 } |
5132 #if !CAPNP_LITE | 5283 #if !CAPNP_LITE |
5133 inline ::capnp::schema::Value::Pipeline Field::Slot::Pipeline::getDefaultValue() { | 5284 inline ::capnp::schema::Value::Pipeline Field::Slot::Pipeline::getDefaultValue() { |
5134 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(3)); | 5285 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(3)); |
5135 } | 5286 } |
5136 #endif // !CAPNP_LITE | 5287 #endif // !CAPNP_LITE |
5137 inline void Field::Slot::Builder::setDefaultValue( ::capnp::schema::Value::Reader value) { | 5288 inline void Field::Slot::Builder::setDefaultValue( ::capnp::schema::Value::Reader value) { |
5138 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set( | 5289 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( |
5139 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 5290 ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
5140 } | 5291 } |
5141 inline ::capnp::schema::Value::Builder Field::Slot::Builder::initDefaultValue() { | 5292 inline ::capnp::schema::Value::Builder Field::Slot::Builder::initDefaultValue() { |
5142 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init( | 5293 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( |
5143 _builder.getPointerField(3 * ::capnp::POINTERS)); | 5294 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5144 } | 5295 } |
5145 inline void Field::Slot::Builder::adoptDefaultValue( | 5296 inline void Field::Slot::Builder::adoptDefaultValue( |
5146 ::capnp::Orphan< ::capnp::schema::Value>&& value) { | 5297 ::capnp::Orphan< ::capnp::schema::Value>&& value) { |
5147 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt( | 5298 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( |
5148 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 5299 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
5149 } | 5300 } |
5150 inline ::capnp::Orphan< ::capnp::schema::Value> Field::Slot::Builder::disownDefaultValue() { | 5301 inline ::capnp::Orphan< ::capnp::schema::Value> Field::Slot::Builder::disownDefaultValue() { |
5151 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown( | 5302 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( |
5152 _builder.getPointerField(3 * ::capnp::POINTERS)); | 5303 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5153 } | 5304 } |
5154 | 5305 |
5155 inline bool Field::Slot::Reader::getHadExplicitDefault() const { | 5306 inline bool Field::Slot::Reader::getHadExplicitDefault() const { |
5156 return _reader.getDataField<bool>( | 5307 return _reader.getDataField<bool>( |
5157 128 * ::capnp::ELEMENTS); | 5308 ::capnp::bounded<128>() * ::capnp::ELEMENTS); |
5158 } | 5309 } |
5159 | 5310 |
5160 inline bool Field::Slot::Builder::getHadExplicitDefault() { | 5311 inline bool Field::Slot::Builder::getHadExplicitDefault() { |
5161 return _builder.getDataField<bool>( | 5312 return _builder.getDataField<bool>( |
5162 128 * ::capnp::ELEMENTS); | 5313 ::capnp::bounded<128>() * ::capnp::ELEMENTS); |
5163 } | 5314 } |
5164 inline void Field::Slot::Builder::setHadExplicitDefault(bool value) { | 5315 inline void Field::Slot::Builder::setHadExplicitDefault(bool value) { |
5165 _builder.setDataField<bool>( | 5316 _builder.setDataField<bool>( |
5166 128 * ::capnp::ELEMENTS, value); | 5317 ::capnp::bounded<128>() * ::capnp::ELEMENTS, value); |
5167 } | 5318 } |
5168 | 5319 |
5169 inline ::uint64_t Field::Group::Reader::getTypeId() const { | 5320 inline ::uint64_t Field::Group::Reader::getTypeId() const { |
5170 return _reader.getDataField< ::uint64_t>( | 5321 return _reader.getDataField< ::uint64_t>( |
5171 2 * ::capnp::ELEMENTS); | 5322 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5172 } | 5323 } |
5173 | 5324 |
5174 inline ::uint64_t Field::Group::Builder::getTypeId() { | 5325 inline ::uint64_t Field::Group::Builder::getTypeId() { |
5175 return _builder.getDataField< ::uint64_t>( | 5326 return _builder.getDataField< ::uint64_t>( |
5176 2 * ::capnp::ELEMENTS); | 5327 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5177 } | 5328 } |
5178 inline void Field::Group::Builder::setTypeId( ::uint64_t value) { | 5329 inline void Field::Group::Builder::setTypeId( ::uint64_t value) { |
5179 _builder.setDataField< ::uint64_t>( | 5330 _builder.setDataField< ::uint64_t>( |
5180 2 * ::capnp::ELEMENTS, value); | 5331 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
5181 } | 5332 } |
5182 | 5333 |
5183 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Reader::which() const { | 5334 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Reader::which() const { |
5184 return _reader.getDataField<Which>(5 * ::capnp::ELEMENTS); | 5335 return _reader.getDataField<Which>( |
5336 ::capnp::bounded<5>() * ::capnp::ELEMENTS); | |
5185 } | 5337 } |
5186 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Builder::which() { | 5338 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Builder::which() { |
5187 return _builder.getDataField<Which>(5 * ::capnp::ELEMENTS); | 5339 return _builder.getDataField<Which>( |
5340 ::capnp::bounded<5>() * ::capnp::ELEMENTS); | |
5188 } | 5341 } |
5189 | 5342 |
5190 inline bool Field::Ordinal::Reader::isImplicit() const { | 5343 inline bool Field::Ordinal::Reader::isImplicit() const { |
5191 return which() == Field::Ordinal::IMPLICIT; | 5344 return which() == Field::Ordinal::IMPLICIT; |
5192 } | 5345 } |
5195 } | 5348 } |
5196 inline ::capnp::Void Field::Ordinal::Reader::getImplicit() const { | 5349 inline ::capnp::Void Field::Ordinal::Reader::getImplicit() const { |
5197 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), | 5350 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), |
5198 "Must check which() before get()ing a union member."); | 5351 "Must check which() before get()ing a union member."); |
5199 return _reader.getDataField< ::capnp::Void>( | 5352 return _reader.getDataField< ::capnp::Void>( |
5200 0 * ::capnp::ELEMENTS); | 5353 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5201 } | 5354 } |
5202 | 5355 |
5203 inline ::capnp::Void Field::Ordinal::Builder::getImplicit() { | 5356 inline ::capnp::Void Field::Ordinal::Builder::getImplicit() { |
5204 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), | 5357 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), |
5205 "Must check which() before get()ing a union member."); | 5358 "Must check which() before get()ing a union member."); |
5206 return _builder.getDataField< ::capnp::Void>( | 5359 return _builder.getDataField< ::capnp::Void>( |
5207 0 * ::capnp::ELEMENTS); | 5360 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5208 } | 5361 } |
5209 inline void Field::Ordinal::Builder::setImplicit( ::capnp::Void value) { | 5362 inline void Field::Ordinal::Builder::setImplicit( ::capnp::Void value) { |
5210 _builder.setDataField<Field::Ordinal::Which>( | 5363 _builder.setDataField<Field::Ordinal::Which>( |
5211 5 * ::capnp::ELEMENTS, Field::Ordinal::IMPLICIT); | 5364 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Field::Ordinal::IMPLICIT); |
5212 _builder.setDataField< ::capnp::Void>( | 5365 _builder.setDataField< ::capnp::Void>( |
5213 0 * ::capnp::ELEMENTS, value); | 5366 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5214 } | 5367 } |
5215 | 5368 |
5216 inline bool Field::Ordinal::Reader::isExplicit() const { | 5369 inline bool Field::Ordinal::Reader::isExplicit() const { |
5217 return which() == Field::Ordinal::EXPLICIT; | 5370 return which() == Field::Ordinal::EXPLICIT; |
5218 } | 5371 } |
5221 } | 5374 } |
5222 inline ::uint16_t Field::Ordinal::Reader::getExplicit() const { | 5375 inline ::uint16_t Field::Ordinal::Reader::getExplicit() const { |
5223 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), | 5376 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), |
5224 "Must check which() before get()ing a union member."); | 5377 "Must check which() before get()ing a union member."); |
5225 return _reader.getDataField< ::uint16_t>( | 5378 return _reader.getDataField< ::uint16_t>( |
5226 6 * ::capnp::ELEMENTS); | 5379 ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
5227 } | 5380 } |
5228 | 5381 |
5229 inline ::uint16_t Field::Ordinal::Builder::getExplicit() { | 5382 inline ::uint16_t Field::Ordinal::Builder::getExplicit() { |
5230 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), | 5383 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), |
5231 "Must check which() before get()ing a union member."); | 5384 "Must check which() before get()ing a union member."); |
5232 return _builder.getDataField< ::uint16_t>( | 5385 return _builder.getDataField< ::uint16_t>( |
5233 6 * ::capnp::ELEMENTS); | 5386 ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
5234 } | 5387 } |
5235 inline void Field::Ordinal::Builder::setExplicit( ::uint16_t value) { | 5388 inline void Field::Ordinal::Builder::setExplicit( ::uint16_t value) { |
5236 _builder.setDataField<Field::Ordinal::Which>( | 5389 _builder.setDataField<Field::Ordinal::Which>( |
5237 5 * ::capnp::ELEMENTS, Field::Ordinal::EXPLICIT); | 5390 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Field::Ordinal::EXPLICIT); |
5238 _builder.setDataField< ::uint16_t>( | 5391 _builder.setDataField< ::uint16_t>( |
5239 6 * ::capnp::ELEMENTS, value); | 5392 ::capnp::bounded<6>() * ::capnp::ELEMENTS, value); |
5240 } | 5393 } |
5241 | 5394 |
5242 inline bool Enumerant::Reader::hasName() const { | 5395 inline bool Enumerant::Reader::hasName() const { |
5243 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5396 return !_reader.getPointerField( |
5397 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
5244 } | 5398 } |
5245 inline bool Enumerant::Builder::hasName() { | 5399 inline bool Enumerant::Builder::hasName() { |
5246 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5400 return !_builder.getPointerField( |
5401 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
5247 } | 5402 } |
5248 inline ::capnp::Text::Reader Enumerant::Reader::getName() const { | 5403 inline ::capnp::Text::Reader Enumerant::Reader::getName() const { |
5249 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 5404 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
5250 _reader.getPointerField(0 * ::capnp::POINTERS)); | 5405 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5251 } | 5406 } |
5252 inline ::capnp::Text::Builder Enumerant::Builder::getName() { | 5407 inline ::capnp::Text::Builder Enumerant::Builder::getName() { |
5253 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 5408 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
5254 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5409 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5255 } | 5410 } |
5256 inline void Enumerant::Builder::setName( ::capnp::Text::Reader value) { | 5411 inline void Enumerant::Builder::setName( ::capnp::Text::Reader value) { |
5257 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 5412 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
5258 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 5413 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
5259 } | 5414 } |
5260 inline ::capnp::Text::Builder Enumerant::Builder::initName(unsigned int size) { | 5415 inline ::capnp::Text::Builder Enumerant::Builder::initName(unsigned int size) { |
5261 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 5416 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
5262 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 5417 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
5263 } | 5418 } |
5264 inline void Enumerant::Builder::adoptName( | 5419 inline void Enumerant::Builder::adoptName( |
5265 ::capnp::Orphan< ::capnp::Text>&& value) { | 5420 ::capnp::Orphan< ::capnp::Text>&& value) { |
5266 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 5421 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
5267 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 5422 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
5268 } | 5423 } |
5269 inline ::capnp::Orphan< ::capnp::Text> Enumerant::Builder::disownName() { | 5424 inline ::capnp::Orphan< ::capnp::Text> Enumerant::Builder::disownName() { |
5270 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 5425 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
5271 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5426 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5272 } | 5427 } |
5273 | 5428 |
5274 inline ::uint16_t Enumerant::Reader::getCodeOrder() const { | 5429 inline ::uint16_t Enumerant::Reader::getCodeOrder() const { |
5275 return _reader.getDataField< ::uint16_t>( | 5430 return _reader.getDataField< ::uint16_t>( |
5276 0 * ::capnp::ELEMENTS); | 5431 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5277 } | 5432 } |
5278 | 5433 |
5279 inline ::uint16_t Enumerant::Builder::getCodeOrder() { | 5434 inline ::uint16_t Enumerant::Builder::getCodeOrder() { |
5280 return _builder.getDataField< ::uint16_t>( | 5435 return _builder.getDataField< ::uint16_t>( |
5281 0 * ::capnp::ELEMENTS); | 5436 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5282 } | 5437 } |
5283 inline void Enumerant::Builder::setCodeOrder( ::uint16_t value) { | 5438 inline void Enumerant::Builder::setCodeOrder( ::uint16_t value) { |
5284 _builder.setDataField< ::uint16_t>( | 5439 _builder.setDataField< ::uint16_t>( |
5285 0 * ::capnp::ELEMENTS, value); | 5440 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5286 } | 5441 } |
5287 | 5442 |
5288 inline bool Enumerant::Reader::hasAnnotations() const { | 5443 inline bool Enumerant::Reader::hasAnnotations() const { |
5289 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | 5444 return !_reader.getPointerField( |
5445 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
5290 } | 5446 } |
5291 inline bool Enumerant::Builder::hasAnnotations() { | 5447 inline bool Enumerant::Builder::hasAnnotations() { |
5292 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | 5448 return !_builder.getPointerField( |
5449 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
5293 } | 5450 } |
5294 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Enumerant::Reader::getAnnotations() const { | 5451 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Enumerant::Reader::getAnnotations() const { |
5295 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 5452 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_reader.getPointerField( |
5296 _reader.getPointerField(1 * ::capnp::POINTERS)); | 5453 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5297 } | 5454 } |
5298 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Enumerant::Builder::getAnnotations() { | 5455 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Enumerant::Builder::getAnnotations() { |
5299 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 5456 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_builder.getPointerField( |
5300 _builder.getPointerField(1 * ::capnp::POINTERS)); | 5457 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5301 } | 5458 } |
5302 inline void Enumerant::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | 5459 inline void Enumerant::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { |
5303 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | 5460 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set(_builder.getPointerField( |
5304 _builder.getPointerField(1 * ::capnp::POINTERS), value); | 5461 ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
5305 } | 5462 } |
5306 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Enumerant::Builder::initAnnotations(unsigned int size) { | 5463 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Enumerant::Builder::initAnnotations(unsigned int size) { |
5307 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | 5464 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init(_builder.getPointerField( |
5308 _builder.getPointerField(1 * ::capnp::POINTERS), size); | 5465 ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
5309 } | 5466 } |
5310 inline void Enumerant::Builder::adoptAnnotations( | 5467 inline void Enumerant::Builder::adoptAnnotations( |
5311 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | 5468 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { |
5312 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | 5469 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt(_builder.getPointerField( |
5313 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | 5470 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
5314 } | 5471 } |
5315 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Enumerant::Builder::disownAnnotations() { | 5472 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Enumerant::Builder::disownAnnotations() { |
5316 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | 5473 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown(_builder.getPointerField( |
5317 _builder.getPointerField(1 * ::capnp::POINTERS)); | 5474 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5318 } | 5475 } |
5319 | 5476 |
5320 inline ::uint64_t Superclass::Reader::getId() const { | 5477 inline ::uint64_t Superclass::Reader::getId() const { |
5321 return _reader.getDataField< ::uint64_t>( | 5478 return _reader.getDataField< ::uint64_t>( |
5322 0 * ::capnp::ELEMENTS); | 5479 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5323 } | 5480 } |
5324 | 5481 |
5325 inline ::uint64_t Superclass::Builder::getId() { | 5482 inline ::uint64_t Superclass::Builder::getId() { |
5326 return _builder.getDataField< ::uint64_t>( | 5483 return _builder.getDataField< ::uint64_t>( |
5327 0 * ::capnp::ELEMENTS); | 5484 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5328 } | 5485 } |
5329 inline void Superclass::Builder::setId( ::uint64_t value) { | 5486 inline void Superclass::Builder::setId( ::uint64_t value) { |
5330 _builder.setDataField< ::uint64_t>( | 5487 _builder.setDataField< ::uint64_t>( |
5331 0 * ::capnp::ELEMENTS, value); | 5488 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5332 } | 5489 } |
5333 | 5490 |
5334 inline bool Superclass::Reader::hasBrand() const { | 5491 inline bool Superclass::Reader::hasBrand() const { |
5335 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5492 return !_reader.getPointerField( |
5493 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
5336 } | 5494 } |
5337 inline bool Superclass::Builder::hasBrand() { | 5495 inline bool Superclass::Builder::hasBrand() { |
5338 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5496 return !_builder.getPointerField( |
5497 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
5339 } | 5498 } |
5340 inline ::capnp::schema::Brand::Reader Superclass::Reader::getBrand() const { | 5499 inline ::capnp::schema::Brand::Reader Superclass::Reader::getBrand() const { |
5341 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 5500 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
5342 _reader.getPointerField(0 * ::capnp::POINTERS)); | 5501 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5343 } | 5502 } |
5344 inline ::capnp::schema::Brand::Builder Superclass::Builder::getBrand() { | 5503 inline ::capnp::schema::Brand::Builder Superclass::Builder::getBrand() { |
5345 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 5504 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
5346 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5505 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5347 } | 5506 } |
5348 #if !CAPNP_LITE | 5507 #if !CAPNP_LITE |
5349 inline ::capnp::schema::Brand::Pipeline Superclass::Pipeline::getBrand() { | 5508 inline ::capnp::schema::Brand::Pipeline Superclass::Pipeline::getBrand() { |
5350 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | 5509 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
5351 } | 5510 } |
5352 #endif // !CAPNP_LITE | 5511 #endif // !CAPNP_LITE |
5353 inline void Superclass::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | 5512 inline void Superclass::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
5354 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | 5513 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
5355 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 5514 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
5356 } | 5515 } |
5357 inline ::capnp::schema::Brand::Builder Superclass::Builder::initBrand() { | 5516 inline ::capnp::schema::Brand::Builder Superclass::Builder::initBrand() { |
5358 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | 5517 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
5359 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5518 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5360 } | 5519 } |
5361 inline void Superclass::Builder::adoptBrand( | 5520 inline void Superclass::Builder::adoptBrand( |
5362 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | 5521 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
5363 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | 5522 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
5364 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 5523 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
5365 } | 5524 } |
5366 inline ::capnp::Orphan< ::capnp::schema::Brand> Superclass::Builder::disownBrand() { | 5525 inline ::capnp::Orphan< ::capnp::schema::Brand> Superclass::Builder::disownBrand() { |
5367 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | 5526 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
5368 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5527 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5369 } | 5528 } |
5370 | 5529 |
5371 inline bool Method::Reader::hasName() const { | 5530 inline bool Method::Reader::hasName() const { |
5372 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5531 return !_reader.getPointerField( |
5532 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
5373 } | 5533 } |
5374 inline bool Method::Builder::hasName() { | 5534 inline bool Method::Builder::hasName() { |
5375 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 5535 return !_builder.getPointerField( |
5536 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
5376 } | 5537 } |
5377 inline ::capnp::Text::Reader Method::Reader::getName() const { | 5538 inline ::capnp::Text::Reader Method::Reader::getName() const { |
5378 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 5539 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
5379 _reader.getPointerField(0 * ::capnp::POINTERS)); | 5540 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5380 } | 5541 } |
5381 inline ::capnp::Text::Builder Method::Builder::getName() { | 5542 inline ::capnp::Text::Builder Method::Builder::getName() { |
5382 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 5543 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
5383 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5544 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5384 } | 5545 } |
5385 inline void Method::Builder::setName( ::capnp::Text::Reader value) { | 5546 inline void Method::Builder::setName( ::capnp::Text::Reader value) { |
5386 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 5547 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
5387 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 5548 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
5388 } | 5549 } |
5389 inline ::capnp::Text::Builder Method::Builder::initName(unsigned int size) { | 5550 inline ::capnp::Text::Builder Method::Builder::initName(unsigned int size) { |
5390 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 5551 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
5391 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 5552 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
5392 } | 5553 } |
5393 inline void Method::Builder::adoptName( | 5554 inline void Method::Builder::adoptName( |
5394 ::capnp::Orphan< ::capnp::Text>&& value) { | 5555 ::capnp::Orphan< ::capnp::Text>&& value) { |
5395 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 5556 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
5396 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 5557 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
5397 } | 5558 } |
5398 inline ::capnp::Orphan< ::capnp::Text> Method::Builder::disownName() { | 5559 inline ::capnp::Orphan< ::capnp::Text> Method::Builder::disownName() { |
5399 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 5560 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
5400 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5561 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
5401 } | 5562 } |
5402 | 5563 |
5403 inline ::uint16_t Method::Reader::getCodeOrder() const { | 5564 inline ::uint16_t Method::Reader::getCodeOrder() const { |
5404 return _reader.getDataField< ::uint16_t>( | 5565 return _reader.getDataField< ::uint16_t>( |
5405 0 * ::capnp::ELEMENTS); | 5566 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5406 } | 5567 } |
5407 | 5568 |
5408 inline ::uint16_t Method::Builder::getCodeOrder() { | 5569 inline ::uint16_t Method::Builder::getCodeOrder() { |
5409 return _builder.getDataField< ::uint16_t>( | 5570 return _builder.getDataField< ::uint16_t>( |
5410 0 * ::capnp::ELEMENTS); | 5571 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5411 } | 5572 } |
5412 inline void Method::Builder::setCodeOrder( ::uint16_t value) { | 5573 inline void Method::Builder::setCodeOrder( ::uint16_t value) { |
5413 _builder.setDataField< ::uint16_t>( | 5574 _builder.setDataField< ::uint16_t>( |
5414 0 * ::capnp::ELEMENTS, value); | 5575 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5415 } | 5576 } |
5416 | 5577 |
5417 inline ::uint64_t Method::Reader::getParamStructType() const { | 5578 inline ::uint64_t Method::Reader::getParamStructType() const { |
5418 return _reader.getDataField< ::uint64_t>( | 5579 return _reader.getDataField< ::uint64_t>( |
5419 1 * ::capnp::ELEMENTS); | 5580 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5420 } | 5581 } |
5421 | 5582 |
5422 inline ::uint64_t Method::Builder::getParamStructType() { | 5583 inline ::uint64_t Method::Builder::getParamStructType() { |
5423 return _builder.getDataField< ::uint64_t>( | 5584 return _builder.getDataField< ::uint64_t>( |
5424 1 * ::capnp::ELEMENTS); | 5585 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
5425 } | 5586 } |
5426 inline void Method::Builder::setParamStructType( ::uint64_t value) { | 5587 inline void Method::Builder::setParamStructType( ::uint64_t value) { |
5427 _builder.setDataField< ::uint64_t>( | 5588 _builder.setDataField< ::uint64_t>( |
5428 1 * ::capnp::ELEMENTS, value); | 5589 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
5429 } | 5590 } |
5430 | 5591 |
5431 inline ::uint64_t Method::Reader::getResultStructType() const { | 5592 inline ::uint64_t Method::Reader::getResultStructType() const { |
5432 return _reader.getDataField< ::uint64_t>( | 5593 return _reader.getDataField< ::uint64_t>( |
5433 2 * ::capnp::ELEMENTS); | 5594 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5434 } | 5595 } |
5435 | 5596 |
5436 inline ::uint64_t Method::Builder::getResultStructType() { | 5597 inline ::uint64_t Method::Builder::getResultStructType() { |
5437 return _builder.getDataField< ::uint64_t>( | 5598 return _builder.getDataField< ::uint64_t>( |
5438 2 * ::capnp::ELEMENTS); | 5599 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
5439 } | 5600 } |
5440 inline void Method::Builder::setResultStructType( ::uint64_t value) { | 5601 inline void Method::Builder::setResultStructType( ::uint64_t value) { |
5441 _builder.setDataField< ::uint64_t>( | 5602 _builder.setDataField< ::uint64_t>( |
5442 2 * ::capnp::ELEMENTS, value); | 5603 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
5443 } | 5604 } |
5444 | 5605 |
5445 inline bool Method::Reader::hasAnnotations() const { | 5606 inline bool Method::Reader::hasAnnotations() const { |
5446 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | 5607 return !_reader.getPointerField( |
5608 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
5447 } | 5609 } |
5448 inline bool Method::Builder::hasAnnotations() { | 5610 inline bool Method::Builder::hasAnnotations() { |
5449 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | 5611 return !_builder.getPointerField( |
5612 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
5450 } | 5613 } |
5451 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Method::Reader::getAnnotations() const { | 5614 inline ::capnp::List< ::capnp::schema::Annotation>::Reader Method::Reader::getAnnotations() const { |
5452 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 5615 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_reader.getPointerField( |
5453 _reader.getPointerField(1 * ::capnp::POINTERS)); | 5616 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5454 } | 5617 } |
5455 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Method::Builder::getAnnotations() { | 5618 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Method::Builder::getAnnotations() { |
5456 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get( | 5619 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::get(_builder.getPointerField( |
5457 _builder.getPointerField(1 * ::capnp::POINTERS)); | 5620 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5458 } | 5621 } |
5459 inline void Method::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { | 5622 inline void Method::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation>::Reader value) { |
5460 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set( | 5623 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::set(_builder.getPointerField( |
5461 _builder.getPointerField(1 * ::capnp::POINTERS), value); | 5624 ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
5462 } | 5625 } |
5463 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Method::Builder::initAnnotations(unsigned int size) { | 5626 inline ::capnp::List< ::capnp::schema::Annotation>::Builder Method::Builder::initAnnotations(unsigned int size) { |
5464 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init( | 5627 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::init(_builder.getPointerField( |
5465 _builder.getPointerField(1 * ::capnp::POINTERS), size); | 5628 ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
5466 } | 5629 } |
5467 inline void Method::Builder::adoptAnnotations( | 5630 inline void Method::Builder::adoptAnnotations( |
5468 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { | 5631 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>>&& value) { |
5469 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt( | 5632 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::adopt(_builder.getPointerField( |
5470 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | 5633 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
5471 } | 5634 } |
5472 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Method::Builder::disownAnnotations() { | 5635 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation>> Method::Builder::disownAnnotations() { |
5473 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown( | 5636 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation>>::disown(_builder.getPointerField( |
5474 _builder.getPointerField(1 * ::capnp::POINTERS)); | 5637 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
5475 } | 5638 } |
5476 | 5639 |
5477 inline bool Method::Reader::hasParamBrand() const { | 5640 inline bool Method::Reader::hasParamBrand() const { |
5478 return !_reader.getPointerField(2 * ::capnp::POINTERS).isNull(); | 5641 return !_reader.getPointerField( |
5642 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
5479 } | 5643 } |
5480 inline bool Method::Builder::hasParamBrand() { | 5644 inline bool Method::Builder::hasParamBrand() { |
5481 return !_builder.getPointerField(2 * ::capnp::POINTERS).isNull(); | 5645 return !_builder.getPointerField( |
5646 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
5482 } | 5647 } |
5483 inline ::capnp::schema::Brand::Reader Method::Reader::getParamBrand() const { | 5648 inline ::capnp::schema::Brand::Reader Method::Reader::getParamBrand() const { |
5484 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 5649 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
5485 _reader.getPointerField(2 * ::capnp::POINTERS)); | 5650 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5486 } | 5651 } |
5487 inline ::capnp::schema::Brand::Builder Method::Builder::getParamBrand() { | 5652 inline ::capnp::schema::Brand::Builder Method::Builder::getParamBrand() { |
5488 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 5653 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
5489 _builder.getPointerField(2 * ::capnp::POINTERS)); | 5654 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5490 } | 5655 } |
5491 #if !CAPNP_LITE | 5656 #if !CAPNP_LITE |
5492 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getParamBrand() { | 5657 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getParamBrand() { |
5493 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(2)); | 5658 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(2)); |
5494 } | 5659 } |
5495 #endif // !CAPNP_LITE | 5660 #endif // !CAPNP_LITE |
5496 inline void Method::Builder::setParamBrand( ::capnp::schema::Brand::Reader value) { | 5661 inline void Method::Builder::setParamBrand( ::capnp::schema::Brand::Reader value) { |
5497 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | 5662 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
5498 _builder.getPointerField(2 * ::capnp::POINTERS), value); | 5663 ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
5499 } | 5664 } |
5500 inline ::capnp::schema::Brand::Builder Method::Builder::initParamBrand() { | 5665 inline ::capnp::schema::Brand::Builder Method::Builder::initParamBrand() { |
5501 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | 5666 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
5502 _builder.getPointerField(2 * ::capnp::POINTERS)); | 5667 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5503 } | 5668 } |
5504 inline void Method::Builder::adoptParamBrand( | 5669 inline void Method::Builder::adoptParamBrand( |
5505 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | 5670 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
5506 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | 5671 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
5507 _builder.getPointerField(2 * ::capnp::POINTERS), kj::mv(value)); | 5672 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
5508 } | 5673 } |
5509 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownParamBrand() { | 5674 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownParamBrand() { |
5510 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | 5675 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
5511 _builder.getPointerField(2 * ::capnp::POINTERS)); | 5676 ::capnp::bounded<2>() * ::capnp::POINTERS)); |
5512 } | 5677 } |
5513 | 5678 |
5514 inline bool Method::Reader::hasResultBrand() const { | 5679 inline bool Method::Reader::hasResultBrand() const { |
5515 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 5680 return !_reader.getPointerField( |
5681 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
5516 } | 5682 } |
5517 inline bool Method::Builder::hasResultBrand() { | 5683 inline bool Method::Builder::hasResultBrand() { |
5518 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 5684 return !_builder.getPointerField( |
5685 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); | |
5519 } | 5686 } |
5520 inline ::capnp::schema::Brand::Reader Method::Reader::getResultBrand() const { | 5687 inline ::capnp::schema::Brand::Reader Method::Reader::getResultBrand() const { |
5521 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 5688 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
5522 _reader.getPointerField(3 * ::capnp::POINTERS)); | 5689 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5523 } | 5690 } |
5524 inline ::capnp::schema::Brand::Builder Method::Builder::getResultBrand() { | 5691 inline ::capnp::schema::Brand::Builder Method::Builder::getResultBrand() { |
5525 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 5692 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
5526 _builder.getPointerField(3 * ::capnp::POINTERS)); | 5693 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5527 } | 5694 } |
5528 #if !CAPNP_LITE | 5695 #if !CAPNP_LITE |
5529 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getResultBrand() { | 5696 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getResultBrand() { |
5530 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(3)); | 5697 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(3)); |
5531 } | 5698 } |
5532 #endif // !CAPNP_LITE | 5699 #endif // !CAPNP_LITE |
5533 inline void Method::Builder::setResultBrand( ::capnp::schema::Brand::Reader value) { | 5700 inline void Method::Builder::setResultBrand( ::capnp::schema::Brand::Reader value) { |
5534 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | 5701 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
5535 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 5702 ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
5536 } | 5703 } |
5537 inline ::capnp::schema::Brand::Builder Method::Builder::initResultBrand() { | 5704 inline ::capnp::schema::Brand::Builder Method::Builder::initResultBrand() { |
5538 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | 5705 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
5539 _builder.getPointerField(3 * ::capnp::POINTERS)); | 5706 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5540 } | 5707 } |
5541 inline void Method::Builder::adoptResultBrand( | 5708 inline void Method::Builder::adoptResultBrand( |
5542 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | 5709 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
5543 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | 5710 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
5544 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 5711 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
5545 } | 5712 } |
5546 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownResultBrand() { | 5713 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownResultBrand() { |
5547 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | 5714 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
5548 _builder.getPointerField(3 * ::capnp::POINTERS)); | 5715 ::capnp::bounded<3>() * ::capnp::POINTERS)); |
5549 } | 5716 } |
5550 | 5717 |
5551 inline bool Method::Reader::hasImplicitParameters() const { | 5718 inline bool Method::Reader::hasImplicitParameters() const { |
5552 return !_reader.getPointerField(4 * ::capnp::POINTERS).isNull(); | 5719 return !_reader.getPointerField( |
5720 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
5553 } | 5721 } |
5554 inline bool Method::Builder::hasImplicitParameters() { | 5722 inline bool Method::Builder::hasImplicitParameters() { |
5555 return !_builder.getPointerField(4 * ::capnp::POINTERS).isNull(); | 5723 return !_builder.getPointerField( |
5724 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); | |
5556 } | 5725 } |
5557 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader Method::Reader::getImplicitParameters() const { | 5726 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Reader Method::Reader::getImplicitParameters() const { |
5558 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | 5727 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get(_reader.getPointerField( |
5559 _reader.getPointerField(4 * ::capnp::POINTERS)); | 5728 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5560 } | 5729 } |
5561 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Method::Builder::getImplicitParameters() { | 5730 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Method::Builder::getImplicitParameters() { |
5562 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get( | 5731 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::get(_builder.getPointerField( |
5563 _builder.getPointerField(4 * ::capnp::POINTERS)); | 5732 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5564 } | 5733 } |
5565 inline void Method::Builder::setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value) { | 5734 inline void Method::Builder::setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter>::Reader value) { |
5566 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::set( | 5735 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::set(_builder.getPointerField( |
5567 _builder.getPointerField(4 * ::capnp::POINTERS), value); | 5736 ::capnp::bounded<4>() * ::capnp::POINTERS), value); |
5568 } | 5737 } |
5569 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Method::Builder::initImplicitParameters(unsigned int size) { | 5738 inline ::capnp::List< ::capnp::schema::Node::Parameter>::Builder Method::Builder::initImplicitParameters(unsigned int size) { |
5570 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::init( | 5739 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::init(_builder.getPointerField( |
5571 _builder.getPointerField(4 * ::capnp::POINTERS), size); | 5740 ::capnp::bounded<4>() * ::capnp::POINTERS), size); |
5572 } | 5741 } |
5573 inline void Method::Builder::adoptImplicitParameters( | 5742 inline void Method::Builder::adoptImplicitParameters( |
5574 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value) { | 5743 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>>&& value) { |
5575 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::adopt( | 5744 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::adopt(_builder.getPointerField( |
5576 _builder.getPointerField(4 * ::capnp::POINTERS), kj::mv(value)); | 5745 ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); |
5577 } | 5746 } |
5578 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> Method::Builder::disownImplicitParameters() { | 5747 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter>> Method::Builder::disownImplicitParameters() { |
5579 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::disown( | 5748 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter>>::disown(_builder.getPointerField( |
5580 _builder.getPointerField(4 * ::capnp::POINTERS)); | 5749 ::capnp::bounded<4>() * ::capnp::POINTERS)); |
5581 } | 5750 } |
5582 | 5751 |
5583 inline ::capnp::schema::Type::Which Type::Reader::which() const { | 5752 inline ::capnp::schema::Type::Which Type::Reader::which() const { |
5584 return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS); | 5753 return _reader.getDataField<Which>( |
5754 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
5585 } | 5755 } |
5586 inline ::capnp::schema::Type::Which Type::Builder::which() { | 5756 inline ::capnp::schema::Type::Which Type::Builder::which() { |
5587 return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS); | 5757 return _builder.getDataField<Which>( |
5758 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
5588 } | 5759 } |
5589 | 5760 |
5590 inline bool Type::Reader::isVoid() const { | 5761 inline bool Type::Reader::isVoid() const { |
5591 return which() == Type::VOID; | 5762 return which() == Type::VOID; |
5592 } | 5763 } |
5595 } | 5766 } |
5596 inline ::capnp::Void Type::Reader::getVoid() const { | 5767 inline ::capnp::Void Type::Reader::getVoid() const { |
5597 KJ_IREQUIRE((which() == Type::VOID), | 5768 KJ_IREQUIRE((which() == Type::VOID), |
5598 "Must check which() before get()ing a union member."); | 5769 "Must check which() before get()ing a union member."); |
5599 return _reader.getDataField< ::capnp::Void>( | 5770 return _reader.getDataField< ::capnp::Void>( |
5600 0 * ::capnp::ELEMENTS); | 5771 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5601 } | 5772 } |
5602 | 5773 |
5603 inline ::capnp::Void Type::Builder::getVoid() { | 5774 inline ::capnp::Void Type::Builder::getVoid() { |
5604 KJ_IREQUIRE((which() == Type::VOID), | 5775 KJ_IREQUIRE((which() == Type::VOID), |
5605 "Must check which() before get()ing a union member."); | 5776 "Must check which() before get()ing a union member."); |
5606 return _builder.getDataField< ::capnp::Void>( | 5777 return _builder.getDataField< ::capnp::Void>( |
5607 0 * ::capnp::ELEMENTS); | 5778 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5608 } | 5779 } |
5609 inline void Type::Builder::setVoid( ::capnp::Void value) { | 5780 inline void Type::Builder::setVoid( ::capnp::Void value) { |
5610 _builder.setDataField<Type::Which>( | 5781 _builder.setDataField<Type::Which>( |
5611 0 * ::capnp::ELEMENTS, Type::VOID); | 5782 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::VOID); |
5612 _builder.setDataField< ::capnp::Void>( | 5783 _builder.setDataField< ::capnp::Void>( |
5613 0 * ::capnp::ELEMENTS, value); | 5784 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5614 } | 5785 } |
5615 | 5786 |
5616 inline bool Type::Reader::isBool() const { | 5787 inline bool Type::Reader::isBool() const { |
5617 return which() == Type::BOOL; | 5788 return which() == Type::BOOL; |
5618 } | 5789 } |
5621 } | 5792 } |
5622 inline ::capnp::Void Type::Reader::getBool() const { | 5793 inline ::capnp::Void Type::Reader::getBool() const { |
5623 KJ_IREQUIRE((which() == Type::BOOL), | 5794 KJ_IREQUIRE((which() == Type::BOOL), |
5624 "Must check which() before get()ing a union member."); | 5795 "Must check which() before get()ing a union member."); |
5625 return _reader.getDataField< ::capnp::Void>( | 5796 return _reader.getDataField< ::capnp::Void>( |
5626 0 * ::capnp::ELEMENTS); | 5797 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5627 } | 5798 } |
5628 | 5799 |
5629 inline ::capnp::Void Type::Builder::getBool() { | 5800 inline ::capnp::Void Type::Builder::getBool() { |
5630 KJ_IREQUIRE((which() == Type::BOOL), | 5801 KJ_IREQUIRE((which() == Type::BOOL), |
5631 "Must check which() before get()ing a union member."); | 5802 "Must check which() before get()ing a union member."); |
5632 return _builder.getDataField< ::capnp::Void>( | 5803 return _builder.getDataField< ::capnp::Void>( |
5633 0 * ::capnp::ELEMENTS); | 5804 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5634 } | 5805 } |
5635 inline void Type::Builder::setBool( ::capnp::Void value) { | 5806 inline void Type::Builder::setBool( ::capnp::Void value) { |
5636 _builder.setDataField<Type::Which>( | 5807 _builder.setDataField<Type::Which>( |
5637 0 * ::capnp::ELEMENTS, Type::BOOL); | 5808 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::BOOL); |
5638 _builder.setDataField< ::capnp::Void>( | 5809 _builder.setDataField< ::capnp::Void>( |
5639 0 * ::capnp::ELEMENTS, value); | 5810 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5640 } | 5811 } |
5641 | 5812 |
5642 inline bool Type::Reader::isInt8() const { | 5813 inline bool Type::Reader::isInt8() const { |
5643 return which() == Type::INT8; | 5814 return which() == Type::INT8; |
5644 } | 5815 } |
5647 } | 5818 } |
5648 inline ::capnp::Void Type::Reader::getInt8() const { | 5819 inline ::capnp::Void Type::Reader::getInt8() const { |
5649 KJ_IREQUIRE((which() == Type::INT8), | 5820 KJ_IREQUIRE((which() == Type::INT8), |
5650 "Must check which() before get()ing a union member."); | 5821 "Must check which() before get()ing a union member."); |
5651 return _reader.getDataField< ::capnp::Void>( | 5822 return _reader.getDataField< ::capnp::Void>( |
5652 0 * ::capnp::ELEMENTS); | 5823 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5653 } | 5824 } |
5654 | 5825 |
5655 inline ::capnp::Void Type::Builder::getInt8() { | 5826 inline ::capnp::Void Type::Builder::getInt8() { |
5656 KJ_IREQUIRE((which() == Type::INT8), | 5827 KJ_IREQUIRE((which() == Type::INT8), |
5657 "Must check which() before get()ing a union member."); | 5828 "Must check which() before get()ing a union member."); |
5658 return _builder.getDataField< ::capnp::Void>( | 5829 return _builder.getDataField< ::capnp::Void>( |
5659 0 * ::capnp::ELEMENTS); | 5830 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5660 } | 5831 } |
5661 inline void Type::Builder::setInt8( ::capnp::Void value) { | 5832 inline void Type::Builder::setInt8( ::capnp::Void value) { |
5662 _builder.setDataField<Type::Which>( | 5833 _builder.setDataField<Type::Which>( |
5663 0 * ::capnp::ELEMENTS, Type::INT8); | 5834 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT8); |
5664 _builder.setDataField< ::capnp::Void>( | 5835 _builder.setDataField< ::capnp::Void>( |
5665 0 * ::capnp::ELEMENTS, value); | 5836 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5666 } | 5837 } |
5667 | 5838 |
5668 inline bool Type::Reader::isInt16() const { | 5839 inline bool Type::Reader::isInt16() const { |
5669 return which() == Type::INT16; | 5840 return which() == Type::INT16; |
5670 } | 5841 } |
5673 } | 5844 } |
5674 inline ::capnp::Void Type::Reader::getInt16() const { | 5845 inline ::capnp::Void Type::Reader::getInt16() const { |
5675 KJ_IREQUIRE((which() == Type::INT16), | 5846 KJ_IREQUIRE((which() == Type::INT16), |
5676 "Must check which() before get()ing a union member."); | 5847 "Must check which() before get()ing a union member."); |
5677 return _reader.getDataField< ::capnp::Void>( | 5848 return _reader.getDataField< ::capnp::Void>( |
5678 0 * ::capnp::ELEMENTS); | 5849 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5679 } | 5850 } |
5680 | 5851 |
5681 inline ::capnp::Void Type::Builder::getInt16() { | 5852 inline ::capnp::Void Type::Builder::getInt16() { |
5682 KJ_IREQUIRE((which() == Type::INT16), | 5853 KJ_IREQUIRE((which() == Type::INT16), |
5683 "Must check which() before get()ing a union member."); | 5854 "Must check which() before get()ing a union member."); |
5684 return _builder.getDataField< ::capnp::Void>( | 5855 return _builder.getDataField< ::capnp::Void>( |
5685 0 * ::capnp::ELEMENTS); | 5856 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5686 } | 5857 } |
5687 inline void Type::Builder::setInt16( ::capnp::Void value) { | 5858 inline void Type::Builder::setInt16( ::capnp::Void value) { |
5688 _builder.setDataField<Type::Which>( | 5859 _builder.setDataField<Type::Which>( |
5689 0 * ::capnp::ELEMENTS, Type::INT16); | 5860 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT16); |
5690 _builder.setDataField< ::capnp::Void>( | 5861 _builder.setDataField< ::capnp::Void>( |
5691 0 * ::capnp::ELEMENTS, value); | 5862 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5692 } | 5863 } |
5693 | 5864 |
5694 inline bool Type::Reader::isInt32() const { | 5865 inline bool Type::Reader::isInt32() const { |
5695 return which() == Type::INT32; | 5866 return which() == Type::INT32; |
5696 } | 5867 } |
5699 } | 5870 } |
5700 inline ::capnp::Void Type::Reader::getInt32() const { | 5871 inline ::capnp::Void Type::Reader::getInt32() const { |
5701 KJ_IREQUIRE((which() == Type::INT32), | 5872 KJ_IREQUIRE((which() == Type::INT32), |
5702 "Must check which() before get()ing a union member."); | 5873 "Must check which() before get()ing a union member."); |
5703 return _reader.getDataField< ::capnp::Void>( | 5874 return _reader.getDataField< ::capnp::Void>( |
5704 0 * ::capnp::ELEMENTS); | 5875 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5705 } | 5876 } |
5706 | 5877 |
5707 inline ::capnp::Void Type::Builder::getInt32() { | 5878 inline ::capnp::Void Type::Builder::getInt32() { |
5708 KJ_IREQUIRE((which() == Type::INT32), | 5879 KJ_IREQUIRE((which() == Type::INT32), |
5709 "Must check which() before get()ing a union member."); | 5880 "Must check which() before get()ing a union member."); |
5710 return _builder.getDataField< ::capnp::Void>( | 5881 return _builder.getDataField< ::capnp::Void>( |
5711 0 * ::capnp::ELEMENTS); | 5882 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5712 } | 5883 } |
5713 inline void Type::Builder::setInt32( ::capnp::Void value) { | 5884 inline void Type::Builder::setInt32( ::capnp::Void value) { |
5714 _builder.setDataField<Type::Which>( | 5885 _builder.setDataField<Type::Which>( |
5715 0 * ::capnp::ELEMENTS, Type::INT32); | 5886 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT32); |
5716 _builder.setDataField< ::capnp::Void>( | 5887 _builder.setDataField< ::capnp::Void>( |
5717 0 * ::capnp::ELEMENTS, value); | 5888 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5718 } | 5889 } |
5719 | 5890 |
5720 inline bool Type::Reader::isInt64() const { | 5891 inline bool Type::Reader::isInt64() const { |
5721 return which() == Type::INT64; | 5892 return which() == Type::INT64; |
5722 } | 5893 } |
5725 } | 5896 } |
5726 inline ::capnp::Void Type::Reader::getInt64() const { | 5897 inline ::capnp::Void Type::Reader::getInt64() const { |
5727 KJ_IREQUIRE((which() == Type::INT64), | 5898 KJ_IREQUIRE((which() == Type::INT64), |
5728 "Must check which() before get()ing a union member."); | 5899 "Must check which() before get()ing a union member."); |
5729 return _reader.getDataField< ::capnp::Void>( | 5900 return _reader.getDataField< ::capnp::Void>( |
5730 0 * ::capnp::ELEMENTS); | 5901 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5731 } | 5902 } |
5732 | 5903 |
5733 inline ::capnp::Void Type::Builder::getInt64() { | 5904 inline ::capnp::Void Type::Builder::getInt64() { |
5734 KJ_IREQUIRE((which() == Type::INT64), | 5905 KJ_IREQUIRE((which() == Type::INT64), |
5735 "Must check which() before get()ing a union member."); | 5906 "Must check which() before get()ing a union member."); |
5736 return _builder.getDataField< ::capnp::Void>( | 5907 return _builder.getDataField< ::capnp::Void>( |
5737 0 * ::capnp::ELEMENTS); | 5908 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5738 } | 5909 } |
5739 inline void Type::Builder::setInt64( ::capnp::Void value) { | 5910 inline void Type::Builder::setInt64( ::capnp::Void value) { |
5740 _builder.setDataField<Type::Which>( | 5911 _builder.setDataField<Type::Which>( |
5741 0 * ::capnp::ELEMENTS, Type::INT64); | 5912 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT64); |
5742 _builder.setDataField< ::capnp::Void>( | 5913 _builder.setDataField< ::capnp::Void>( |
5743 0 * ::capnp::ELEMENTS, value); | 5914 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5744 } | 5915 } |
5745 | 5916 |
5746 inline bool Type::Reader::isUint8() const { | 5917 inline bool Type::Reader::isUint8() const { |
5747 return which() == Type::UINT8; | 5918 return which() == Type::UINT8; |
5748 } | 5919 } |
5751 } | 5922 } |
5752 inline ::capnp::Void Type::Reader::getUint8() const { | 5923 inline ::capnp::Void Type::Reader::getUint8() const { |
5753 KJ_IREQUIRE((which() == Type::UINT8), | 5924 KJ_IREQUIRE((which() == Type::UINT8), |
5754 "Must check which() before get()ing a union member."); | 5925 "Must check which() before get()ing a union member."); |
5755 return _reader.getDataField< ::capnp::Void>( | 5926 return _reader.getDataField< ::capnp::Void>( |
5756 0 * ::capnp::ELEMENTS); | 5927 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5757 } | 5928 } |
5758 | 5929 |
5759 inline ::capnp::Void Type::Builder::getUint8() { | 5930 inline ::capnp::Void Type::Builder::getUint8() { |
5760 KJ_IREQUIRE((which() == Type::UINT8), | 5931 KJ_IREQUIRE((which() == Type::UINT8), |
5761 "Must check which() before get()ing a union member."); | 5932 "Must check which() before get()ing a union member."); |
5762 return _builder.getDataField< ::capnp::Void>( | 5933 return _builder.getDataField< ::capnp::Void>( |
5763 0 * ::capnp::ELEMENTS); | 5934 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5764 } | 5935 } |
5765 inline void Type::Builder::setUint8( ::capnp::Void value) { | 5936 inline void Type::Builder::setUint8( ::capnp::Void value) { |
5766 _builder.setDataField<Type::Which>( | 5937 _builder.setDataField<Type::Which>( |
5767 0 * ::capnp::ELEMENTS, Type::UINT8); | 5938 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT8); |
5768 _builder.setDataField< ::capnp::Void>( | 5939 _builder.setDataField< ::capnp::Void>( |
5769 0 * ::capnp::ELEMENTS, value); | 5940 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5770 } | 5941 } |
5771 | 5942 |
5772 inline bool Type::Reader::isUint16() const { | 5943 inline bool Type::Reader::isUint16() const { |
5773 return which() == Type::UINT16; | 5944 return which() == Type::UINT16; |
5774 } | 5945 } |
5777 } | 5948 } |
5778 inline ::capnp::Void Type::Reader::getUint16() const { | 5949 inline ::capnp::Void Type::Reader::getUint16() const { |
5779 KJ_IREQUIRE((which() == Type::UINT16), | 5950 KJ_IREQUIRE((which() == Type::UINT16), |
5780 "Must check which() before get()ing a union member."); | 5951 "Must check which() before get()ing a union member."); |
5781 return _reader.getDataField< ::capnp::Void>( | 5952 return _reader.getDataField< ::capnp::Void>( |
5782 0 * ::capnp::ELEMENTS); | 5953 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5783 } | 5954 } |
5784 | 5955 |
5785 inline ::capnp::Void Type::Builder::getUint16() { | 5956 inline ::capnp::Void Type::Builder::getUint16() { |
5786 KJ_IREQUIRE((which() == Type::UINT16), | 5957 KJ_IREQUIRE((which() == Type::UINT16), |
5787 "Must check which() before get()ing a union member."); | 5958 "Must check which() before get()ing a union member."); |
5788 return _builder.getDataField< ::capnp::Void>( | 5959 return _builder.getDataField< ::capnp::Void>( |
5789 0 * ::capnp::ELEMENTS); | 5960 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5790 } | 5961 } |
5791 inline void Type::Builder::setUint16( ::capnp::Void value) { | 5962 inline void Type::Builder::setUint16( ::capnp::Void value) { |
5792 _builder.setDataField<Type::Which>( | 5963 _builder.setDataField<Type::Which>( |
5793 0 * ::capnp::ELEMENTS, Type::UINT16); | 5964 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT16); |
5794 _builder.setDataField< ::capnp::Void>( | 5965 _builder.setDataField< ::capnp::Void>( |
5795 0 * ::capnp::ELEMENTS, value); | 5966 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5796 } | 5967 } |
5797 | 5968 |
5798 inline bool Type::Reader::isUint32() const { | 5969 inline bool Type::Reader::isUint32() const { |
5799 return which() == Type::UINT32; | 5970 return which() == Type::UINT32; |
5800 } | 5971 } |
5803 } | 5974 } |
5804 inline ::capnp::Void Type::Reader::getUint32() const { | 5975 inline ::capnp::Void Type::Reader::getUint32() const { |
5805 KJ_IREQUIRE((which() == Type::UINT32), | 5976 KJ_IREQUIRE((which() == Type::UINT32), |
5806 "Must check which() before get()ing a union member."); | 5977 "Must check which() before get()ing a union member."); |
5807 return _reader.getDataField< ::capnp::Void>( | 5978 return _reader.getDataField< ::capnp::Void>( |
5808 0 * ::capnp::ELEMENTS); | 5979 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5809 } | 5980 } |
5810 | 5981 |
5811 inline ::capnp::Void Type::Builder::getUint32() { | 5982 inline ::capnp::Void Type::Builder::getUint32() { |
5812 KJ_IREQUIRE((which() == Type::UINT32), | 5983 KJ_IREQUIRE((which() == Type::UINT32), |
5813 "Must check which() before get()ing a union member."); | 5984 "Must check which() before get()ing a union member."); |
5814 return _builder.getDataField< ::capnp::Void>( | 5985 return _builder.getDataField< ::capnp::Void>( |
5815 0 * ::capnp::ELEMENTS); | 5986 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5816 } | 5987 } |
5817 inline void Type::Builder::setUint32( ::capnp::Void value) { | 5988 inline void Type::Builder::setUint32( ::capnp::Void value) { |
5818 _builder.setDataField<Type::Which>( | 5989 _builder.setDataField<Type::Which>( |
5819 0 * ::capnp::ELEMENTS, Type::UINT32); | 5990 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT32); |
5820 _builder.setDataField< ::capnp::Void>( | 5991 _builder.setDataField< ::capnp::Void>( |
5821 0 * ::capnp::ELEMENTS, value); | 5992 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5822 } | 5993 } |
5823 | 5994 |
5824 inline bool Type::Reader::isUint64() const { | 5995 inline bool Type::Reader::isUint64() const { |
5825 return which() == Type::UINT64; | 5996 return which() == Type::UINT64; |
5826 } | 5997 } |
5829 } | 6000 } |
5830 inline ::capnp::Void Type::Reader::getUint64() const { | 6001 inline ::capnp::Void Type::Reader::getUint64() const { |
5831 KJ_IREQUIRE((which() == Type::UINT64), | 6002 KJ_IREQUIRE((which() == Type::UINT64), |
5832 "Must check which() before get()ing a union member."); | 6003 "Must check which() before get()ing a union member."); |
5833 return _reader.getDataField< ::capnp::Void>( | 6004 return _reader.getDataField< ::capnp::Void>( |
5834 0 * ::capnp::ELEMENTS); | 6005 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5835 } | 6006 } |
5836 | 6007 |
5837 inline ::capnp::Void Type::Builder::getUint64() { | 6008 inline ::capnp::Void Type::Builder::getUint64() { |
5838 KJ_IREQUIRE((which() == Type::UINT64), | 6009 KJ_IREQUIRE((which() == Type::UINT64), |
5839 "Must check which() before get()ing a union member."); | 6010 "Must check which() before get()ing a union member."); |
5840 return _builder.getDataField< ::capnp::Void>( | 6011 return _builder.getDataField< ::capnp::Void>( |
5841 0 * ::capnp::ELEMENTS); | 6012 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5842 } | 6013 } |
5843 inline void Type::Builder::setUint64( ::capnp::Void value) { | 6014 inline void Type::Builder::setUint64( ::capnp::Void value) { |
5844 _builder.setDataField<Type::Which>( | 6015 _builder.setDataField<Type::Which>( |
5845 0 * ::capnp::ELEMENTS, Type::UINT64); | 6016 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT64); |
5846 _builder.setDataField< ::capnp::Void>( | 6017 _builder.setDataField< ::capnp::Void>( |
5847 0 * ::capnp::ELEMENTS, value); | 6018 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5848 } | 6019 } |
5849 | 6020 |
5850 inline bool Type::Reader::isFloat32() const { | 6021 inline bool Type::Reader::isFloat32() const { |
5851 return which() == Type::FLOAT32; | 6022 return which() == Type::FLOAT32; |
5852 } | 6023 } |
5855 } | 6026 } |
5856 inline ::capnp::Void Type::Reader::getFloat32() const { | 6027 inline ::capnp::Void Type::Reader::getFloat32() const { |
5857 KJ_IREQUIRE((which() == Type::FLOAT32), | 6028 KJ_IREQUIRE((which() == Type::FLOAT32), |
5858 "Must check which() before get()ing a union member."); | 6029 "Must check which() before get()ing a union member."); |
5859 return _reader.getDataField< ::capnp::Void>( | 6030 return _reader.getDataField< ::capnp::Void>( |
5860 0 * ::capnp::ELEMENTS); | 6031 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5861 } | 6032 } |
5862 | 6033 |
5863 inline ::capnp::Void Type::Builder::getFloat32() { | 6034 inline ::capnp::Void Type::Builder::getFloat32() { |
5864 KJ_IREQUIRE((which() == Type::FLOAT32), | 6035 KJ_IREQUIRE((which() == Type::FLOAT32), |
5865 "Must check which() before get()ing a union member."); | 6036 "Must check which() before get()ing a union member."); |
5866 return _builder.getDataField< ::capnp::Void>( | 6037 return _builder.getDataField< ::capnp::Void>( |
5867 0 * ::capnp::ELEMENTS); | 6038 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5868 } | 6039 } |
5869 inline void Type::Builder::setFloat32( ::capnp::Void value) { | 6040 inline void Type::Builder::setFloat32( ::capnp::Void value) { |
5870 _builder.setDataField<Type::Which>( | 6041 _builder.setDataField<Type::Which>( |
5871 0 * ::capnp::ELEMENTS, Type::FLOAT32); | 6042 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::FLOAT32); |
5872 _builder.setDataField< ::capnp::Void>( | 6043 _builder.setDataField< ::capnp::Void>( |
5873 0 * ::capnp::ELEMENTS, value); | 6044 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5874 } | 6045 } |
5875 | 6046 |
5876 inline bool Type::Reader::isFloat64() const { | 6047 inline bool Type::Reader::isFloat64() const { |
5877 return which() == Type::FLOAT64; | 6048 return which() == Type::FLOAT64; |
5878 } | 6049 } |
5881 } | 6052 } |
5882 inline ::capnp::Void Type::Reader::getFloat64() const { | 6053 inline ::capnp::Void Type::Reader::getFloat64() const { |
5883 KJ_IREQUIRE((which() == Type::FLOAT64), | 6054 KJ_IREQUIRE((which() == Type::FLOAT64), |
5884 "Must check which() before get()ing a union member."); | 6055 "Must check which() before get()ing a union member."); |
5885 return _reader.getDataField< ::capnp::Void>( | 6056 return _reader.getDataField< ::capnp::Void>( |
5886 0 * ::capnp::ELEMENTS); | 6057 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5887 } | 6058 } |
5888 | 6059 |
5889 inline ::capnp::Void Type::Builder::getFloat64() { | 6060 inline ::capnp::Void Type::Builder::getFloat64() { |
5890 KJ_IREQUIRE((which() == Type::FLOAT64), | 6061 KJ_IREQUIRE((which() == Type::FLOAT64), |
5891 "Must check which() before get()ing a union member."); | 6062 "Must check which() before get()ing a union member."); |
5892 return _builder.getDataField< ::capnp::Void>( | 6063 return _builder.getDataField< ::capnp::Void>( |
5893 0 * ::capnp::ELEMENTS); | 6064 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5894 } | 6065 } |
5895 inline void Type::Builder::setFloat64( ::capnp::Void value) { | 6066 inline void Type::Builder::setFloat64( ::capnp::Void value) { |
5896 _builder.setDataField<Type::Which>( | 6067 _builder.setDataField<Type::Which>( |
5897 0 * ::capnp::ELEMENTS, Type::FLOAT64); | 6068 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::FLOAT64); |
5898 _builder.setDataField< ::capnp::Void>( | 6069 _builder.setDataField< ::capnp::Void>( |
5899 0 * ::capnp::ELEMENTS, value); | 6070 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5900 } | 6071 } |
5901 | 6072 |
5902 inline bool Type::Reader::isText() const { | 6073 inline bool Type::Reader::isText() const { |
5903 return which() == Type::TEXT; | 6074 return which() == Type::TEXT; |
5904 } | 6075 } |
5907 } | 6078 } |
5908 inline ::capnp::Void Type::Reader::getText() const { | 6079 inline ::capnp::Void Type::Reader::getText() const { |
5909 KJ_IREQUIRE((which() == Type::TEXT), | 6080 KJ_IREQUIRE((which() == Type::TEXT), |
5910 "Must check which() before get()ing a union member."); | 6081 "Must check which() before get()ing a union member."); |
5911 return _reader.getDataField< ::capnp::Void>( | 6082 return _reader.getDataField< ::capnp::Void>( |
5912 0 * ::capnp::ELEMENTS); | 6083 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5913 } | 6084 } |
5914 | 6085 |
5915 inline ::capnp::Void Type::Builder::getText() { | 6086 inline ::capnp::Void Type::Builder::getText() { |
5916 KJ_IREQUIRE((which() == Type::TEXT), | 6087 KJ_IREQUIRE((which() == Type::TEXT), |
5917 "Must check which() before get()ing a union member."); | 6088 "Must check which() before get()ing a union member."); |
5918 return _builder.getDataField< ::capnp::Void>( | 6089 return _builder.getDataField< ::capnp::Void>( |
5919 0 * ::capnp::ELEMENTS); | 6090 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5920 } | 6091 } |
5921 inline void Type::Builder::setText( ::capnp::Void value) { | 6092 inline void Type::Builder::setText( ::capnp::Void value) { |
5922 _builder.setDataField<Type::Which>( | 6093 _builder.setDataField<Type::Which>( |
5923 0 * ::capnp::ELEMENTS, Type::TEXT); | 6094 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::TEXT); |
5924 _builder.setDataField< ::capnp::Void>( | 6095 _builder.setDataField< ::capnp::Void>( |
5925 0 * ::capnp::ELEMENTS, value); | 6096 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5926 } | 6097 } |
5927 | 6098 |
5928 inline bool Type::Reader::isData() const { | 6099 inline bool Type::Reader::isData() const { |
5929 return which() == Type::DATA; | 6100 return which() == Type::DATA; |
5930 } | 6101 } |
5933 } | 6104 } |
5934 inline ::capnp::Void Type::Reader::getData() const { | 6105 inline ::capnp::Void Type::Reader::getData() const { |
5935 KJ_IREQUIRE((which() == Type::DATA), | 6106 KJ_IREQUIRE((which() == Type::DATA), |
5936 "Must check which() before get()ing a union member."); | 6107 "Must check which() before get()ing a union member."); |
5937 return _reader.getDataField< ::capnp::Void>( | 6108 return _reader.getDataField< ::capnp::Void>( |
5938 0 * ::capnp::ELEMENTS); | 6109 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5939 } | 6110 } |
5940 | 6111 |
5941 inline ::capnp::Void Type::Builder::getData() { | 6112 inline ::capnp::Void Type::Builder::getData() { |
5942 KJ_IREQUIRE((which() == Type::DATA), | 6113 KJ_IREQUIRE((which() == Type::DATA), |
5943 "Must check which() before get()ing a union member."); | 6114 "Must check which() before get()ing a union member."); |
5944 return _builder.getDataField< ::capnp::Void>( | 6115 return _builder.getDataField< ::capnp::Void>( |
5945 0 * ::capnp::ELEMENTS); | 6116 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
5946 } | 6117 } |
5947 inline void Type::Builder::setData( ::capnp::Void value) { | 6118 inline void Type::Builder::setData( ::capnp::Void value) { |
5948 _builder.setDataField<Type::Which>( | 6119 _builder.setDataField<Type::Which>( |
5949 0 * ::capnp::ELEMENTS, Type::DATA); | 6120 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::DATA); |
5950 _builder.setDataField< ::capnp::Void>( | 6121 _builder.setDataField< ::capnp::Void>( |
5951 0 * ::capnp::ELEMENTS, value); | 6122 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
5952 } | 6123 } |
5953 | 6124 |
5954 inline bool Type::Reader::isList() const { | 6125 inline bool Type::Reader::isList() const { |
5955 return which() == Type::LIST; | 6126 return which() == Type::LIST; |
5956 } | 6127 } |
5967 "Must check which() before get()ing a union member."); | 6138 "Must check which() before get()ing a union member."); |
5968 return typename Type::List::Builder(_builder); | 6139 return typename Type::List::Builder(_builder); |
5969 } | 6140 } |
5970 inline typename Type::List::Builder Type::Builder::initList() { | 6141 inline typename Type::List::Builder Type::Builder::initList() { |
5971 _builder.setDataField<Type::Which>( | 6142 _builder.setDataField<Type::Which>( |
5972 0 * ::capnp::ELEMENTS, Type::LIST); | 6143 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::LIST); |
5973 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | 6144 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
5974 return typename Type::List::Builder(_builder); | 6145 return typename Type::List::Builder(_builder); |
5975 } | 6146 } |
5976 inline bool Type::Reader::isEnum() const { | 6147 inline bool Type::Reader::isEnum() const { |
5977 return which() == Type::ENUM; | 6148 return which() == Type::ENUM; |
5978 } | 6149 } |
5989 "Must check which() before get()ing a union member."); | 6160 "Must check which() before get()ing a union member."); |
5990 return typename Type::Enum::Builder(_builder); | 6161 return typename Type::Enum::Builder(_builder); |
5991 } | 6162 } |
5992 inline typename Type::Enum::Builder Type::Builder::initEnum() { | 6163 inline typename Type::Enum::Builder Type::Builder::initEnum() { |
5993 _builder.setDataField<Type::Which>( | 6164 _builder.setDataField<Type::Which>( |
5994 0 * ::capnp::ELEMENTS, Type::ENUM); | 6165 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::ENUM); |
5995 _builder.setDataField< ::uint64_t>(1 * ::capnp::ELEMENTS, 0); | 6166 _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
5996 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | 6167 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
5997 return typename Type::Enum::Builder(_builder); | 6168 return typename Type::Enum::Builder(_builder); |
5998 } | 6169 } |
5999 inline bool Type::Reader::isStruct() const { | 6170 inline bool Type::Reader::isStruct() const { |
6000 return which() == Type::STRUCT; | 6171 return which() == Type::STRUCT; |
6001 } | 6172 } |
6012 "Must check which() before get()ing a union member."); | 6183 "Must check which() before get()ing a union member."); |
6013 return typename Type::Struct::Builder(_builder); | 6184 return typename Type::Struct::Builder(_builder); |
6014 } | 6185 } |
6015 inline typename Type::Struct::Builder Type::Builder::initStruct() { | 6186 inline typename Type::Struct::Builder Type::Builder::initStruct() { |
6016 _builder.setDataField<Type::Which>( | 6187 _builder.setDataField<Type::Which>( |
6017 0 * ::capnp::ELEMENTS, Type::STRUCT); | 6188 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::STRUCT); |
6018 _builder.setDataField< ::uint64_t>(1 * ::capnp::ELEMENTS, 0); | 6189 _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
6019 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | 6190 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
6020 return typename Type::Struct::Builder(_builder); | 6191 return typename Type::Struct::Builder(_builder); |
6021 } | 6192 } |
6022 inline bool Type::Reader::isInterface() const { | 6193 inline bool Type::Reader::isInterface() const { |
6023 return which() == Type::INTERFACE; | 6194 return which() == Type::INTERFACE; |
6024 } | 6195 } |
6035 "Must check which() before get()ing a union member."); | 6206 "Must check which() before get()ing a union member."); |
6036 return typename Type::Interface::Builder(_builder); | 6207 return typename Type::Interface::Builder(_builder); |
6037 } | 6208 } |
6038 inline typename Type::Interface::Builder Type::Builder::initInterface() { | 6209 inline typename Type::Interface::Builder Type::Builder::initInterface() { |
6039 _builder.setDataField<Type::Which>( | 6210 _builder.setDataField<Type::Which>( |
6040 0 * ::capnp::ELEMENTS, Type::INTERFACE); | 6211 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INTERFACE); |
6041 _builder.setDataField< ::uint64_t>(1 * ::capnp::ELEMENTS, 0); | 6212 _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); |
6042 _builder.getPointerField(0 * ::capnp::POINTERS).clear(); | 6213 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
6043 return typename Type::Interface::Builder(_builder); | 6214 return typename Type::Interface::Builder(_builder); |
6044 } | 6215 } |
6045 inline bool Type::Reader::isAnyPointer() const { | 6216 inline bool Type::Reader::isAnyPointer() const { |
6046 return which() == Type::ANY_POINTER; | 6217 return which() == Type::ANY_POINTER; |
6047 } | 6218 } |
6058 "Must check which() before get()ing a union member."); | 6229 "Must check which() before get()ing a union member."); |
6059 return typename Type::AnyPointer::Builder(_builder); | 6230 return typename Type::AnyPointer::Builder(_builder); |
6060 } | 6231 } |
6061 inline typename Type::AnyPointer::Builder Type::Builder::initAnyPointer() { | 6232 inline typename Type::AnyPointer::Builder Type::Builder::initAnyPointer() { |
6062 _builder.setDataField<Type::Which>( | 6233 _builder.setDataField<Type::Which>( |
6063 0 * ::capnp::ELEMENTS, Type::ANY_POINTER); | 6234 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::ANY_POINTER); |
6064 _builder.setDataField< ::uint16_t>(4 * ::capnp::ELEMENTS, 0); | 6235 _builder.setDataField< ::uint16_t>(::capnp::bounded<4>() * ::capnp::ELEMENTS, 0); |
6065 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | 6236 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6066 _builder.setDataField< ::uint64_t>(2 * ::capnp::ELEMENTS, 0); | 6237 _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); |
6067 return typename Type::AnyPointer::Builder(_builder); | 6238 return typename Type::AnyPointer::Builder(_builder); |
6068 } | 6239 } |
6069 inline bool Type::List::Reader::hasElementType() const { | 6240 inline bool Type::List::Reader::hasElementType() const { |
6070 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6241 return !_reader.getPointerField( |
6242 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6071 } | 6243 } |
6072 inline bool Type::List::Builder::hasElementType() { | 6244 inline bool Type::List::Builder::hasElementType() { |
6073 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6245 return !_builder.getPointerField( |
6246 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6074 } | 6247 } |
6075 inline ::capnp::schema::Type::Reader Type::List::Reader::getElementType() const { | 6248 inline ::capnp::schema::Type::Reader Type::List::Reader::getElementType() const { |
6076 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 6249 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
6077 _reader.getPointerField(0 * ::capnp::POINTERS)); | 6250 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6078 } | 6251 } |
6079 inline ::capnp::schema::Type::Builder Type::List::Builder::getElementType() { | 6252 inline ::capnp::schema::Type::Builder Type::List::Builder::getElementType() { |
6080 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 6253 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
6081 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6254 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6082 } | 6255 } |
6083 #if !CAPNP_LITE | 6256 #if !CAPNP_LITE |
6084 inline ::capnp::schema::Type::Pipeline Type::List::Pipeline::getElementType() { | 6257 inline ::capnp::schema::Type::Pipeline Type::List::Pipeline::getElementType() { |
6085 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(0)); | 6258 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(0)); |
6086 } | 6259 } |
6087 #endif // !CAPNP_LITE | 6260 #endif // !CAPNP_LITE |
6088 inline void Type::List::Builder::setElementType( ::capnp::schema::Type::Reader value) { | 6261 inline void Type::List::Builder::setElementType( ::capnp::schema::Type::Reader value) { |
6089 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | 6262 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
6090 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 6263 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6091 } | 6264 } |
6092 inline ::capnp::schema::Type::Builder Type::List::Builder::initElementType() { | 6265 inline ::capnp::schema::Type::Builder Type::List::Builder::initElementType() { |
6093 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | 6266 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
6094 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6267 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6095 } | 6268 } |
6096 inline void Type::List::Builder::adoptElementType( | 6269 inline void Type::List::Builder::adoptElementType( |
6097 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | 6270 ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
6098 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | 6271 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
6099 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 6272 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6100 } | 6273 } |
6101 inline ::capnp::Orphan< ::capnp::schema::Type> Type::List::Builder::disownElementType() { | 6274 inline ::capnp::Orphan< ::capnp::schema::Type> Type::List::Builder::disownElementType() { |
6102 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | 6275 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
6103 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6276 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6104 } | 6277 } |
6105 | 6278 |
6106 inline ::uint64_t Type::Enum::Reader::getTypeId() const { | 6279 inline ::uint64_t Type::Enum::Reader::getTypeId() const { |
6107 return _reader.getDataField< ::uint64_t>( | 6280 return _reader.getDataField< ::uint64_t>( |
6108 1 * ::capnp::ELEMENTS); | 6281 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6109 } | 6282 } |
6110 | 6283 |
6111 inline ::uint64_t Type::Enum::Builder::getTypeId() { | 6284 inline ::uint64_t Type::Enum::Builder::getTypeId() { |
6112 return _builder.getDataField< ::uint64_t>( | 6285 return _builder.getDataField< ::uint64_t>( |
6113 1 * ::capnp::ELEMENTS); | 6286 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6114 } | 6287 } |
6115 inline void Type::Enum::Builder::setTypeId( ::uint64_t value) { | 6288 inline void Type::Enum::Builder::setTypeId( ::uint64_t value) { |
6116 _builder.setDataField< ::uint64_t>( | 6289 _builder.setDataField< ::uint64_t>( |
6117 1 * ::capnp::ELEMENTS, value); | 6290 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6118 } | 6291 } |
6119 | 6292 |
6120 inline bool Type::Enum::Reader::hasBrand() const { | 6293 inline bool Type::Enum::Reader::hasBrand() const { |
6121 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6294 return !_reader.getPointerField( |
6295 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6122 } | 6296 } |
6123 inline bool Type::Enum::Builder::hasBrand() { | 6297 inline bool Type::Enum::Builder::hasBrand() { |
6124 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6298 return !_builder.getPointerField( |
6299 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6125 } | 6300 } |
6126 inline ::capnp::schema::Brand::Reader Type::Enum::Reader::getBrand() const { | 6301 inline ::capnp::schema::Brand::Reader Type::Enum::Reader::getBrand() const { |
6127 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 6302 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
6128 _reader.getPointerField(0 * ::capnp::POINTERS)); | 6303 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6129 } | 6304 } |
6130 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::getBrand() { | 6305 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::getBrand() { |
6131 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 6306 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
6132 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6307 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6133 } | 6308 } |
6134 #if !CAPNP_LITE | 6309 #if !CAPNP_LITE |
6135 inline ::capnp::schema::Brand::Pipeline Type::Enum::Pipeline::getBrand() { | 6310 inline ::capnp::schema::Brand::Pipeline Type::Enum::Pipeline::getBrand() { |
6136 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | 6311 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
6137 } | 6312 } |
6138 #endif // !CAPNP_LITE | 6313 #endif // !CAPNP_LITE |
6139 inline void Type::Enum::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | 6314 inline void Type::Enum::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
6140 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | 6315 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6141 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 6316 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6142 } | 6317 } |
6143 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::initBrand() { | 6318 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::initBrand() { |
6144 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | 6319 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6145 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6320 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6146 } | 6321 } |
6147 inline void Type::Enum::Builder::adoptBrand( | 6322 inline void Type::Enum::Builder::adoptBrand( |
6148 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | 6323 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6149 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | 6324 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6150 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 6325 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6151 } | 6326 } |
6152 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Enum::Builder::disownBrand() { | 6327 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Enum::Builder::disownBrand() { |
6153 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | 6328 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6154 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6329 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6155 } | 6330 } |
6156 | 6331 |
6157 inline ::uint64_t Type::Struct::Reader::getTypeId() const { | 6332 inline ::uint64_t Type::Struct::Reader::getTypeId() const { |
6158 return _reader.getDataField< ::uint64_t>( | 6333 return _reader.getDataField< ::uint64_t>( |
6159 1 * ::capnp::ELEMENTS); | 6334 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6160 } | 6335 } |
6161 | 6336 |
6162 inline ::uint64_t Type::Struct::Builder::getTypeId() { | 6337 inline ::uint64_t Type::Struct::Builder::getTypeId() { |
6163 return _builder.getDataField< ::uint64_t>( | 6338 return _builder.getDataField< ::uint64_t>( |
6164 1 * ::capnp::ELEMENTS); | 6339 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6165 } | 6340 } |
6166 inline void Type::Struct::Builder::setTypeId( ::uint64_t value) { | 6341 inline void Type::Struct::Builder::setTypeId( ::uint64_t value) { |
6167 _builder.setDataField< ::uint64_t>( | 6342 _builder.setDataField< ::uint64_t>( |
6168 1 * ::capnp::ELEMENTS, value); | 6343 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6169 } | 6344 } |
6170 | 6345 |
6171 inline bool Type::Struct::Reader::hasBrand() const { | 6346 inline bool Type::Struct::Reader::hasBrand() const { |
6172 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6347 return !_reader.getPointerField( |
6348 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6173 } | 6349 } |
6174 inline bool Type::Struct::Builder::hasBrand() { | 6350 inline bool Type::Struct::Builder::hasBrand() { |
6175 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6351 return !_builder.getPointerField( |
6352 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6176 } | 6353 } |
6177 inline ::capnp::schema::Brand::Reader Type::Struct::Reader::getBrand() const { | 6354 inline ::capnp::schema::Brand::Reader Type::Struct::Reader::getBrand() const { |
6178 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 6355 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
6179 _reader.getPointerField(0 * ::capnp::POINTERS)); | 6356 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6180 } | 6357 } |
6181 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::getBrand() { | 6358 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::getBrand() { |
6182 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 6359 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
6183 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6360 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6184 } | 6361 } |
6185 #if !CAPNP_LITE | 6362 #if !CAPNP_LITE |
6186 inline ::capnp::schema::Brand::Pipeline Type::Struct::Pipeline::getBrand() { | 6363 inline ::capnp::schema::Brand::Pipeline Type::Struct::Pipeline::getBrand() { |
6187 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | 6364 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
6188 } | 6365 } |
6189 #endif // !CAPNP_LITE | 6366 #endif // !CAPNP_LITE |
6190 inline void Type::Struct::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | 6367 inline void Type::Struct::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
6191 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | 6368 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6192 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 6369 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6193 } | 6370 } |
6194 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::initBrand() { | 6371 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::initBrand() { |
6195 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | 6372 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6196 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6373 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6197 } | 6374 } |
6198 inline void Type::Struct::Builder::adoptBrand( | 6375 inline void Type::Struct::Builder::adoptBrand( |
6199 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | 6376 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6200 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | 6377 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6201 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 6378 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6202 } | 6379 } |
6203 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Struct::Builder::disownBrand() { | 6380 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Struct::Builder::disownBrand() { |
6204 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | 6381 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6205 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6382 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6206 } | 6383 } |
6207 | 6384 |
6208 inline ::uint64_t Type::Interface::Reader::getTypeId() const { | 6385 inline ::uint64_t Type::Interface::Reader::getTypeId() const { |
6209 return _reader.getDataField< ::uint64_t>( | 6386 return _reader.getDataField< ::uint64_t>( |
6210 1 * ::capnp::ELEMENTS); | 6387 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6211 } | 6388 } |
6212 | 6389 |
6213 inline ::uint64_t Type::Interface::Builder::getTypeId() { | 6390 inline ::uint64_t Type::Interface::Builder::getTypeId() { |
6214 return _builder.getDataField< ::uint64_t>( | 6391 return _builder.getDataField< ::uint64_t>( |
6215 1 * ::capnp::ELEMENTS); | 6392 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6216 } | 6393 } |
6217 inline void Type::Interface::Builder::setTypeId( ::uint64_t value) { | 6394 inline void Type::Interface::Builder::setTypeId( ::uint64_t value) { |
6218 _builder.setDataField< ::uint64_t>( | 6395 _builder.setDataField< ::uint64_t>( |
6219 1 * ::capnp::ELEMENTS, value); | 6396 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6220 } | 6397 } |
6221 | 6398 |
6222 inline bool Type::Interface::Reader::hasBrand() const { | 6399 inline bool Type::Interface::Reader::hasBrand() const { |
6223 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6400 return !_reader.getPointerField( |
6401 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6224 } | 6402 } |
6225 inline bool Type::Interface::Builder::hasBrand() { | 6403 inline bool Type::Interface::Builder::hasBrand() { |
6226 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6404 return !_builder.getPointerField( |
6405 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6227 } | 6406 } |
6228 inline ::capnp::schema::Brand::Reader Type::Interface::Reader::getBrand() const { | 6407 inline ::capnp::schema::Brand::Reader Type::Interface::Reader::getBrand() const { |
6229 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 6408 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
6230 _reader.getPointerField(0 * ::capnp::POINTERS)); | 6409 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6231 } | 6410 } |
6232 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::getBrand() { | 6411 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::getBrand() { |
6233 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 6412 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
6234 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6413 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6235 } | 6414 } |
6236 #if !CAPNP_LITE | 6415 #if !CAPNP_LITE |
6237 inline ::capnp::schema::Brand::Pipeline Type::Interface::Pipeline::getBrand() { | 6416 inline ::capnp::schema::Brand::Pipeline Type::Interface::Pipeline::getBrand() { |
6238 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); | 6417 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); |
6239 } | 6418 } |
6240 #endif // !CAPNP_LITE | 6419 #endif // !CAPNP_LITE |
6241 inline void Type::Interface::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | 6420 inline void Type::Interface::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
6242 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | 6421 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
6243 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 6422 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6244 } | 6423 } |
6245 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::initBrand() { | 6424 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::initBrand() { |
6246 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | 6425 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
6247 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6426 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6248 } | 6427 } |
6249 inline void Type::Interface::Builder::adoptBrand( | 6428 inline void Type::Interface::Builder::adoptBrand( |
6250 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | 6429 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
6251 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | 6430 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
6252 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 6431 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6253 } | 6432 } |
6254 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Interface::Builder::disownBrand() { | 6433 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Interface::Builder::disownBrand() { |
6255 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | 6434 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
6256 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6435 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6257 } | 6436 } |
6258 | 6437 |
6259 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Reader::which() const { | 6438 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Reader::which() const { |
6260 return _reader.getDataField<Which>(4 * ::capnp::ELEMENTS); | 6439 return _reader.getDataField<Which>( |
6440 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
6261 } | 6441 } |
6262 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Builder::which() { | 6442 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Builder::which() { |
6263 return _builder.getDataField<Which>(4 * ::capnp::ELEMENTS); | 6443 return _builder.getDataField<Which>( |
6444 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
6264 } | 6445 } |
6265 | 6446 |
6266 inline bool Type::AnyPointer::Reader::isUnconstrained() const { | 6447 inline bool Type::AnyPointer::Reader::isUnconstrained() const { |
6267 return which() == Type::AnyPointer::UNCONSTRAINED; | 6448 return which() == Type::AnyPointer::UNCONSTRAINED; |
6268 } | 6449 } |
6279 "Must check which() before get()ing a union member."); | 6460 "Must check which() before get()ing a union member."); |
6280 return typename Type::AnyPointer::Unconstrained::Builder(_builder); | 6461 return typename Type::AnyPointer::Unconstrained::Builder(_builder); |
6281 } | 6462 } |
6282 inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::initUnconstrained() { | 6463 inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::initUnconstrained() { |
6283 _builder.setDataField<Type::AnyPointer::Which>( | 6464 _builder.setDataField<Type::AnyPointer::Which>( |
6284 4 * ::capnp::ELEMENTS, Type::AnyPointer::UNCONSTRAINED); | 6465 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::UNCONSTRAINED); |
6285 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | 6466 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6286 return typename Type::AnyPointer::Unconstrained::Builder(_builder); | 6467 return typename Type::AnyPointer::Unconstrained::Builder(_builder); |
6287 } | 6468 } |
6288 inline bool Type::AnyPointer::Reader::isParameter() const { | 6469 inline bool Type::AnyPointer::Reader::isParameter() const { |
6289 return which() == Type::AnyPointer::PARAMETER; | 6470 return which() == Type::AnyPointer::PARAMETER; |
6290 } | 6471 } |
6301 "Must check which() before get()ing a union member."); | 6482 "Must check which() before get()ing a union member."); |
6302 return typename Type::AnyPointer::Parameter::Builder(_builder); | 6483 return typename Type::AnyPointer::Parameter::Builder(_builder); |
6303 } | 6484 } |
6304 inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::initParameter() { | 6485 inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::initParameter() { |
6305 _builder.setDataField<Type::AnyPointer::Which>( | 6486 _builder.setDataField<Type::AnyPointer::Which>( |
6306 4 * ::capnp::ELEMENTS, Type::AnyPointer::PARAMETER); | 6487 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::PARAMETER); |
6307 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | 6488 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6308 _builder.setDataField< ::uint64_t>(2 * ::capnp::ELEMENTS, 0); | 6489 _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); |
6309 return typename Type::AnyPointer::Parameter::Builder(_builder); | 6490 return typename Type::AnyPointer::Parameter::Builder(_builder); |
6310 } | 6491 } |
6311 inline bool Type::AnyPointer::Reader::isImplicitMethodParameter() const { | 6492 inline bool Type::AnyPointer::Reader::isImplicitMethodParameter() const { |
6312 return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; | 6493 return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; |
6313 } | 6494 } |
6324 "Must check which() before get()ing a union member."); | 6505 "Must check which() before get()ing a union member."); |
6325 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); | 6506 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); |
6326 } | 6507 } |
6327 inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::initImplicitMethodParameter() { | 6508 inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::initImplicitMethodParameter() { |
6328 _builder.setDataField<Type::AnyPointer::Which>( | 6509 _builder.setDataField<Type::AnyPointer::Which>( |
6329 4 * ::capnp::ELEMENTS, Type::AnyPointer::IMPLICIT_METHOD_PARAMETER); | 6510 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::IMPLICIT_METHOD_PARAMETER); |
6330 _builder.setDataField< ::uint16_t>(5 * ::capnp::ELEMENTS, 0); | 6511 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); |
6331 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); | 6512 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); |
6332 } | 6513 } |
6333 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Reader::which() const { | 6514 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Reader::which() const { |
6334 return _reader.getDataField<Which>(5 * ::capnp::ELEMENTS); | 6515 return _reader.getDataField<Which>( |
6516 ::capnp::bounded<5>() * ::capnp::ELEMENTS); | |
6335 } | 6517 } |
6336 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Builder::which() { | 6518 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Builder::which() { |
6337 return _builder.getDataField<Which>(5 * ::capnp::ELEMENTS); | 6519 return _builder.getDataField<Which>( |
6520 ::capnp::bounded<5>() * ::capnp::ELEMENTS); | |
6338 } | 6521 } |
6339 | 6522 |
6340 inline bool Type::AnyPointer::Unconstrained::Reader::isAnyKind() const { | 6523 inline bool Type::AnyPointer::Unconstrained::Reader::isAnyKind() const { |
6341 return which() == Type::AnyPointer::Unconstrained::ANY_KIND; | 6524 return which() == Type::AnyPointer::Unconstrained::ANY_KIND; |
6342 } | 6525 } |
6345 } | 6528 } |
6346 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getAnyKind() const { | 6529 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getAnyKind() const { |
6347 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), | 6530 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), |
6348 "Must check which() before get()ing a union member."); | 6531 "Must check which() before get()ing a union member."); |
6349 return _reader.getDataField< ::capnp::Void>( | 6532 return _reader.getDataField< ::capnp::Void>( |
6350 0 * ::capnp::ELEMENTS); | 6533 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6351 } | 6534 } |
6352 | 6535 |
6353 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getAnyKind() { | 6536 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getAnyKind() { |
6354 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), | 6537 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), |
6355 "Must check which() before get()ing a union member."); | 6538 "Must check which() before get()ing a union member."); |
6356 return _builder.getDataField< ::capnp::Void>( | 6539 return _builder.getDataField< ::capnp::Void>( |
6357 0 * ::capnp::ELEMENTS); | 6540 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6358 } | 6541 } |
6359 inline void Type::AnyPointer::Unconstrained::Builder::setAnyKind( ::capnp::Void value) { | 6542 inline void Type::AnyPointer::Unconstrained::Builder::setAnyKind( ::capnp::Void value) { |
6360 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | 6543 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6361 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::ANY_KIND); | 6544 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::ANY_KIND); |
6362 _builder.setDataField< ::capnp::Void>( | 6545 _builder.setDataField< ::capnp::Void>( |
6363 0 * ::capnp::ELEMENTS, value); | 6546 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6364 } | 6547 } |
6365 | 6548 |
6366 inline bool Type::AnyPointer::Unconstrained::Reader::isStruct() const { | 6549 inline bool Type::AnyPointer::Unconstrained::Reader::isStruct() const { |
6367 return which() == Type::AnyPointer::Unconstrained::STRUCT; | 6550 return which() == Type::AnyPointer::Unconstrained::STRUCT; |
6368 } | 6551 } |
6371 } | 6554 } |
6372 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getStruct() const { | 6555 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getStruct() const { |
6373 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), | 6556 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), |
6374 "Must check which() before get()ing a union member."); | 6557 "Must check which() before get()ing a union member."); |
6375 return _reader.getDataField< ::capnp::Void>( | 6558 return _reader.getDataField< ::capnp::Void>( |
6376 0 * ::capnp::ELEMENTS); | 6559 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6377 } | 6560 } |
6378 | 6561 |
6379 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getStruct() { | 6562 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getStruct() { |
6380 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), | 6563 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), |
6381 "Must check which() before get()ing a union member."); | 6564 "Must check which() before get()ing a union member."); |
6382 return _builder.getDataField< ::capnp::Void>( | 6565 return _builder.getDataField< ::capnp::Void>( |
6383 0 * ::capnp::ELEMENTS); | 6566 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6384 } | 6567 } |
6385 inline void Type::AnyPointer::Unconstrained::Builder::setStruct( ::capnp::Void value) { | 6568 inline void Type::AnyPointer::Unconstrained::Builder::setStruct( ::capnp::Void value) { |
6386 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | 6569 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6387 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::STRUCT); | 6570 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::STRUCT); |
6388 _builder.setDataField< ::capnp::Void>( | 6571 _builder.setDataField< ::capnp::Void>( |
6389 0 * ::capnp::ELEMENTS, value); | 6572 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6390 } | 6573 } |
6391 | 6574 |
6392 inline bool Type::AnyPointer::Unconstrained::Reader::isList() const { | 6575 inline bool Type::AnyPointer::Unconstrained::Reader::isList() const { |
6393 return which() == Type::AnyPointer::Unconstrained::LIST; | 6576 return which() == Type::AnyPointer::Unconstrained::LIST; |
6394 } | 6577 } |
6397 } | 6580 } |
6398 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getList() const { | 6581 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getList() const { |
6399 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), | 6582 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), |
6400 "Must check which() before get()ing a union member."); | 6583 "Must check which() before get()ing a union member."); |
6401 return _reader.getDataField< ::capnp::Void>( | 6584 return _reader.getDataField< ::capnp::Void>( |
6402 0 * ::capnp::ELEMENTS); | 6585 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6403 } | 6586 } |
6404 | 6587 |
6405 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getList() { | 6588 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getList() { |
6406 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), | 6589 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), |
6407 "Must check which() before get()ing a union member."); | 6590 "Must check which() before get()ing a union member."); |
6408 return _builder.getDataField< ::capnp::Void>( | 6591 return _builder.getDataField< ::capnp::Void>( |
6409 0 * ::capnp::ELEMENTS); | 6592 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6410 } | 6593 } |
6411 inline void Type::AnyPointer::Unconstrained::Builder::setList( ::capnp::Void value) { | 6594 inline void Type::AnyPointer::Unconstrained::Builder::setList( ::capnp::Void value) { |
6412 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | 6595 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6413 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::LIST); | 6596 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::LIST); |
6414 _builder.setDataField< ::capnp::Void>( | 6597 _builder.setDataField< ::capnp::Void>( |
6415 0 * ::capnp::ELEMENTS, value); | 6598 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6416 } | 6599 } |
6417 | 6600 |
6418 inline bool Type::AnyPointer::Unconstrained::Reader::isCapability() const { | 6601 inline bool Type::AnyPointer::Unconstrained::Reader::isCapability() const { |
6419 return which() == Type::AnyPointer::Unconstrained::CAPABILITY; | 6602 return which() == Type::AnyPointer::Unconstrained::CAPABILITY; |
6420 } | 6603 } |
6423 } | 6606 } |
6424 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getCapability() const { | 6607 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getCapability() const { |
6425 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), | 6608 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), |
6426 "Must check which() before get()ing a union member."); | 6609 "Must check which() before get()ing a union member."); |
6427 return _reader.getDataField< ::capnp::Void>( | 6610 return _reader.getDataField< ::capnp::Void>( |
6428 0 * ::capnp::ELEMENTS); | 6611 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6429 } | 6612 } |
6430 | 6613 |
6431 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getCapability() { | 6614 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getCapability() { |
6432 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), | 6615 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), |
6433 "Must check which() before get()ing a union member."); | 6616 "Must check which() before get()ing a union member."); |
6434 return _builder.getDataField< ::capnp::Void>( | 6617 return _builder.getDataField< ::capnp::Void>( |
6435 0 * ::capnp::ELEMENTS); | 6618 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6436 } | 6619 } |
6437 inline void Type::AnyPointer::Unconstrained::Builder::setCapability( ::capnp::Void value) { | 6620 inline void Type::AnyPointer::Unconstrained::Builder::setCapability( ::capnp::Void value) { |
6438 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( | 6621 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( |
6439 5 * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::CAPABILITY); | 6622 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::CAPABILITY); |
6440 _builder.setDataField< ::capnp::Void>( | 6623 _builder.setDataField< ::capnp::Void>( |
6441 0 * ::capnp::ELEMENTS, value); | 6624 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6442 } | 6625 } |
6443 | 6626 |
6444 inline ::uint64_t Type::AnyPointer::Parameter::Reader::getScopeId() const { | 6627 inline ::uint64_t Type::AnyPointer::Parameter::Reader::getScopeId() const { |
6445 return _reader.getDataField< ::uint64_t>( | 6628 return _reader.getDataField< ::uint64_t>( |
6446 2 * ::capnp::ELEMENTS); | 6629 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6447 } | 6630 } |
6448 | 6631 |
6449 inline ::uint64_t Type::AnyPointer::Parameter::Builder::getScopeId() { | 6632 inline ::uint64_t Type::AnyPointer::Parameter::Builder::getScopeId() { |
6450 return _builder.getDataField< ::uint64_t>( | 6633 return _builder.getDataField< ::uint64_t>( |
6451 2 * ::capnp::ELEMENTS); | 6634 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6452 } | 6635 } |
6453 inline void Type::AnyPointer::Parameter::Builder::setScopeId( ::uint64_t value) { | 6636 inline void Type::AnyPointer::Parameter::Builder::setScopeId( ::uint64_t value) { |
6454 _builder.setDataField< ::uint64_t>( | 6637 _builder.setDataField< ::uint64_t>( |
6455 2 * ::capnp::ELEMENTS, value); | 6638 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
6456 } | 6639 } |
6457 | 6640 |
6458 inline ::uint16_t Type::AnyPointer::Parameter::Reader::getParameterIndex() const { | 6641 inline ::uint16_t Type::AnyPointer::Parameter::Reader::getParameterIndex() const { |
6459 return _reader.getDataField< ::uint16_t>( | 6642 return _reader.getDataField< ::uint16_t>( |
6460 5 * ::capnp::ELEMENTS); | 6643 ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6461 } | 6644 } |
6462 | 6645 |
6463 inline ::uint16_t Type::AnyPointer::Parameter::Builder::getParameterIndex() { | 6646 inline ::uint16_t Type::AnyPointer::Parameter::Builder::getParameterIndex() { |
6464 return _builder.getDataField< ::uint16_t>( | 6647 return _builder.getDataField< ::uint16_t>( |
6465 5 * ::capnp::ELEMENTS); | 6648 ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6466 } | 6649 } |
6467 inline void Type::AnyPointer::Parameter::Builder::setParameterIndex( ::uint16_t value) { | 6650 inline void Type::AnyPointer::Parameter::Builder::setParameterIndex( ::uint16_t value) { |
6468 _builder.setDataField< ::uint16_t>( | 6651 _builder.setDataField< ::uint16_t>( |
6469 5 * ::capnp::ELEMENTS, value); | 6652 ::capnp::bounded<5>() * ::capnp::ELEMENTS, value); |
6470 } | 6653 } |
6471 | 6654 |
6472 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Reader::getParameterIndex() const { | 6655 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Reader::getParameterIndex() const { |
6473 return _reader.getDataField< ::uint16_t>( | 6656 return _reader.getDataField< ::uint16_t>( |
6474 5 * ::capnp::ELEMENTS); | 6657 ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6475 } | 6658 } |
6476 | 6659 |
6477 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Builder::getParameterIndex() { | 6660 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Builder::getParameterIndex() { |
6478 return _builder.getDataField< ::uint16_t>( | 6661 return _builder.getDataField< ::uint16_t>( |
6479 5 * ::capnp::ELEMENTS); | 6662 ::capnp::bounded<5>() * ::capnp::ELEMENTS); |
6480 } | 6663 } |
6481 inline void Type::AnyPointer::ImplicitMethodParameter::Builder::setParameterIndex( ::uint16_t value) { | 6664 inline void Type::AnyPointer::ImplicitMethodParameter::Builder::setParameterIndex( ::uint16_t value) { |
6482 _builder.setDataField< ::uint16_t>( | 6665 _builder.setDataField< ::uint16_t>( |
6483 5 * ::capnp::ELEMENTS, value); | 6666 ::capnp::bounded<5>() * ::capnp::ELEMENTS, value); |
6484 } | 6667 } |
6485 | 6668 |
6486 inline bool Brand::Reader::hasScopes() const { | 6669 inline bool Brand::Reader::hasScopes() const { |
6487 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6670 return !_reader.getPointerField( |
6671 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6488 } | 6672 } |
6489 inline bool Brand::Builder::hasScopes() { | 6673 inline bool Brand::Builder::hasScopes() { |
6490 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6674 return !_builder.getPointerField( |
6675 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6491 } | 6676 } |
6492 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Reader Brand::Reader::getScopes() const { | 6677 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Reader Brand::Reader::getScopes() const { |
6493 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::get( | 6678 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::get(_reader.getPointerField( |
6494 _reader.getPointerField(0 * ::capnp::POINTERS)); | 6679 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6495 } | 6680 } |
6496 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder Brand::Builder::getScopes() { | 6681 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder Brand::Builder::getScopes() { |
6497 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::get( | 6682 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::get(_builder.getPointerField( |
6498 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6683 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6499 } | 6684 } |
6500 inline void Brand::Builder::setScopes( ::capnp::List< ::capnp::schema::Brand::Scope>::Reader value) { | 6685 inline void Brand::Builder::setScopes( ::capnp::List< ::capnp::schema::Brand::Scope>::Reader value) { |
6501 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::set( | 6686 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::set(_builder.getPointerField( |
6502 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 6687 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6503 } | 6688 } |
6504 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder Brand::Builder::initScopes(unsigned int size) { | 6689 inline ::capnp::List< ::capnp::schema::Brand::Scope>::Builder Brand::Builder::initScopes(unsigned int size) { |
6505 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::init( | 6690 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::init(_builder.getPointerField( |
6506 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 6691 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
6507 } | 6692 } |
6508 inline void Brand::Builder::adoptScopes( | 6693 inline void Brand::Builder::adoptScopes( |
6509 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>>&& value) { | 6694 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>>&& value) { |
6510 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::adopt( | 6695 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::adopt(_builder.getPointerField( |
6511 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 6696 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6512 } | 6697 } |
6513 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>> Brand::Builder::disownScopes() { | 6698 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope>> Brand::Builder::disownScopes() { |
6514 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::disown( | 6699 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope>>::disown(_builder.getPointerField( |
6515 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6700 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6516 } | 6701 } |
6517 | 6702 |
6518 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Reader::which() const { | 6703 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Reader::which() const { |
6519 return _reader.getDataField<Which>(4 * ::capnp::ELEMENTS); | 6704 return _reader.getDataField<Which>( |
6705 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
6520 } | 6706 } |
6521 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Builder::which() { | 6707 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Builder::which() { |
6522 return _builder.getDataField<Which>(4 * ::capnp::ELEMENTS); | 6708 return _builder.getDataField<Which>( |
6709 ::capnp::bounded<4>() * ::capnp::ELEMENTS); | |
6523 } | 6710 } |
6524 | 6711 |
6525 inline ::uint64_t Brand::Scope::Reader::getScopeId() const { | 6712 inline ::uint64_t Brand::Scope::Reader::getScopeId() const { |
6526 return _reader.getDataField< ::uint64_t>( | 6713 return _reader.getDataField< ::uint64_t>( |
6527 0 * ::capnp::ELEMENTS); | 6714 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6528 } | 6715 } |
6529 | 6716 |
6530 inline ::uint64_t Brand::Scope::Builder::getScopeId() { | 6717 inline ::uint64_t Brand::Scope::Builder::getScopeId() { |
6531 return _builder.getDataField< ::uint64_t>( | 6718 return _builder.getDataField< ::uint64_t>( |
6532 0 * ::capnp::ELEMENTS); | 6719 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6533 } | 6720 } |
6534 inline void Brand::Scope::Builder::setScopeId( ::uint64_t value) { | 6721 inline void Brand::Scope::Builder::setScopeId( ::uint64_t value) { |
6535 _builder.setDataField< ::uint64_t>( | 6722 _builder.setDataField< ::uint64_t>( |
6536 0 * ::capnp::ELEMENTS, value); | 6723 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6537 } | 6724 } |
6538 | 6725 |
6539 inline bool Brand::Scope::Reader::isBind() const { | 6726 inline bool Brand::Scope::Reader::isBind() const { |
6540 return which() == Brand::Scope::BIND; | 6727 return which() == Brand::Scope::BIND; |
6541 } | 6728 } |
6542 inline bool Brand::Scope::Builder::isBind() { | 6729 inline bool Brand::Scope::Builder::isBind() { |
6543 return which() == Brand::Scope::BIND; | 6730 return which() == Brand::Scope::BIND; |
6544 } | 6731 } |
6545 inline bool Brand::Scope::Reader::hasBind() const { | 6732 inline bool Brand::Scope::Reader::hasBind() const { |
6546 if (which() != Brand::Scope::BIND) return false; | 6733 if (which() != Brand::Scope::BIND) return false; |
6547 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6734 return !_reader.getPointerField( |
6735 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6548 } | 6736 } |
6549 inline bool Brand::Scope::Builder::hasBind() { | 6737 inline bool Brand::Scope::Builder::hasBind() { |
6550 if (which() != Brand::Scope::BIND) return false; | 6738 if (which() != Brand::Scope::BIND) return false; |
6551 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6739 return !_builder.getPointerField( |
6740 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6552 } | 6741 } |
6553 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Reader Brand::Scope::Reader::getBind() const { | 6742 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Reader Brand::Scope::Reader::getBind() const { |
6554 KJ_IREQUIRE((which() == Brand::Scope::BIND), | 6743 KJ_IREQUIRE((which() == Brand::Scope::BIND), |
6555 "Must check which() before get()ing a union member."); | 6744 "Must check which() before get()ing a union member."); |
6556 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::get( | 6745 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::get(_reader.getPointerField( |
6557 _reader.getPointerField(0 * ::capnp::POINTERS)); | 6746 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6558 } | 6747 } |
6559 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder Brand::Scope::Builder::getBind() { | 6748 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder Brand::Scope::Builder::getBind() { |
6560 KJ_IREQUIRE((which() == Brand::Scope::BIND), | 6749 KJ_IREQUIRE((which() == Brand::Scope::BIND), |
6561 "Must check which() before get()ing a union member."); | 6750 "Must check which() before get()ing a union member."); |
6562 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::get( | 6751 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::get(_builder.getPointerField( |
6563 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6752 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6564 } | 6753 } |
6565 inline void Brand::Scope::Builder::setBind( ::capnp::List< ::capnp::schema::Brand::Binding>::Reader value) { | 6754 inline void Brand::Scope::Builder::setBind( ::capnp::List< ::capnp::schema::Brand::Binding>::Reader value) { |
6566 _builder.setDataField<Brand::Scope::Which>( | 6755 _builder.setDataField<Brand::Scope::Which>( |
6567 4 * ::capnp::ELEMENTS, Brand::Scope::BIND); | 6756 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); |
6568 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::set( | 6757 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::set(_builder.getPointerField( |
6569 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 6758 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6570 } | 6759 } |
6571 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder Brand::Scope::Builder::initBind(unsigned int size) { | 6760 inline ::capnp::List< ::capnp::schema::Brand::Binding>::Builder Brand::Scope::Builder::initBind(unsigned int size) { |
6572 _builder.setDataField<Brand::Scope::Which>( | 6761 _builder.setDataField<Brand::Scope::Which>( |
6573 4 * ::capnp::ELEMENTS, Brand::Scope::BIND); | 6762 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); |
6574 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::init( | 6763 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::init(_builder.getPointerField( |
6575 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 6764 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
6576 } | 6765 } |
6577 inline void Brand::Scope::Builder::adoptBind( | 6766 inline void Brand::Scope::Builder::adoptBind( |
6578 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>>&& value) { | 6767 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>>&& value) { |
6579 _builder.setDataField<Brand::Scope::Which>( | 6768 _builder.setDataField<Brand::Scope::Which>( |
6580 4 * ::capnp::ELEMENTS, Brand::Scope::BIND); | 6769 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); |
6581 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::adopt( | 6770 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::adopt(_builder.getPointerField( |
6582 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 6771 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6583 } | 6772 } |
6584 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>> Brand::Scope::Builder::disownBind() { | 6773 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding>> Brand::Scope::Builder::disownBind() { |
6585 KJ_IREQUIRE((which() == Brand::Scope::BIND), | 6774 KJ_IREQUIRE((which() == Brand::Scope::BIND), |
6586 "Must check which() before get()ing a union member."); | 6775 "Must check which() before get()ing a union member."); |
6587 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::disown( | 6776 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding>>::disown(_builder.getPointerField( |
6588 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6777 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6589 } | 6778 } |
6590 | 6779 |
6591 inline bool Brand::Scope::Reader::isInherit() const { | 6780 inline bool Brand::Scope::Reader::isInherit() const { |
6592 return which() == Brand::Scope::INHERIT; | 6781 return which() == Brand::Scope::INHERIT; |
6593 } | 6782 } |
6596 } | 6785 } |
6597 inline ::capnp::Void Brand::Scope::Reader::getInherit() const { | 6786 inline ::capnp::Void Brand::Scope::Reader::getInherit() const { |
6598 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), | 6787 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), |
6599 "Must check which() before get()ing a union member."); | 6788 "Must check which() before get()ing a union member."); |
6600 return _reader.getDataField< ::capnp::Void>( | 6789 return _reader.getDataField< ::capnp::Void>( |
6601 0 * ::capnp::ELEMENTS); | 6790 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6602 } | 6791 } |
6603 | 6792 |
6604 inline ::capnp::Void Brand::Scope::Builder::getInherit() { | 6793 inline ::capnp::Void Brand::Scope::Builder::getInherit() { |
6605 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), | 6794 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), |
6606 "Must check which() before get()ing a union member."); | 6795 "Must check which() before get()ing a union member."); |
6607 return _builder.getDataField< ::capnp::Void>( | 6796 return _builder.getDataField< ::capnp::Void>( |
6608 0 * ::capnp::ELEMENTS); | 6797 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6609 } | 6798 } |
6610 inline void Brand::Scope::Builder::setInherit( ::capnp::Void value) { | 6799 inline void Brand::Scope::Builder::setInherit( ::capnp::Void value) { |
6611 _builder.setDataField<Brand::Scope::Which>( | 6800 _builder.setDataField<Brand::Scope::Which>( |
6612 4 * ::capnp::ELEMENTS, Brand::Scope::INHERIT); | 6801 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::INHERIT); |
6613 _builder.setDataField< ::capnp::Void>( | 6802 _builder.setDataField< ::capnp::Void>( |
6614 0 * ::capnp::ELEMENTS, value); | 6803 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6615 } | 6804 } |
6616 | 6805 |
6617 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Reader::which() const { | 6806 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Reader::which() const { |
6618 return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS); | 6807 return _reader.getDataField<Which>( |
6808 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
6619 } | 6809 } |
6620 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Builder::which() { | 6810 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Builder::which() { |
6621 return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS); | 6811 return _builder.getDataField<Which>( |
6812 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
6622 } | 6813 } |
6623 | 6814 |
6624 inline bool Brand::Binding::Reader::isUnbound() const { | 6815 inline bool Brand::Binding::Reader::isUnbound() const { |
6625 return which() == Brand::Binding::UNBOUND; | 6816 return which() == Brand::Binding::UNBOUND; |
6626 } | 6817 } |
6629 } | 6820 } |
6630 inline ::capnp::Void Brand::Binding::Reader::getUnbound() const { | 6821 inline ::capnp::Void Brand::Binding::Reader::getUnbound() const { |
6631 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), | 6822 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), |
6632 "Must check which() before get()ing a union member."); | 6823 "Must check which() before get()ing a union member."); |
6633 return _reader.getDataField< ::capnp::Void>( | 6824 return _reader.getDataField< ::capnp::Void>( |
6634 0 * ::capnp::ELEMENTS); | 6825 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6635 } | 6826 } |
6636 | 6827 |
6637 inline ::capnp::Void Brand::Binding::Builder::getUnbound() { | 6828 inline ::capnp::Void Brand::Binding::Builder::getUnbound() { |
6638 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), | 6829 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), |
6639 "Must check which() before get()ing a union member."); | 6830 "Must check which() before get()ing a union member."); |
6640 return _builder.getDataField< ::capnp::Void>( | 6831 return _builder.getDataField< ::capnp::Void>( |
6641 0 * ::capnp::ELEMENTS); | 6832 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6642 } | 6833 } |
6643 inline void Brand::Binding::Builder::setUnbound( ::capnp::Void value) { | 6834 inline void Brand::Binding::Builder::setUnbound( ::capnp::Void value) { |
6644 _builder.setDataField<Brand::Binding::Which>( | 6835 _builder.setDataField<Brand::Binding::Which>( |
6645 0 * ::capnp::ELEMENTS, Brand::Binding::UNBOUND); | 6836 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::UNBOUND); |
6646 _builder.setDataField< ::capnp::Void>( | 6837 _builder.setDataField< ::capnp::Void>( |
6647 0 * ::capnp::ELEMENTS, value); | 6838 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6648 } | 6839 } |
6649 | 6840 |
6650 inline bool Brand::Binding::Reader::isType() const { | 6841 inline bool Brand::Binding::Reader::isType() const { |
6651 return which() == Brand::Binding::TYPE; | 6842 return which() == Brand::Binding::TYPE; |
6652 } | 6843 } |
6653 inline bool Brand::Binding::Builder::isType() { | 6844 inline bool Brand::Binding::Builder::isType() { |
6654 return which() == Brand::Binding::TYPE; | 6845 return which() == Brand::Binding::TYPE; |
6655 } | 6846 } |
6656 inline bool Brand::Binding::Reader::hasType() const { | 6847 inline bool Brand::Binding::Reader::hasType() const { |
6657 if (which() != Brand::Binding::TYPE) return false; | 6848 if (which() != Brand::Binding::TYPE) return false; |
6658 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6849 return !_reader.getPointerField( |
6850 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6659 } | 6851 } |
6660 inline bool Brand::Binding::Builder::hasType() { | 6852 inline bool Brand::Binding::Builder::hasType() { |
6661 if (which() != Brand::Binding::TYPE) return false; | 6853 if (which() != Brand::Binding::TYPE) return false; |
6662 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 6854 return !_builder.getPointerField( |
6855 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
6663 } | 6856 } |
6664 inline ::capnp::schema::Type::Reader Brand::Binding::Reader::getType() const { | 6857 inline ::capnp::schema::Type::Reader Brand::Binding::Reader::getType() const { |
6665 KJ_IREQUIRE((which() == Brand::Binding::TYPE), | 6858 KJ_IREQUIRE((which() == Brand::Binding::TYPE), |
6666 "Must check which() before get()ing a union member."); | 6859 "Must check which() before get()ing a union member."); |
6667 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 6860 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( |
6668 _reader.getPointerField(0 * ::capnp::POINTERS)); | 6861 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6669 } | 6862 } |
6670 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::getType() { | 6863 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::getType() { |
6671 KJ_IREQUIRE((which() == Brand::Binding::TYPE), | 6864 KJ_IREQUIRE((which() == Brand::Binding::TYPE), |
6672 "Must check which() before get()ing a union member."); | 6865 "Must check which() before get()ing a union member."); |
6673 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get( | 6866 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( |
6674 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6867 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6675 } | 6868 } |
6676 inline void Brand::Binding::Builder::setType( ::capnp::schema::Type::Reader value) { | 6869 inline void Brand::Binding::Builder::setType( ::capnp::schema::Type::Reader value) { |
6677 _builder.setDataField<Brand::Binding::Which>( | 6870 _builder.setDataField<Brand::Binding::Which>( |
6678 0 * ::capnp::ELEMENTS, Brand::Binding::TYPE); | 6871 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); |
6679 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set( | 6872 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( |
6680 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 6873 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
6681 } | 6874 } |
6682 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::initType() { | 6875 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::initType() { |
6683 _builder.setDataField<Brand::Binding::Which>( | 6876 _builder.setDataField<Brand::Binding::Which>( |
6684 0 * ::capnp::ELEMENTS, Brand::Binding::TYPE); | 6877 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); |
6685 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init( | 6878 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( |
6686 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6879 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6687 } | 6880 } |
6688 inline void Brand::Binding::Builder::adoptType( | 6881 inline void Brand::Binding::Builder::adoptType( |
6689 ::capnp::Orphan< ::capnp::schema::Type>&& value) { | 6882 ::capnp::Orphan< ::capnp::schema::Type>&& value) { |
6690 _builder.setDataField<Brand::Binding::Which>( | 6883 _builder.setDataField<Brand::Binding::Which>( |
6691 0 * ::capnp::ELEMENTS, Brand::Binding::TYPE); | 6884 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); |
6692 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt( | 6885 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( |
6693 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 6886 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
6694 } | 6887 } |
6695 inline ::capnp::Orphan< ::capnp::schema::Type> Brand::Binding::Builder::disownType() { | 6888 inline ::capnp::Orphan< ::capnp::schema::Type> Brand::Binding::Builder::disownType() { |
6696 KJ_IREQUIRE((which() == Brand::Binding::TYPE), | 6889 KJ_IREQUIRE((which() == Brand::Binding::TYPE), |
6697 "Must check which() before get()ing a union member."); | 6890 "Must check which() before get()ing a union member."); |
6698 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown( | 6891 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( |
6699 _builder.getPointerField(0 * ::capnp::POINTERS)); | 6892 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
6700 } | 6893 } |
6701 | 6894 |
6702 inline ::capnp::schema::Value::Which Value::Reader::which() const { | 6895 inline ::capnp::schema::Value::Which Value::Reader::which() const { |
6703 return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS); | 6896 return _reader.getDataField<Which>( |
6897 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
6704 } | 6898 } |
6705 inline ::capnp::schema::Value::Which Value::Builder::which() { | 6899 inline ::capnp::schema::Value::Which Value::Builder::which() { |
6706 return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS); | 6900 return _builder.getDataField<Which>( |
6901 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
6707 } | 6902 } |
6708 | 6903 |
6709 inline bool Value::Reader::isVoid() const { | 6904 inline bool Value::Reader::isVoid() const { |
6710 return which() == Value::VOID; | 6905 return which() == Value::VOID; |
6711 } | 6906 } |
6714 } | 6909 } |
6715 inline ::capnp::Void Value::Reader::getVoid() const { | 6910 inline ::capnp::Void Value::Reader::getVoid() const { |
6716 KJ_IREQUIRE((which() == Value::VOID), | 6911 KJ_IREQUIRE((which() == Value::VOID), |
6717 "Must check which() before get()ing a union member."); | 6912 "Must check which() before get()ing a union member."); |
6718 return _reader.getDataField< ::capnp::Void>( | 6913 return _reader.getDataField< ::capnp::Void>( |
6719 0 * ::capnp::ELEMENTS); | 6914 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6720 } | 6915 } |
6721 | 6916 |
6722 inline ::capnp::Void Value::Builder::getVoid() { | 6917 inline ::capnp::Void Value::Builder::getVoid() { |
6723 KJ_IREQUIRE((which() == Value::VOID), | 6918 KJ_IREQUIRE((which() == Value::VOID), |
6724 "Must check which() before get()ing a union member."); | 6919 "Must check which() before get()ing a union member."); |
6725 return _builder.getDataField< ::capnp::Void>( | 6920 return _builder.getDataField< ::capnp::Void>( |
6726 0 * ::capnp::ELEMENTS); | 6921 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
6727 } | 6922 } |
6728 inline void Value::Builder::setVoid( ::capnp::Void value) { | 6923 inline void Value::Builder::setVoid( ::capnp::Void value) { |
6729 _builder.setDataField<Value::Which>( | 6924 _builder.setDataField<Value::Which>( |
6730 0 * ::capnp::ELEMENTS, Value::VOID); | 6925 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::VOID); |
6731 _builder.setDataField< ::capnp::Void>( | 6926 _builder.setDataField< ::capnp::Void>( |
6732 0 * ::capnp::ELEMENTS, value); | 6927 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
6733 } | 6928 } |
6734 | 6929 |
6735 inline bool Value::Reader::isBool() const { | 6930 inline bool Value::Reader::isBool() const { |
6736 return which() == Value::BOOL; | 6931 return which() == Value::BOOL; |
6737 } | 6932 } |
6740 } | 6935 } |
6741 inline bool Value::Reader::getBool() const { | 6936 inline bool Value::Reader::getBool() const { |
6742 KJ_IREQUIRE((which() == Value::BOOL), | 6937 KJ_IREQUIRE((which() == Value::BOOL), |
6743 "Must check which() before get()ing a union member."); | 6938 "Must check which() before get()ing a union member."); |
6744 return _reader.getDataField<bool>( | 6939 return _reader.getDataField<bool>( |
6745 16 * ::capnp::ELEMENTS); | 6940 ::capnp::bounded<16>() * ::capnp::ELEMENTS); |
6746 } | 6941 } |
6747 | 6942 |
6748 inline bool Value::Builder::getBool() { | 6943 inline bool Value::Builder::getBool() { |
6749 KJ_IREQUIRE((which() == Value::BOOL), | 6944 KJ_IREQUIRE((which() == Value::BOOL), |
6750 "Must check which() before get()ing a union member."); | 6945 "Must check which() before get()ing a union member."); |
6751 return _builder.getDataField<bool>( | 6946 return _builder.getDataField<bool>( |
6752 16 * ::capnp::ELEMENTS); | 6947 ::capnp::bounded<16>() * ::capnp::ELEMENTS); |
6753 } | 6948 } |
6754 inline void Value::Builder::setBool(bool value) { | 6949 inline void Value::Builder::setBool(bool value) { |
6755 _builder.setDataField<Value::Which>( | 6950 _builder.setDataField<Value::Which>( |
6756 0 * ::capnp::ELEMENTS, Value::BOOL); | 6951 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::BOOL); |
6757 _builder.setDataField<bool>( | 6952 _builder.setDataField<bool>( |
6758 16 * ::capnp::ELEMENTS, value); | 6953 ::capnp::bounded<16>() * ::capnp::ELEMENTS, value); |
6759 } | 6954 } |
6760 | 6955 |
6761 inline bool Value::Reader::isInt8() const { | 6956 inline bool Value::Reader::isInt8() const { |
6762 return which() == Value::INT8; | 6957 return which() == Value::INT8; |
6763 } | 6958 } |
6766 } | 6961 } |
6767 inline ::int8_t Value::Reader::getInt8() const { | 6962 inline ::int8_t Value::Reader::getInt8() const { |
6768 KJ_IREQUIRE((which() == Value::INT8), | 6963 KJ_IREQUIRE((which() == Value::INT8), |
6769 "Must check which() before get()ing a union member."); | 6964 "Must check which() before get()ing a union member."); |
6770 return _reader.getDataField< ::int8_t>( | 6965 return _reader.getDataField< ::int8_t>( |
6771 2 * ::capnp::ELEMENTS); | 6966 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6772 } | 6967 } |
6773 | 6968 |
6774 inline ::int8_t Value::Builder::getInt8() { | 6969 inline ::int8_t Value::Builder::getInt8() { |
6775 KJ_IREQUIRE((which() == Value::INT8), | 6970 KJ_IREQUIRE((which() == Value::INT8), |
6776 "Must check which() before get()ing a union member."); | 6971 "Must check which() before get()ing a union member."); |
6777 return _builder.getDataField< ::int8_t>( | 6972 return _builder.getDataField< ::int8_t>( |
6778 2 * ::capnp::ELEMENTS); | 6973 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6779 } | 6974 } |
6780 inline void Value::Builder::setInt8( ::int8_t value) { | 6975 inline void Value::Builder::setInt8( ::int8_t value) { |
6781 _builder.setDataField<Value::Which>( | 6976 _builder.setDataField<Value::Which>( |
6782 0 * ::capnp::ELEMENTS, Value::INT8); | 6977 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT8); |
6783 _builder.setDataField< ::int8_t>( | 6978 _builder.setDataField< ::int8_t>( |
6784 2 * ::capnp::ELEMENTS, value); | 6979 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
6785 } | 6980 } |
6786 | 6981 |
6787 inline bool Value::Reader::isInt16() const { | 6982 inline bool Value::Reader::isInt16() const { |
6788 return which() == Value::INT16; | 6983 return which() == Value::INT16; |
6789 } | 6984 } |
6792 } | 6987 } |
6793 inline ::int16_t Value::Reader::getInt16() const { | 6988 inline ::int16_t Value::Reader::getInt16() const { |
6794 KJ_IREQUIRE((which() == Value::INT16), | 6989 KJ_IREQUIRE((which() == Value::INT16), |
6795 "Must check which() before get()ing a union member."); | 6990 "Must check which() before get()ing a union member."); |
6796 return _reader.getDataField< ::int16_t>( | 6991 return _reader.getDataField< ::int16_t>( |
6797 1 * ::capnp::ELEMENTS); | 6992 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6798 } | 6993 } |
6799 | 6994 |
6800 inline ::int16_t Value::Builder::getInt16() { | 6995 inline ::int16_t Value::Builder::getInt16() { |
6801 KJ_IREQUIRE((which() == Value::INT16), | 6996 KJ_IREQUIRE((which() == Value::INT16), |
6802 "Must check which() before get()ing a union member."); | 6997 "Must check which() before get()ing a union member."); |
6803 return _builder.getDataField< ::int16_t>( | 6998 return _builder.getDataField< ::int16_t>( |
6804 1 * ::capnp::ELEMENTS); | 6999 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6805 } | 7000 } |
6806 inline void Value::Builder::setInt16( ::int16_t value) { | 7001 inline void Value::Builder::setInt16( ::int16_t value) { |
6807 _builder.setDataField<Value::Which>( | 7002 _builder.setDataField<Value::Which>( |
6808 0 * ::capnp::ELEMENTS, Value::INT16); | 7003 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT16); |
6809 _builder.setDataField< ::int16_t>( | 7004 _builder.setDataField< ::int16_t>( |
6810 1 * ::capnp::ELEMENTS, value); | 7005 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6811 } | 7006 } |
6812 | 7007 |
6813 inline bool Value::Reader::isInt32() const { | 7008 inline bool Value::Reader::isInt32() const { |
6814 return which() == Value::INT32; | 7009 return which() == Value::INT32; |
6815 } | 7010 } |
6818 } | 7013 } |
6819 inline ::int32_t Value::Reader::getInt32() const { | 7014 inline ::int32_t Value::Reader::getInt32() const { |
6820 KJ_IREQUIRE((which() == Value::INT32), | 7015 KJ_IREQUIRE((which() == Value::INT32), |
6821 "Must check which() before get()ing a union member."); | 7016 "Must check which() before get()ing a union member."); |
6822 return _reader.getDataField< ::int32_t>( | 7017 return _reader.getDataField< ::int32_t>( |
6823 1 * ::capnp::ELEMENTS); | 7018 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6824 } | 7019 } |
6825 | 7020 |
6826 inline ::int32_t Value::Builder::getInt32() { | 7021 inline ::int32_t Value::Builder::getInt32() { |
6827 KJ_IREQUIRE((which() == Value::INT32), | 7022 KJ_IREQUIRE((which() == Value::INT32), |
6828 "Must check which() before get()ing a union member."); | 7023 "Must check which() before get()ing a union member."); |
6829 return _builder.getDataField< ::int32_t>( | 7024 return _builder.getDataField< ::int32_t>( |
6830 1 * ::capnp::ELEMENTS); | 7025 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6831 } | 7026 } |
6832 inline void Value::Builder::setInt32( ::int32_t value) { | 7027 inline void Value::Builder::setInt32( ::int32_t value) { |
6833 _builder.setDataField<Value::Which>( | 7028 _builder.setDataField<Value::Which>( |
6834 0 * ::capnp::ELEMENTS, Value::INT32); | 7029 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT32); |
6835 _builder.setDataField< ::int32_t>( | 7030 _builder.setDataField< ::int32_t>( |
6836 1 * ::capnp::ELEMENTS, value); | 7031 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6837 } | 7032 } |
6838 | 7033 |
6839 inline bool Value::Reader::isInt64() const { | 7034 inline bool Value::Reader::isInt64() const { |
6840 return which() == Value::INT64; | 7035 return which() == Value::INT64; |
6841 } | 7036 } |
6844 } | 7039 } |
6845 inline ::int64_t Value::Reader::getInt64() const { | 7040 inline ::int64_t Value::Reader::getInt64() const { |
6846 KJ_IREQUIRE((which() == Value::INT64), | 7041 KJ_IREQUIRE((which() == Value::INT64), |
6847 "Must check which() before get()ing a union member."); | 7042 "Must check which() before get()ing a union member."); |
6848 return _reader.getDataField< ::int64_t>( | 7043 return _reader.getDataField< ::int64_t>( |
6849 1 * ::capnp::ELEMENTS); | 7044 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6850 } | 7045 } |
6851 | 7046 |
6852 inline ::int64_t Value::Builder::getInt64() { | 7047 inline ::int64_t Value::Builder::getInt64() { |
6853 KJ_IREQUIRE((which() == Value::INT64), | 7048 KJ_IREQUIRE((which() == Value::INT64), |
6854 "Must check which() before get()ing a union member."); | 7049 "Must check which() before get()ing a union member."); |
6855 return _builder.getDataField< ::int64_t>( | 7050 return _builder.getDataField< ::int64_t>( |
6856 1 * ::capnp::ELEMENTS); | 7051 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6857 } | 7052 } |
6858 inline void Value::Builder::setInt64( ::int64_t value) { | 7053 inline void Value::Builder::setInt64( ::int64_t value) { |
6859 _builder.setDataField<Value::Which>( | 7054 _builder.setDataField<Value::Which>( |
6860 0 * ::capnp::ELEMENTS, Value::INT64); | 7055 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT64); |
6861 _builder.setDataField< ::int64_t>( | 7056 _builder.setDataField< ::int64_t>( |
6862 1 * ::capnp::ELEMENTS, value); | 7057 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6863 } | 7058 } |
6864 | 7059 |
6865 inline bool Value::Reader::isUint8() const { | 7060 inline bool Value::Reader::isUint8() const { |
6866 return which() == Value::UINT8; | 7061 return which() == Value::UINT8; |
6867 } | 7062 } |
6870 } | 7065 } |
6871 inline ::uint8_t Value::Reader::getUint8() const { | 7066 inline ::uint8_t Value::Reader::getUint8() const { |
6872 KJ_IREQUIRE((which() == Value::UINT8), | 7067 KJ_IREQUIRE((which() == Value::UINT8), |
6873 "Must check which() before get()ing a union member."); | 7068 "Must check which() before get()ing a union member."); |
6874 return _reader.getDataField< ::uint8_t>( | 7069 return _reader.getDataField< ::uint8_t>( |
6875 2 * ::capnp::ELEMENTS); | 7070 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6876 } | 7071 } |
6877 | 7072 |
6878 inline ::uint8_t Value::Builder::getUint8() { | 7073 inline ::uint8_t Value::Builder::getUint8() { |
6879 KJ_IREQUIRE((which() == Value::UINT8), | 7074 KJ_IREQUIRE((which() == Value::UINT8), |
6880 "Must check which() before get()ing a union member."); | 7075 "Must check which() before get()ing a union member."); |
6881 return _builder.getDataField< ::uint8_t>( | 7076 return _builder.getDataField< ::uint8_t>( |
6882 2 * ::capnp::ELEMENTS); | 7077 ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
6883 } | 7078 } |
6884 inline void Value::Builder::setUint8( ::uint8_t value) { | 7079 inline void Value::Builder::setUint8( ::uint8_t value) { |
6885 _builder.setDataField<Value::Which>( | 7080 _builder.setDataField<Value::Which>( |
6886 0 * ::capnp::ELEMENTS, Value::UINT8); | 7081 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT8); |
6887 _builder.setDataField< ::uint8_t>( | 7082 _builder.setDataField< ::uint8_t>( |
6888 2 * ::capnp::ELEMENTS, value); | 7083 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
6889 } | 7084 } |
6890 | 7085 |
6891 inline bool Value::Reader::isUint16() const { | 7086 inline bool Value::Reader::isUint16() const { |
6892 return which() == Value::UINT16; | 7087 return which() == Value::UINT16; |
6893 } | 7088 } |
6896 } | 7091 } |
6897 inline ::uint16_t Value::Reader::getUint16() const { | 7092 inline ::uint16_t Value::Reader::getUint16() const { |
6898 KJ_IREQUIRE((which() == Value::UINT16), | 7093 KJ_IREQUIRE((which() == Value::UINT16), |
6899 "Must check which() before get()ing a union member."); | 7094 "Must check which() before get()ing a union member."); |
6900 return _reader.getDataField< ::uint16_t>( | 7095 return _reader.getDataField< ::uint16_t>( |
6901 1 * ::capnp::ELEMENTS); | 7096 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6902 } | 7097 } |
6903 | 7098 |
6904 inline ::uint16_t Value::Builder::getUint16() { | 7099 inline ::uint16_t Value::Builder::getUint16() { |
6905 KJ_IREQUIRE((which() == Value::UINT16), | 7100 KJ_IREQUIRE((which() == Value::UINT16), |
6906 "Must check which() before get()ing a union member."); | 7101 "Must check which() before get()ing a union member."); |
6907 return _builder.getDataField< ::uint16_t>( | 7102 return _builder.getDataField< ::uint16_t>( |
6908 1 * ::capnp::ELEMENTS); | 7103 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6909 } | 7104 } |
6910 inline void Value::Builder::setUint16( ::uint16_t value) { | 7105 inline void Value::Builder::setUint16( ::uint16_t value) { |
6911 _builder.setDataField<Value::Which>( | 7106 _builder.setDataField<Value::Which>( |
6912 0 * ::capnp::ELEMENTS, Value::UINT16); | 7107 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT16); |
6913 _builder.setDataField< ::uint16_t>( | 7108 _builder.setDataField< ::uint16_t>( |
6914 1 * ::capnp::ELEMENTS, value); | 7109 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6915 } | 7110 } |
6916 | 7111 |
6917 inline bool Value::Reader::isUint32() const { | 7112 inline bool Value::Reader::isUint32() const { |
6918 return which() == Value::UINT32; | 7113 return which() == Value::UINT32; |
6919 } | 7114 } |
6922 } | 7117 } |
6923 inline ::uint32_t Value::Reader::getUint32() const { | 7118 inline ::uint32_t Value::Reader::getUint32() const { |
6924 KJ_IREQUIRE((which() == Value::UINT32), | 7119 KJ_IREQUIRE((which() == Value::UINT32), |
6925 "Must check which() before get()ing a union member."); | 7120 "Must check which() before get()ing a union member."); |
6926 return _reader.getDataField< ::uint32_t>( | 7121 return _reader.getDataField< ::uint32_t>( |
6927 1 * ::capnp::ELEMENTS); | 7122 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6928 } | 7123 } |
6929 | 7124 |
6930 inline ::uint32_t Value::Builder::getUint32() { | 7125 inline ::uint32_t Value::Builder::getUint32() { |
6931 KJ_IREQUIRE((which() == Value::UINT32), | 7126 KJ_IREQUIRE((which() == Value::UINT32), |
6932 "Must check which() before get()ing a union member."); | 7127 "Must check which() before get()ing a union member."); |
6933 return _builder.getDataField< ::uint32_t>( | 7128 return _builder.getDataField< ::uint32_t>( |
6934 1 * ::capnp::ELEMENTS); | 7129 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6935 } | 7130 } |
6936 inline void Value::Builder::setUint32( ::uint32_t value) { | 7131 inline void Value::Builder::setUint32( ::uint32_t value) { |
6937 _builder.setDataField<Value::Which>( | 7132 _builder.setDataField<Value::Which>( |
6938 0 * ::capnp::ELEMENTS, Value::UINT32); | 7133 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT32); |
6939 _builder.setDataField< ::uint32_t>( | 7134 _builder.setDataField< ::uint32_t>( |
6940 1 * ::capnp::ELEMENTS, value); | 7135 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6941 } | 7136 } |
6942 | 7137 |
6943 inline bool Value::Reader::isUint64() const { | 7138 inline bool Value::Reader::isUint64() const { |
6944 return which() == Value::UINT64; | 7139 return which() == Value::UINT64; |
6945 } | 7140 } |
6948 } | 7143 } |
6949 inline ::uint64_t Value::Reader::getUint64() const { | 7144 inline ::uint64_t Value::Reader::getUint64() const { |
6950 KJ_IREQUIRE((which() == Value::UINT64), | 7145 KJ_IREQUIRE((which() == Value::UINT64), |
6951 "Must check which() before get()ing a union member."); | 7146 "Must check which() before get()ing a union member."); |
6952 return _reader.getDataField< ::uint64_t>( | 7147 return _reader.getDataField< ::uint64_t>( |
6953 1 * ::capnp::ELEMENTS); | 7148 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6954 } | 7149 } |
6955 | 7150 |
6956 inline ::uint64_t Value::Builder::getUint64() { | 7151 inline ::uint64_t Value::Builder::getUint64() { |
6957 KJ_IREQUIRE((which() == Value::UINT64), | 7152 KJ_IREQUIRE((which() == Value::UINT64), |
6958 "Must check which() before get()ing a union member."); | 7153 "Must check which() before get()ing a union member."); |
6959 return _builder.getDataField< ::uint64_t>( | 7154 return _builder.getDataField< ::uint64_t>( |
6960 1 * ::capnp::ELEMENTS); | 7155 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6961 } | 7156 } |
6962 inline void Value::Builder::setUint64( ::uint64_t value) { | 7157 inline void Value::Builder::setUint64( ::uint64_t value) { |
6963 _builder.setDataField<Value::Which>( | 7158 _builder.setDataField<Value::Which>( |
6964 0 * ::capnp::ELEMENTS, Value::UINT64); | 7159 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT64); |
6965 _builder.setDataField< ::uint64_t>( | 7160 _builder.setDataField< ::uint64_t>( |
6966 1 * ::capnp::ELEMENTS, value); | 7161 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6967 } | 7162 } |
6968 | 7163 |
6969 inline bool Value::Reader::isFloat32() const { | 7164 inline bool Value::Reader::isFloat32() const { |
6970 return which() == Value::FLOAT32; | 7165 return which() == Value::FLOAT32; |
6971 } | 7166 } |
6974 } | 7169 } |
6975 inline float Value::Reader::getFloat32() const { | 7170 inline float Value::Reader::getFloat32() const { |
6976 KJ_IREQUIRE((which() == Value::FLOAT32), | 7171 KJ_IREQUIRE((which() == Value::FLOAT32), |
6977 "Must check which() before get()ing a union member."); | 7172 "Must check which() before get()ing a union member."); |
6978 return _reader.getDataField<float>( | 7173 return _reader.getDataField<float>( |
6979 1 * ::capnp::ELEMENTS); | 7174 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6980 } | 7175 } |
6981 | 7176 |
6982 inline float Value::Builder::getFloat32() { | 7177 inline float Value::Builder::getFloat32() { |
6983 KJ_IREQUIRE((which() == Value::FLOAT32), | 7178 KJ_IREQUIRE((which() == Value::FLOAT32), |
6984 "Must check which() before get()ing a union member."); | 7179 "Must check which() before get()ing a union member."); |
6985 return _builder.getDataField<float>( | 7180 return _builder.getDataField<float>( |
6986 1 * ::capnp::ELEMENTS); | 7181 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
6987 } | 7182 } |
6988 inline void Value::Builder::setFloat32(float value) { | 7183 inline void Value::Builder::setFloat32(float value) { |
6989 _builder.setDataField<Value::Which>( | 7184 _builder.setDataField<Value::Which>( |
6990 0 * ::capnp::ELEMENTS, Value::FLOAT32); | 7185 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::FLOAT32); |
6991 _builder.setDataField<float>( | 7186 _builder.setDataField<float>( |
6992 1 * ::capnp::ELEMENTS, value); | 7187 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
6993 } | 7188 } |
6994 | 7189 |
6995 inline bool Value::Reader::isFloat64() const { | 7190 inline bool Value::Reader::isFloat64() const { |
6996 return which() == Value::FLOAT64; | 7191 return which() == Value::FLOAT64; |
6997 } | 7192 } |
7000 } | 7195 } |
7001 inline double Value::Reader::getFloat64() const { | 7196 inline double Value::Reader::getFloat64() const { |
7002 KJ_IREQUIRE((which() == Value::FLOAT64), | 7197 KJ_IREQUIRE((which() == Value::FLOAT64), |
7003 "Must check which() before get()ing a union member."); | 7198 "Must check which() before get()ing a union member."); |
7004 return _reader.getDataField<double>( | 7199 return _reader.getDataField<double>( |
7005 1 * ::capnp::ELEMENTS); | 7200 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7006 } | 7201 } |
7007 | 7202 |
7008 inline double Value::Builder::getFloat64() { | 7203 inline double Value::Builder::getFloat64() { |
7009 KJ_IREQUIRE((which() == Value::FLOAT64), | 7204 KJ_IREQUIRE((which() == Value::FLOAT64), |
7010 "Must check which() before get()ing a union member."); | 7205 "Must check which() before get()ing a union member."); |
7011 return _builder.getDataField<double>( | 7206 return _builder.getDataField<double>( |
7012 1 * ::capnp::ELEMENTS); | 7207 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7013 } | 7208 } |
7014 inline void Value::Builder::setFloat64(double value) { | 7209 inline void Value::Builder::setFloat64(double value) { |
7015 _builder.setDataField<Value::Which>( | 7210 _builder.setDataField<Value::Which>( |
7016 0 * ::capnp::ELEMENTS, Value::FLOAT64); | 7211 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::FLOAT64); |
7017 _builder.setDataField<double>( | 7212 _builder.setDataField<double>( |
7018 1 * ::capnp::ELEMENTS, value); | 7213 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7019 } | 7214 } |
7020 | 7215 |
7021 inline bool Value::Reader::isText() const { | 7216 inline bool Value::Reader::isText() const { |
7022 return which() == Value::TEXT; | 7217 return which() == Value::TEXT; |
7023 } | 7218 } |
7024 inline bool Value::Builder::isText() { | 7219 inline bool Value::Builder::isText() { |
7025 return which() == Value::TEXT; | 7220 return which() == Value::TEXT; |
7026 } | 7221 } |
7027 inline bool Value::Reader::hasText() const { | 7222 inline bool Value::Reader::hasText() const { |
7028 if (which() != Value::TEXT) return false; | 7223 if (which() != Value::TEXT) return false; |
7029 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7224 return !_reader.getPointerField( |
7225 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7030 } | 7226 } |
7031 inline bool Value::Builder::hasText() { | 7227 inline bool Value::Builder::hasText() { |
7032 if (which() != Value::TEXT) return false; | 7228 if (which() != Value::TEXT) return false; |
7033 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7229 return !_builder.getPointerField( |
7230 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7034 } | 7231 } |
7035 inline ::capnp::Text::Reader Value::Reader::getText() const { | 7232 inline ::capnp::Text::Reader Value::Reader::getText() const { |
7036 KJ_IREQUIRE((which() == Value::TEXT), | 7233 KJ_IREQUIRE((which() == Value::TEXT), |
7037 "Must check which() before get()ing a union member."); | 7234 "Must check which() before get()ing a union member."); |
7038 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 7235 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
7039 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7236 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7040 } | 7237 } |
7041 inline ::capnp::Text::Builder Value::Builder::getText() { | 7238 inline ::capnp::Text::Builder Value::Builder::getText() { |
7042 KJ_IREQUIRE((which() == Value::TEXT), | 7239 KJ_IREQUIRE((which() == Value::TEXT), |
7043 "Must check which() before get()ing a union member."); | 7240 "Must check which() before get()ing a union member."); |
7044 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 7241 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
7045 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7242 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7046 } | 7243 } |
7047 inline void Value::Builder::setText( ::capnp::Text::Reader value) { | 7244 inline void Value::Builder::setText( ::capnp::Text::Reader value) { |
7048 _builder.setDataField<Value::Which>( | 7245 _builder.setDataField<Value::Which>( |
7049 0 * ::capnp::ELEMENTS, Value::TEXT); | 7246 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); |
7050 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 7247 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
7051 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 7248 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7052 } | 7249 } |
7053 inline ::capnp::Text::Builder Value::Builder::initText(unsigned int size) { | 7250 inline ::capnp::Text::Builder Value::Builder::initText(unsigned int size) { |
7054 _builder.setDataField<Value::Which>( | 7251 _builder.setDataField<Value::Which>( |
7055 0 * ::capnp::ELEMENTS, Value::TEXT); | 7252 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); |
7056 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 7253 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
7057 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 7254 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7058 } | 7255 } |
7059 inline void Value::Builder::adoptText( | 7256 inline void Value::Builder::adoptText( |
7060 ::capnp::Orphan< ::capnp::Text>&& value) { | 7257 ::capnp::Orphan< ::capnp::Text>&& value) { |
7061 _builder.setDataField<Value::Which>( | 7258 _builder.setDataField<Value::Which>( |
7062 0 * ::capnp::ELEMENTS, Value::TEXT); | 7259 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); |
7063 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 7260 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
7064 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 7261 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7065 } | 7262 } |
7066 inline ::capnp::Orphan< ::capnp::Text> Value::Builder::disownText() { | 7263 inline ::capnp::Orphan< ::capnp::Text> Value::Builder::disownText() { |
7067 KJ_IREQUIRE((which() == Value::TEXT), | 7264 KJ_IREQUIRE((which() == Value::TEXT), |
7068 "Must check which() before get()ing a union member."); | 7265 "Must check which() before get()ing a union member."); |
7069 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 7266 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
7070 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7267 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7071 } | 7268 } |
7072 | 7269 |
7073 inline bool Value::Reader::isData() const { | 7270 inline bool Value::Reader::isData() const { |
7074 return which() == Value::DATA; | 7271 return which() == Value::DATA; |
7075 } | 7272 } |
7076 inline bool Value::Builder::isData() { | 7273 inline bool Value::Builder::isData() { |
7077 return which() == Value::DATA; | 7274 return which() == Value::DATA; |
7078 } | 7275 } |
7079 inline bool Value::Reader::hasData() const { | 7276 inline bool Value::Reader::hasData() const { |
7080 if (which() != Value::DATA) return false; | 7277 if (which() != Value::DATA) return false; |
7081 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7278 return !_reader.getPointerField( |
7279 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7082 } | 7280 } |
7083 inline bool Value::Builder::hasData() { | 7281 inline bool Value::Builder::hasData() { |
7084 if (which() != Value::DATA) return false; | 7282 if (which() != Value::DATA) return false; |
7085 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7283 return !_builder.getPointerField( |
7284 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7086 } | 7285 } |
7087 inline ::capnp::Data::Reader Value::Reader::getData() const { | 7286 inline ::capnp::Data::Reader Value::Reader::getData() const { |
7088 KJ_IREQUIRE((which() == Value::DATA), | 7287 KJ_IREQUIRE((which() == Value::DATA), |
7089 "Must check which() before get()ing a union member."); | 7288 "Must check which() before get()ing a union member."); |
7090 return ::capnp::_::PointerHelpers< ::capnp::Data>::get( | 7289 return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField( |
7091 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7290 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7092 } | 7291 } |
7093 inline ::capnp::Data::Builder Value::Builder::getData() { | 7292 inline ::capnp::Data::Builder Value::Builder::getData() { |
7094 KJ_IREQUIRE((which() == Value::DATA), | 7293 KJ_IREQUIRE((which() == Value::DATA), |
7095 "Must check which() before get()ing a union member."); | 7294 "Must check which() before get()ing a union member."); |
7096 return ::capnp::_::PointerHelpers< ::capnp::Data>::get( | 7295 return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField( |
7097 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7296 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7098 } | 7297 } |
7099 inline void Value::Builder::setData( ::capnp::Data::Reader value) { | 7298 inline void Value::Builder::setData( ::capnp::Data::Reader value) { |
7100 _builder.setDataField<Value::Which>( | 7299 _builder.setDataField<Value::Which>( |
7101 0 * ::capnp::ELEMENTS, Value::DATA); | 7300 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); |
7102 ::capnp::_::PointerHelpers< ::capnp::Data>::set( | 7301 ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField( |
7103 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 7302 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7104 } | 7303 } |
7105 inline ::capnp::Data::Builder Value::Builder::initData(unsigned int size) { | 7304 inline ::capnp::Data::Builder Value::Builder::initData(unsigned int size) { |
7106 _builder.setDataField<Value::Which>( | 7305 _builder.setDataField<Value::Which>( |
7107 0 * ::capnp::ELEMENTS, Value::DATA); | 7306 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); |
7108 return ::capnp::_::PointerHelpers< ::capnp::Data>::init( | 7307 return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField( |
7109 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 7308 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7110 } | 7309 } |
7111 inline void Value::Builder::adoptData( | 7310 inline void Value::Builder::adoptData( |
7112 ::capnp::Orphan< ::capnp::Data>&& value) { | 7311 ::capnp::Orphan< ::capnp::Data>&& value) { |
7113 _builder.setDataField<Value::Which>( | 7312 _builder.setDataField<Value::Which>( |
7114 0 * ::capnp::ELEMENTS, Value::DATA); | 7313 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); |
7115 ::capnp::_::PointerHelpers< ::capnp::Data>::adopt( | 7314 ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField( |
7116 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 7315 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7117 } | 7316 } |
7118 inline ::capnp::Orphan< ::capnp::Data> Value::Builder::disownData() { | 7317 inline ::capnp::Orphan< ::capnp::Data> Value::Builder::disownData() { |
7119 KJ_IREQUIRE((which() == Value::DATA), | 7318 KJ_IREQUIRE((which() == Value::DATA), |
7120 "Must check which() before get()ing a union member."); | 7319 "Must check which() before get()ing a union member."); |
7121 return ::capnp::_::PointerHelpers< ::capnp::Data>::disown( | 7320 return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField( |
7122 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7321 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7123 } | 7322 } |
7124 | 7323 |
7125 inline bool Value::Reader::isList() const { | 7324 inline bool Value::Reader::isList() const { |
7126 return which() == Value::LIST; | 7325 return which() == Value::LIST; |
7127 } | 7326 } |
7128 inline bool Value::Builder::isList() { | 7327 inline bool Value::Builder::isList() { |
7129 return which() == Value::LIST; | 7328 return which() == Value::LIST; |
7130 } | 7329 } |
7131 inline bool Value::Reader::hasList() const { | 7330 inline bool Value::Reader::hasList() const { |
7132 if (which() != Value::LIST) return false; | 7331 if (which() != Value::LIST) return false; |
7133 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7332 return !_reader.getPointerField( |
7333 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7134 } | 7334 } |
7135 inline bool Value::Builder::hasList() { | 7335 inline bool Value::Builder::hasList() { |
7136 if (which() != Value::LIST) return false; | 7336 if (which() != Value::LIST) return false; |
7137 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7337 return !_builder.getPointerField( |
7338 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7138 } | 7339 } |
7139 inline ::capnp::AnyPointer::Reader Value::Reader::getList() const { | 7340 inline ::capnp::AnyPointer::Reader Value::Reader::getList() const { |
7140 KJ_IREQUIRE((which() == Value::LIST), | 7341 KJ_IREQUIRE((which() == Value::LIST), |
7141 "Must check which() before get()ing a union member."); | 7342 "Must check which() before get()ing a union member."); |
7142 return ::capnp::AnyPointer::Reader( | 7343 return ::capnp::AnyPointer::Reader(_reader.getPointerField( |
7143 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7344 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7144 } | 7345 } |
7145 inline ::capnp::AnyPointer::Builder Value::Builder::getList() { | 7346 inline ::capnp::AnyPointer::Builder Value::Builder::getList() { |
7146 KJ_IREQUIRE((which() == Value::LIST), | 7347 KJ_IREQUIRE((which() == Value::LIST), |
7147 "Must check which() before get()ing a union member."); | 7348 "Must check which() before get()ing a union member."); |
7148 return ::capnp::AnyPointer::Builder( | 7349 return ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7149 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7350 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7150 } | 7351 } |
7151 inline ::capnp::AnyPointer::Builder Value::Builder::initList() { | 7352 inline ::capnp::AnyPointer::Builder Value::Builder::initList() { |
7152 _builder.setDataField<Value::Which>( | 7353 _builder.setDataField<Value::Which>( |
7153 0 * ::capnp::ELEMENTS, Value::LIST); | 7354 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::LIST); |
7154 auto result = ::capnp::AnyPointer::Builder( | 7355 auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7155 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7356 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7156 result.clear(); | 7357 result.clear(); |
7157 return result; | 7358 return result; |
7158 } | 7359 } |
7159 | 7360 |
7160 inline bool Value::Reader::isEnum() const { | 7361 inline bool Value::Reader::isEnum() const { |
7165 } | 7366 } |
7166 inline ::uint16_t Value::Reader::getEnum() const { | 7367 inline ::uint16_t Value::Reader::getEnum() const { |
7167 KJ_IREQUIRE((which() == Value::ENUM), | 7368 KJ_IREQUIRE((which() == Value::ENUM), |
7168 "Must check which() before get()ing a union member."); | 7369 "Must check which() before get()ing a union member."); |
7169 return _reader.getDataField< ::uint16_t>( | 7370 return _reader.getDataField< ::uint16_t>( |
7170 1 * ::capnp::ELEMENTS); | 7371 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7171 } | 7372 } |
7172 | 7373 |
7173 inline ::uint16_t Value::Builder::getEnum() { | 7374 inline ::uint16_t Value::Builder::getEnum() { |
7174 KJ_IREQUIRE((which() == Value::ENUM), | 7375 KJ_IREQUIRE((which() == Value::ENUM), |
7175 "Must check which() before get()ing a union member."); | 7376 "Must check which() before get()ing a union member."); |
7176 return _builder.getDataField< ::uint16_t>( | 7377 return _builder.getDataField< ::uint16_t>( |
7177 1 * ::capnp::ELEMENTS); | 7378 ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
7178 } | 7379 } |
7179 inline void Value::Builder::setEnum( ::uint16_t value) { | 7380 inline void Value::Builder::setEnum( ::uint16_t value) { |
7180 _builder.setDataField<Value::Which>( | 7381 _builder.setDataField<Value::Which>( |
7181 0 * ::capnp::ELEMENTS, Value::ENUM); | 7382 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::ENUM); |
7182 _builder.setDataField< ::uint16_t>( | 7383 _builder.setDataField< ::uint16_t>( |
7183 1 * ::capnp::ELEMENTS, value); | 7384 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
7184 } | 7385 } |
7185 | 7386 |
7186 inline bool Value::Reader::isStruct() const { | 7387 inline bool Value::Reader::isStruct() const { |
7187 return which() == Value::STRUCT; | 7388 return which() == Value::STRUCT; |
7188 } | 7389 } |
7189 inline bool Value::Builder::isStruct() { | 7390 inline bool Value::Builder::isStruct() { |
7190 return which() == Value::STRUCT; | 7391 return which() == Value::STRUCT; |
7191 } | 7392 } |
7192 inline bool Value::Reader::hasStruct() const { | 7393 inline bool Value::Reader::hasStruct() const { |
7193 if (which() != Value::STRUCT) return false; | 7394 if (which() != Value::STRUCT) return false; |
7194 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7395 return !_reader.getPointerField( |
7396 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7195 } | 7397 } |
7196 inline bool Value::Builder::hasStruct() { | 7398 inline bool Value::Builder::hasStruct() { |
7197 if (which() != Value::STRUCT) return false; | 7399 if (which() != Value::STRUCT) return false; |
7198 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7400 return !_builder.getPointerField( |
7401 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7199 } | 7402 } |
7200 inline ::capnp::AnyPointer::Reader Value::Reader::getStruct() const { | 7403 inline ::capnp::AnyPointer::Reader Value::Reader::getStruct() const { |
7201 KJ_IREQUIRE((which() == Value::STRUCT), | 7404 KJ_IREQUIRE((which() == Value::STRUCT), |
7202 "Must check which() before get()ing a union member."); | 7405 "Must check which() before get()ing a union member."); |
7203 return ::capnp::AnyPointer::Reader( | 7406 return ::capnp::AnyPointer::Reader(_reader.getPointerField( |
7204 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7407 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7205 } | 7408 } |
7206 inline ::capnp::AnyPointer::Builder Value::Builder::getStruct() { | 7409 inline ::capnp::AnyPointer::Builder Value::Builder::getStruct() { |
7207 KJ_IREQUIRE((which() == Value::STRUCT), | 7410 KJ_IREQUIRE((which() == Value::STRUCT), |
7208 "Must check which() before get()ing a union member."); | 7411 "Must check which() before get()ing a union member."); |
7209 return ::capnp::AnyPointer::Builder( | 7412 return ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7210 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7413 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7211 } | 7414 } |
7212 inline ::capnp::AnyPointer::Builder Value::Builder::initStruct() { | 7415 inline ::capnp::AnyPointer::Builder Value::Builder::initStruct() { |
7213 _builder.setDataField<Value::Which>( | 7416 _builder.setDataField<Value::Which>( |
7214 0 * ::capnp::ELEMENTS, Value::STRUCT); | 7417 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::STRUCT); |
7215 auto result = ::capnp::AnyPointer::Builder( | 7418 auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7216 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7419 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7217 result.clear(); | 7420 result.clear(); |
7218 return result; | 7421 return result; |
7219 } | 7422 } |
7220 | 7423 |
7221 inline bool Value::Reader::isInterface() const { | 7424 inline bool Value::Reader::isInterface() const { |
7226 } | 7429 } |
7227 inline ::capnp::Void Value::Reader::getInterface() const { | 7430 inline ::capnp::Void Value::Reader::getInterface() const { |
7228 KJ_IREQUIRE((which() == Value::INTERFACE), | 7431 KJ_IREQUIRE((which() == Value::INTERFACE), |
7229 "Must check which() before get()ing a union member."); | 7432 "Must check which() before get()ing a union member."); |
7230 return _reader.getDataField< ::capnp::Void>( | 7433 return _reader.getDataField< ::capnp::Void>( |
7231 0 * ::capnp::ELEMENTS); | 7434 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7232 } | 7435 } |
7233 | 7436 |
7234 inline ::capnp::Void Value::Builder::getInterface() { | 7437 inline ::capnp::Void Value::Builder::getInterface() { |
7235 KJ_IREQUIRE((which() == Value::INTERFACE), | 7438 KJ_IREQUIRE((which() == Value::INTERFACE), |
7236 "Must check which() before get()ing a union member."); | 7439 "Must check which() before get()ing a union member."); |
7237 return _builder.getDataField< ::capnp::Void>( | 7440 return _builder.getDataField< ::capnp::Void>( |
7238 0 * ::capnp::ELEMENTS); | 7441 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7239 } | 7442 } |
7240 inline void Value::Builder::setInterface( ::capnp::Void value) { | 7443 inline void Value::Builder::setInterface( ::capnp::Void value) { |
7241 _builder.setDataField<Value::Which>( | 7444 _builder.setDataField<Value::Which>( |
7242 0 * ::capnp::ELEMENTS, Value::INTERFACE); | 7445 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INTERFACE); |
7243 _builder.setDataField< ::capnp::Void>( | 7446 _builder.setDataField< ::capnp::Void>( |
7244 0 * ::capnp::ELEMENTS, value); | 7447 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7245 } | 7448 } |
7246 | 7449 |
7247 inline bool Value::Reader::isAnyPointer() const { | 7450 inline bool Value::Reader::isAnyPointer() const { |
7248 return which() == Value::ANY_POINTER; | 7451 return which() == Value::ANY_POINTER; |
7249 } | 7452 } |
7250 inline bool Value::Builder::isAnyPointer() { | 7453 inline bool Value::Builder::isAnyPointer() { |
7251 return which() == Value::ANY_POINTER; | 7454 return which() == Value::ANY_POINTER; |
7252 } | 7455 } |
7253 inline bool Value::Reader::hasAnyPointer() const { | 7456 inline bool Value::Reader::hasAnyPointer() const { |
7254 if (which() != Value::ANY_POINTER) return false; | 7457 if (which() != Value::ANY_POINTER) return false; |
7255 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7458 return !_reader.getPointerField( |
7459 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7256 } | 7460 } |
7257 inline bool Value::Builder::hasAnyPointer() { | 7461 inline bool Value::Builder::hasAnyPointer() { |
7258 if (which() != Value::ANY_POINTER) return false; | 7462 if (which() != Value::ANY_POINTER) return false; |
7259 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7463 return !_builder.getPointerField( |
7464 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7260 } | 7465 } |
7261 inline ::capnp::AnyPointer::Reader Value::Reader::getAnyPointer() const { | 7466 inline ::capnp::AnyPointer::Reader Value::Reader::getAnyPointer() const { |
7262 KJ_IREQUIRE((which() == Value::ANY_POINTER), | 7467 KJ_IREQUIRE((which() == Value::ANY_POINTER), |
7263 "Must check which() before get()ing a union member."); | 7468 "Must check which() before get()ing a union member."); |
7264 return ::capnp::AnyPointer::Reader( | 7469 return ::capnp::AnyPointer::Reader(_reader.getPointerField( |
7265 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7470 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7266 } | 7471 } |
7267 inline ::capnp::AnyPointer::Builder Value::Builder::getAnyPointer() { | 7472 inline ::capnp::AnyPointer::Builder Value::Builder::getAnyPointer() { |
7268 KJ_IREQUIRE((which() == Value::ANY_POINTER), | 7473 KJ_IREQUIRE((which() == Value::ANY_POINTER), |
7269 "Must check which() before get()ing a union member."); | 7474 "Must check which() before get()ing a union member."); |
7270 return ::capnp::AnyPointer::Builder( | 7475 return ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7271 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7476 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7272 } | 7477 } |
7273 inline ::capnp::AnyPointer::Builder Value::Builder::initAnyPointer() { | 7478 inline ::capnp::AnyPointer::Builder Value::Builder::initAnyPointer() { |
7274 _builder.setDataField<Value::Which>( | 7479 _builder.setDataField<Value::Which>( |
7275 0 * ::capnp::ELEMENTS, Value::ANY_POINTER); | 7480 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::ANY_POINTER); |
7276 auto result = ::capnp::AnyPointer::Builder( | 7481 auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( |
7277 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7482 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7278 result.clear(); | 7483 result.clear(); |
7279 return result; | 7484 return result; |
7280 } | 7485 } |
7281 | 7486 |
7282 inline ::uint64_t Annotation::Reader::getId() const { | 7487 inline ::uint64_t Annotation::Reader::getId() const { |
7283 return _reader.getDataField< ::uint64_t>( | 7488 return _reader.getDataField< ::uint64_t>( |
7284 0 * ::capnp::ELEMENTS); | 7489 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7285 } | 7490 } |
7286 | 7491 |
7287 inline ::uint64_t Annotation::Builder::getId() { | 7492 inline ::uint64_t Annotation::Builder::getId() { |
7288 return _builder.getDataField< ::uint64_t>( | 7493 return _builder.getDataField< ::uint64_t>( |
7289 0 * ::capnp::ELEMENTS); | 7494 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7290 } | 7495 } |
7291 inline void Annotation::Builder::setId( ::uint64_t value) { | 7496 inline void Annotation::Builder::setId( ::uint64_t value) { |
7292 _builder.setDataField< ::uint64_t>( | 7497 _builder.setDataField< ::uint64_t>( |
7293 0 * ::capnp::ELEMENTS, value); | 7498 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7294 } | 7499 } |
7295 | 7500 |
7296 inline bool Annotation::Reader::hasValue() const { | 7501 inline bool Annotation::Reader::hasValue() const { |
7297 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7502 return !_reader.getPointerField( |
7503 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7298 } | 7504 } |
7299 inline bool Annotation::Builder::hasValue() { | 7505 inline bool Annotation::Builder::hasValue() { |
7300 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7506 return !_builder.getPointerField( |
7507 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7301 } | 7508 } |
7302 inline ::capnp::schema::Value::Reader Annotation::Reader::getValue() const { | 7509 inline ::capnp::schema::Value::Reader Annotation::Reader::getValue() const { |
7303 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | 7510 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( |
7304 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7511 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7305 } | 7512 } |
7306 inline ::capnp::schema::Value::Builder Annotation::Builder::getValue() { | 7513 inline ::capnp::schema::Value::Builder Annotation::Builder::getValue() { |
7307 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get( | 7514 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( |
7308 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7515 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7309 } | 7516 } |
7310 #if !CAPNP_LITE | 7517 #if !CAPNP_LITE |
7311 inline ::capnp::schema::Value::Pipeline Annotation::Pipeline::getValue() { | 7518 inline ::capnp::schema::Value::Pipeline Annotation::Pipeline::getValue() { |
7312 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(0)); | 7519 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(0)); |
7313 } | 7520 } |
7314 #endif // !CAPNP_LITE | 7521 #endif // !CAPNP_LITE |
7315 inline void Annotation::Builder::setValue( ::capnp::schema::Value::Reader value) { | 7522 inline void Annotation::Builder::setValue( ::capnp::schema::Value::Reader value) { |
7316 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set( | 7523 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( |
7317 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 7524 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7318 } | 7525 } |
7319 inline ::capnp::schema::Value::Builder Annotation::Builder::initValue() { | 7526 inline ::capnp::schema::Value::Builder Annotation::Builder::initValue() { |
7320 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init( | 7527 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( |
7321 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7528 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7322 } | 7529 } |
7323 inline void Annotation::Builder::adoptValue( | 7530 inline void Annotation::Builder::adoptValue( |
7324 ::capnp::Orphan< ::capnp::schema::Value>&& value) { | 7531 ::capnp::Orphan< ::capnp::schema::Value>&& value) { |
7325 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt( | 7532 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( |
7326 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 7533 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7327 } | 7534 } |
7328 inline ::capnp::Orphan< ::capnp::schema::Value> Annotation::Builder::disownValue() { | 7535 inline ::capnp::Orphan< ::capnp::schema::Value> Annotation::Builder::disownValue() { |
7329 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown( | 7536 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( |
7330 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7537 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7331 } | 7538 } |
7332 | 7539 |
7333 inline bool Annotation::Reader::hasBrand() const { | 7540 inline bool Annotation::Reader::hasBrand() const { |
7334 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | 7541 return !_reader.getPointerField( |
7542 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
7335 } | 7543 } |
7336 inline bool Annotation::Builder::hasBrand() { | 7544 inline bool Annotation::Builder::hasBrand() { |
7337 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | 7545 return !_builder.getPointerField( |
7546 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
7338 } | 7547 } |
7339 inline ::capnp::schema::Brand::Reader Annotation::Reader::getBrand() const { | 7548 inline ::capnp::schema::Brand::Reader Annotation::Reader::getBrand() const { |
7340 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 7549 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( |
7341 _reader.getPointerField(1 * ::capnp::POINTERS)); | 7550 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7342 } | 7551 } |
7343 inline ::capnp::schema::Brand::Builder Annotation::Builder::getBrand() { | 7552 inline ::capnp::schema::Brand::Builder Annotation::Builder::getBrand() { |
7344 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get( | 7553 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( |
7345 _builder.getPointerField(1 * ::capnp::POINTERS)); | 7554 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7346 } | 7555 } |
7347 #if !CAPNP_LITE | 7556 #if !CAPNP_LITE |
7348 inline ::capnp::schema::Brand::Pipeline Annotation::Pipeline::getBrand() { | 7557 inline ::capnp::schema::Brand::Pipeline Annotation::Pipeline::getBrand() { |
7349 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(1)); | 7558 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(1)); |
7350 } | 7559 } |
7351 #endif // !CAPNP_LITE | 7560 #endif // !CAPNP_LITE |
7352 inline void Annotation::Builder::setBrand( ::capnp::schema::Brand::Reader value) { | 7561 inline void Annotation::Builder::setBrand( ::capnp::schema::Brand::Reader value) { |
7353 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set( | 7562 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( |
7354 _builder.getPointerField(1 * ::capnp::POINTERS), value); | 7563 ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
7355 } | 7564 } |
7356 inline ::capnp::schema::Brand::Builder Annotation::Builder::initBrand() { | 7565 inline ::capnp::schema::Brand::Builder Annotation::Builder::initBrand() { |
7357 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init( | 7566 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( |
7358 _builder.getPointerField(1 * ::capnp::POINTERS)); | 7567 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7359 } | 7568 } |
7360 inline void Annotation::Builder::adoptBrand( | 7569 inline void Annotation::Builder::adoptBrand( |
7361 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { | 7570 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { |
7362 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt( | 7571 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( |
7363 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | 7572 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
7364 } | 7573 } |
7365 inline ::capnp::Orphan< ::capnp::schema::Brand> Annotation::Builder::disownBrand() { | 7574 inline ::capnp::Orphan< ::capnp::schema::Brand> Annotation::Builder::disownBrand() { |
7366 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown( | 7575 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( |
7367 _builder.getPointerField(1 * ::capnp::POINTERS)); | 7576 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7577 } | |
7578 | |
7579 inline ::uint16_t CapnpVersion::Reader::getMajor() const { | |
7580 return _reader.getDataField< ::uint16_t>( | |
7581 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
7582 } | |
7583 | |
7584 inline ::uint16_t CapnpVersion::Builder::getMajor() { | |
7585 return _builder.getDataField< ::uint16_t>( | |
7586 ::capnp::bounded<0>() * ::capnp::ELEMENTS); | |
7587 } | |
7588 inline void CapnpVersion::Builder::setMajor( ::uint16_t value) { | |
7589 _builder.setDataField< ::uint16_t>( | |
7590 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); | |
7591 } | |
7592 | |
7593 inline ::uint8_t CapnpVersion::Reader::getMinor() const { | |
7594 return _reader.getDataField< ::uint8_t>( | |
7595 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
7596 } | |
7597 | |
7598 inline ::uint8_t CapnpVersion::Builder::getMinor() { | |
7599 return _builder.getDataField< ::uint8_t>( | |
7600 ::capnp::bounded<2>() * ::capnp::ELEMENTS); | |
7601 } | |
7602 inline void CapnpVersion::Builder::setMinor( ::uint8_t value) { | |
7603 _builder.setDataField< ::uint8_t>( | |
7604 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); | |
7605 } | |
7606 | |
7607 inline ::uint8_t CapnpVersion::Reader::getMicro() const { | |
7608 return _reader.getDataField< ::uint8_t>( | |
7609 ::capnp::bounded<3>() * ::capnp::ELEMENTS); | |
7610 } | |
7611 | |
7612 inline ::uint8_t CapnpVersion::Builder::getMicro() { | |
7613 return _builder.getDataField< ::uint8_t>( | |
7614 ::capnp::bounded<3>() * ::capnp::ELEMENTS); | |
7615 } | |
7616 inline void CapnpVersion::Builder::setMicro( ::uint8_t value) { | |
7617 _builder.setDataField< ::uint8_t>( | |
7618 ::capnp::bounded<3>() * ::capnp::ELEMENTS, value); | |
7368 } | 7619 } |
7369 | 7620 |
7370 inline bool CodeGeneratorRequest::Reader::hasNodes() const { | 7621 inline bool CodeGeneratorRequest::Reader::hasNodes() const { |
7371 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7622 return !_reader.getPointerField( |
7623 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7372 } | 7624 } |
7373 inline bool CodeGeneratorRequest::Builder::hasNodes() { | 7625 inline bool CodeGeneratorRequest::Builder::hasNodes() { |
7374 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7626 return !_builder.getPointerField( |
7627 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7375 } | 7628 } |
7376 inline ::capnp::List< ::capnp::schema::Node>::Reader CodeGeneratorRequest::Reader::getNodes() const { | 7629 inline ::capnp::List< ::capnp::schema::Node>::Reader CodeGeneratorRequest::Reader::getNodes() const { |
7377 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::get( | 7630 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::get(_reader.getPointerField( |
7378 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7631 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7379 } | 7632 } |
7380 inline ::capnp::List< ::capnp::schema::Node>::Builder CodeGeneratorRequest::Builder::getNodes() { | 7633 inline ::capnp::List< ::capnp::schema::Node>::Builder CodeGeneratorRequest::Builder::getNodes() { |
7381 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::get( | 7634 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::get(_builder.getPointerField( |
7382 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7635 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7383 } | 7636 } |
7384 inline void CodeGeneratorRequest::Builder::setNodes( ::capnp::List< ::capnp::schema::Node>::Reader value) { | 7637 inline void CodeGeneratorRequest::Builder::setNodes( ::capnp::List< ::capnp::schema::Node>::Reader value) { |
7385 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::set( | 7638 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::set(_builder.getPointerField( |
7386 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 7639 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7387 } | 7640 } |
7388 inline ::capnp::List< ::capnp::schema::Node>::Builder CodeGeneratorRequest::Builder::initNodes(unsigned int size) { | 7641 inline ::capnp::List< ::capnp::schema::Node>::Builder CodeGeneratorRequest::Builder::initNodes(unsigned int size) { |
7389 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::init( | 7642 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::init(_builder.getPointerField( |
7390 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 7643 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7391 } | 7644 } |
7392 inline void CodeGeneratorRequest::Builder::adoptNodes( | 7645 inline void CodeGeneratorRequest::Builder::adoptNodes( |
7393 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>>&& value) { | 7646 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>>&& value) { |
7394 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::adopt( | 7647 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::adopt(_builder.getPointerField( |
7395 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 7648 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7396 } | 7649 } |
7397 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>> CodeGeneratorRequest::Builder::disownNodes() { | 7650 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node>> CodeGeneratorRequest::Builder::disownNodes() { |
7398 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::disown( | 7651 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node>>::disown(_builder.getPointerField( |
7399 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7652 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7400 } | 7653 } |
7401 | 7654 |
7402 inline bool CodeGeneratorRequest::Reader::hasRequestedFiles() const { | 7655 inline bool CodeGeneratorRequest::Reader::hasRequestedFiles() const { |
7403 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | 7656 return !_reader.getPointerField( |
7657 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
7404 } | 7658 } |
7405 inline bool CodeGeneratorRequest::Builder::hasRequestedFiles() { | 7659 inline bool CodeGeneratorRequest::Builder::hasRequestedFiles() { |
7406 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | 7660 return !_builder.getPointerField( |
7661 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
7407 } | 7662 } |
7408 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader CodeGeneratorRequest::Reader::getRequestedFiles() const { | 7663 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader CodeGeneratorRequest::Reader::getRequestedFiles() const { |
7409 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::get( | 7664 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::get(_reader.getPointerField( |
7410 _reader.getPointerField(1 * ::capnp::POINTERS)); | 7665 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7411 } | 7666 } |
7412 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder CodeGeneratorRequest::Builder::getRequestedFiles() { | 7667 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder CodeGeneratorRequest::Builder::getRequestedFiles() { |
7413 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::get( | 7668 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::get(_builder.getPointerField( |
7414 _builder.getPointerField(1 * ::capnp::POINTERS)); | 7669 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7415 } | 7670 } |
7416 inline void CodeGeneratorRequest::Builder::setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader value) { | 7671 inline void CodeGeneratorRequest::Builder::setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Reader value) { |
7417 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::set( | 7672 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::set(_builder.getPointerField( |
7418 _builder.getPointerField(1 * ::capnp::POINTERS), value); | 7673 ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
7419 } | 7674 } |
7420 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder CodeGeneratorRequest::Builder::initRequestedFiles(unsigned int size) { | 7675 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>::Builder CodeGeneratorRequest::Builder::initRequestedFiles(unsigned int size) { |
7421 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::init( | 7676 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::init(_builder.getPointerField( |
7422 _builder.getPointerField(1 * ::capnp::POINTERS), size); | 7677 ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
7423 } | 7678 } |
7424 inline void CodeGeneratorRequest::Builder::adoptRequestedFiles( | 7679 inline void CodeGeneratorRequest::Builder::adoptRequestedFiles( |
7425 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>&& value) { | 7680 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>&& value) { |
7426 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::adopt( | 7681 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::adopt(_builder.getPointerField( |
7427 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | 7682 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
7428 } | 7683 } |
7429 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>> CodeGeneratorRequest::Builder::disownRequestedFiles() { | 7684 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>> CodeGeneratorRequest::Builder::disownRequestedFiles() { |
7430 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::disown( | 7685 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile>>::disown(_builder.getPointerField( |
7431 _builder.getPointerField(1 * ::capnp::POINTERS)); | 7686 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7687 } | |
7688 | |
7689 inline bool CodeGeneratorRequest::Reader::hasCapnpVersion() const { | |
7690 return !_reader.getPointerField( | |
7691 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
7692 } | |
7693 inline bool CodeGeneratorRequest::Builder::hasCapnpVersion() { | |
7694 return !_builder.getPointerField( | |
7695 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); | |
7696 } | |
7697 inline ::capnp::schema::CapnpVersion::Reader CodeGeneratorRequest::Reader::getCapnpVersion() const { | |
7698 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::get(_reader.getPointerField( | |
7699 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
7700 } | |
7701 inline ::capnp::schema::CapnpVersion::Builder CodeGeneratorRequest::Builder::getCapnpVersion() { | |
7702 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::get(_builder.getPointerField( | |
7703 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
7704 } | |
7705 #if !CAPNP_LITE | |
7706 inline ::capnp::schema::CapnpVersion::Pipeline CodeGeneratorRequest::Pipeline::getCapnpVersion() { | |
7707 return ::capnp::schema::CapnpVersion::Pipeline(_typeless.getPointerField(2)); | |
7708 } | |
7709 #endif // !CAPNP_LITE | |
7710 inline void CodeGeneratorRequest::Builder::setCapnpVersion( ::capnp::schema::CapnpVersion::Reader value) { | |
7711 ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::set(_builder.getPointerField( | |
7712 ::capnp::bounded<2>() * ::capnp::POINTERS), value); | |
7713 } | |
7714 inline ::capnp::schema::CapnpVersion::Builder CodeGeneratorRequest::Builder::initCapnpVersion() { | |
7715 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::init(_builder.getPointerField( | |
7716 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
7717 } | |
7718 inline void CodeGeneratorRequest::Builder::adoptCapnpVersion( | |
7719 ::capnp::Orphan< ::capnp::schema::CapnpVersion>&& value) { | |
7720 ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::adopt(_builder.getPointerField( | |
7721 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); | |
7722 } | |
7723 inline ::capnp::Orphan< ::capnp::schema::CapnpVersion> CodeGeneratorRequest::Builder::disownCapnpVersion() { | |
7724 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::disown(_builder.getPointerField( | |
7725 ::capnp::bounded<2>() * ::capnp::POINTERS)); | |
7432 } | 7726 } |
7433 | 7727 |
7434 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Reader::getId() const { | 7728 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Reader::getId() const { |
7435 return _reader.getDataField< ::uint64_t>( | 7729 return _reader.getDataField< ::uint64_t>( |
7436 0 * ::capnp::ELEMENTS); | 7730 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7437 } | 7731 } |
7438 | 7732 |
7439 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Builder::getId() { | 7733 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Builder::getId() { |
7440 return _builder.getDataField< ::uint64_t>( | 7734 return _builder.getDataField< ::uint64_t>( |
7441 0 * ::capnp::ELEMENTS); | 7735 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7442 } | 7736 } |
7443 inline void CodeGeneratorRequest::RequestedFile::Builder::setId( ::uint64_t value) { | 7737 inline void CodeGeneratorRequest::RequestedFile::Builder::setId( ::uint64_t value) { |
7444 _builder.setDataField< ::uint64_t>( | 7738 _builder.setDataField< ::uint64_t>( |
7445 0 * ::capnp::ELEMENTS, value); | 7739 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7446 } | 7740 } |
7447 | 7741 |
7448 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasFilename() const { | 7742 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasFilename() const { |
7449 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7743 return !_reader.getPointerField( |
7744 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7450 } | 7745 } |
7451 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasFilename() { | 7746 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasFilename() { |
7452 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7747 return !_builder.getPointerField( |
7748 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7453 } | 7749 } |
7454 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Reader::getFilename() const { | 7750 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Reader::getFilename() const { |
7455 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 7751 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
7456 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7752 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7457 } | 7753 } |
7458 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::getFilename() { | 7754 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::getFilename() { |
7459 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 7755 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
7460 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7756 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7461 } | 7757 } |
7462 inline void CodeGeneratorRequest::RequestedFile::Builder::setFilename( ::capnp::Text::Reader value) { | 7758 inline void CodeGeneratorRequest::RequestedFile::Builder::setFilename( ::capnp::Text::Reader value) { |
7463 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 7759 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
7464 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 7760 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7465 } | 7761 } |
7466 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::initFilename(unsigned int size) { | 7762 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::initFilename(unsigned int size) { |
7467 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 7763 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
7468 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 7764 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7469 } | 7765 } |
7470 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptFilename( | 7766 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptFilename( |
7471 ::capnp::Orphan< ::capnp::Text>&& value) { | 7767 ::capnp::Orphan< ::capnp::Text>&& value) { |
7472 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 7768 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
7473 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 7769 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7474 } | 7770 } |
7475 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Builder::disownFilename() { | 7771 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Builder::disownFilename() { |
7476 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 7772 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
7477 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7773 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7478 } | 7774 } |
7479 | 7775 |
7480 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasImports() const { | 7776 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasImports() const { |
7481 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | 7777 return !_reader.getPointerField( |
7778 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
7482 } | 7779 } |
7483 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasImports() { | 7780 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasImports() { |
7484 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | 7781 return !_builder.getPointerField( |
7782 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); | |
7485 } | 7783 } |
7486 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader CodeGeneratorRequest::RequestedFile::Reader::getImports() const { | 7784 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader CodeGeneratorRequest::RequestedFile::Reader::getImports() const { |
7487 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::get( | 7785 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::get(_reader.getPointerField( |
7488 _reader.getPointerField(1 * ::capnp::POINTERS)); | 7786 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7489 } | 7787 } |
7490 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder CodeGeneratorRequest::RequestedFile::Builder::getImports() { | 7788 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder CodeGeneratorRequest::RequestedFile::Builder::getImports() { |
7491 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::get( | 7789 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::get(_builder.getPointerField( |
7492 _builder.getPointerField(1 * ::capnp::POINTERS)); | 7790 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7493 } | 7791 } |
7494 inline void CodeGeneratorRequest::RequestedFile::Builder::setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader value) { | 7792 inline void CodeGeneratorRequest::RequestedFile::Builder::setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Reader value) { |
7495 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::set( | 7793 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::set(_builder.getPointerField( |
7496 _builder.getPointerField(1 * ::capnp::POINTERS), value); | 7794 ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
7497 } | 7795 } |
7498 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder CodeGeneratorRequest::RequestedFile::Builder::initImports(unsigned int size) { | 7796 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>::Builder CodeGeneratorRequest::RequestedFile::Builder::initImports(unsigned int size) { |
7499 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::init( | 7797 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::init(_builder.getPointerField( |
7500 _builder.getPointerField(1 * ::capnp::POINTERS), size); | 7798 ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
7501 } | 7799 } |
7502 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptImports( | 7800 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptImports( |
7503 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>&& value) { | 7801 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>&& value) { |
7504 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::adopt( | 7802 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::adopt(_builder.getPointerField( |
7505 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | 7803 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
7506 } | 7804 } |
7507 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>> CodeGeneratorRequest::RequestedFile::Builder::disownImports() { | 7805 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>> CodeGeneratorRequest::RequestedFile::Builder::disownImports() { |
7508 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::disown( | 7806 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import>>::disown(_builder.getPointerField( |
7509 _builder.getPointerField(1 * ::capnp::POINTERS)); | 7807 ::capnp::bounded<1>() * ::capnp::POINTERS)); |
7510 } | 7808 } |
7511 | 7809 |
7512 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Reader::getId() const { | 7810 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Reader::getId() const { |
7513 return _reader.getDataField< ::uint64_t>( | 7811 return _reader.getDataField< ::uint64_t>( |
7514 0 * ::capnp::ELEMENTS); | 7812 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7515 } | 7813 } |
7516 | 7814 |
7517 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Builder::getId() { | 7815 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Builder::getId() { |
7518 return _builder.getDataField< ::uint64_t>( | 7816 return _builder.getDataField< ::uint64_t>( |
7519 0 * ::capnp::ELEMENTS); | 7817 ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
7520 } | 7818 } |
7521 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setId( ::uint64_t value) { | 7819 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setId( ::uint64_t value) { |
7522 _builder.setDataField< ::uint64_t>( | 7820 _builder.setDataField< ::uint64_t>( |
7523 0 * ::capnp::ELEMENTS, value); | 7821 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
7524 } | 7822 } |
7525 | 7823 |
7526 inline bool CodeGeneratorRequest::RequestedFile::Import::Reader::hasName() const { | 7824 inline bool CodeGeneratorRequest::RequestedFile::Import::Reader::hasName() const { |
7527 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7825 return !_reader.getPointerField( |
7826 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7528 } | 7827 } |
7529 inline bool CodeGeneratorRequest::RequestedFile::Import::Builder::hasName() { | 7828 inline bool CodeGeneratorRequest::RequestedFile::Import::Builder::hasName() { |
7530 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 7829 return !_builder.getPointerField( |
7830 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); | |
7531 } | 7831 } |
7532 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Import::Reader::getName() const { | 7832 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Import::Reader::getName() const { |
7533 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 7833 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
7534 _reader.getPointerField(0 * ::capnp::POINTERS)); | 7834 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7535 } | 7835 } |
7536 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::getName() { | 7836 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::getName() { |
7537 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 7837 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
7538 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7838 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7539 } | 7839 } |
7540 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setName( ::capnp::Text::Reader value) { | 7840 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setName( ::capnp::Text::Reader value) { |
7541 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 7841 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
7542 _builder.getPointerField(0 * ::capnp::POINTERS), value); | 7842 ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
7543 } | 7843 } |
7544 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::initName(unsigned int size) { | 7844 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::initName(unsigned int size) { |
7545 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 7845 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
7546 _builder.getPointerField(0 * ::capnp::POINTERS), size); | 7846 ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
7547 } | 7847 } |
7548 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::adoptName( | 7848 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::adoptName( |
7549 ::capnp::Orphan< ::capnp::Text>&& value) { | 7849 ::capnp::Orphan< ::capnp::Text>&& value) { |
7550 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 7850 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
7551 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 7851 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
7552 } | 7852 } |
7553 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Import::Builder::disownName() { | 7853 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Import::Builder::disownName() { |
7554 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 7854 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
7555 _builder.getPointerField(0 * ::capnp::POINTERS)); | 7855 ::capnp::bounded<0>() * ::capnp::POINTERS)); |
7556 } | 7856 } |
7557 | 7857 |
7558 } // namespace | 7858 } // namespace |
7559 } // namespace | 7859 } // namespace |
7560 | 7860 |