| 1 | // Generated by Cap'n Proto compiler, DO NOT EDIT |
| 2 | // source: grammar.capnp |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <capnp/generated-header-support.h> |
| 7 | #include <kj/windows-sanity.h> |
| 8 | |
| 9 | #if CAPNP_VERSION != 8000 |
| 10 | #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." |
| 11 | #endif |
| 12 | |
| 13 | |
| 14 | namespace capnp { |
| 15 | namespace schemas { |
| 16 | |
| 17 | CAPNP_DECLARE_SCHEMA(e75816b56529d464); |
| 18 | CAPNP_DECLARE_SCHEMA(991c7a3693d62cf2); |
| 19 | CAPNP_DECLARE_SCHEMA(90f2a60678fd2367); |
| 20 | CAPNP_DECLARE_SCHEMA(8e207d4dfe54d0de); |
| 21 | CAPNP_DECLARE_SCHEMA(c90246b71adedbaa); |
| 22 | CAPNP_DECLARE_SCHEMA(aee8397040b0df7a); |
| 23 | CAPNP_DECLARE_SCHEMA(aa28e1400d793359); |
| 24 | CAPNP_DECLARE_SCHEMA(96efe787c17e83bb); |
| 25 | CAPNP_DECLARE_SCHEMA(d5e71144af1ce175); |
| 26 | CAPNP_DECLARE_SCHEMA(d00489d473826290); |
| 27 | CAPNP_DECLARE_SCHEMA(fb5aeed95cdf6af9); |
| 28 | CAPNP_DECLARE_SCHEMA(94099c3f9eb32d6b); |
| 29 | CAPNP_DECLARE_SCHEMA(b3f66e7a79d81bcd); |
| 30 | CAPNP_DECLARE_SCHEMA(fffe08a9a697d2a5); |
| 31 | CAPNP_DECLARE_SCHEMA(e5104515fd88ea47); |
| 32 | CAPNP_DECLARE_SCHEMA(89f0c973c103ae96); |
| 33 | CAPNP_DECLARE_SCHEMA(e93164a80bfe2ccf); |
| 34 | CAPNP_DECLARE_SCHEMA(b348322a8dcf0d0c); |
| 35 | CAPNP_DECLARE_SCHEMA(8f2622208fb358c8); |
| 36 | CAPNP_DECLARE_SCHEMA(d0d1a21de617951f); |
| 37 | CAPNP_DECLARE_SCHEMA(992a90eaf30235d3); |
| 38 | CAPNP_DECLARE_SCHEMA(eb971847d617c0b9); |
| 39 | CAPNP_DECLARE_SCHEMA(c6238c7d62d65173); |
| 40 | CAPNP_DECLARE_SCHEMA(9cb9e86e3198037f); |
| 41 | CAPNP_DECLARE_SCHEMA(84e4f3f5a807605c); |
| 42 | |
| 43 | } // namespace schemas |
| 44 | } // namespace capnp |
| 45 | |
| 46 | namespace capnp { |
| 47 | namespace compiler { |
| 48 | |
| 49 | struct LocatedText { |
| 50 | LocatedText() = delete; |
| 51 | |
| 52 | class Reader; |
| 53 | class Builder; |
| 54 | class Pipeline; |
| 55 | |
| 56 | struct _capnpPrivate { |
| 57 | CAPNP_DECLARE_STRUCT_HEADER(e75816b56529d464, 1, 1) |
| 58 | #if !CAPNP_LITE |
| 59 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 60 | #endif // !CAPNP_LITE |
| 61 | }; |
| 62 | }; |
| 63 | |
| 64 | struct LocatedInteger { |
| 65 | LocatedInteger() = delete; |
| 66 | |
| 67 | class Reader; |
| 68 | class Builder; |
| 69 | class Pipeline; |
| 70 | |
| 71 | struct _capnpPrivate { |
| 72 | CAPNP_DECLARE_STRUCT_HEADER(991c7a3693d62cf2, 2, 0) |
| 73 | #if !CAPNP_LITE |
| 74 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 75 | #endif // !CAPNP_LITE |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | struct LocatedFloat { |
| 80 | LocatedFloat() = delete; |
| 81 | |
| 82 | class Reader; |
| 83 | class Builder; |
| 84 | class Pipeline; |
| 85 | |
| 86 | struct _capnpPrivate { |
| 87 | CAPNP_DECLARE_STRUCT_HEADER(90f2a60678fd2367, 2, 0) |
| 88 | #if !CAPNP_LITE |
| 89 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 90 | #endif // !CAPNP_LITE |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | struct Expression { |
| 95 | Expression() = delete; |
| 96 | |
| 97 | class Reader; |
| 98 | class Builder; |
| 99 | class Pipeline; |
| 100 | enum Which: uint16_t { |
| 101 | UNKNOWN, |
| 102 | POSITIVE_INT, |
| 103 | NEGATIVE_INT, |
| 104 | FLOAT, |
| 105 | STRING, |
| 106 | RELATIVE_NAME, |
| 107 | LIST, |
| 108 | TUPLE, |
| 109 | BINARY, |
| 110 | APPLICATION, |
| 111 | MEMBER, |
| 112 | ABSOLUTE_NAME, |
| 113 | IMPORT, |
| 114 | EMBED, |
| 115 | }; |
| 116 | struct Param; |
| 117 | struct Application; |
| 118 | struct Member; |
| 119 | |
| 120 | struct _capnpPrivate { |
| 121 | CAPNP_DECLARE_STRUCT_HEADER(8e207d4dfe54d0de, 3, 2) |
| 122 | #if !CAPNP_LITE |
| 123 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 124 | #endif // !CAPNP_LITE |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | struct Expression::Param { |
| 129 | Param() = delete; |
| 130 | |
| 131 | class Reader; |
| 132 | class Builder; |
| 133 | class Pipeline; |
| 134 | enum Which: uint16_t { |
| 135 | UNNAMED, |
| 136 | NAMED, |
| 137 | }; |
| 138 | |
| 139 | struct _capnpPrivate { |
| 140 | CAPNP_DECLARE_STRUCT_HEADER(c90246b71adedbaa, 1, 2) |
| 141 | #if !CAPNP_LITE |
| 142 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 143 | #endif // !CAPNP_LITE |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | struct Expression::Application { |
| 148 | Application() = delete; |
| 149 | |
| 150 | class Reader; |
| 151 | class Builder; |
| 152 | class Pipeline; |
| 153 | |
| 154 | struct _capnpPrivate { |
| 155 | CAPNP_DECLARE_STRUCT_HEADER(aee8397040b0df7a, 3, 2) |
| 156 | #if !CAPNP_LITE |
| 157 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 158 | #endif // !CAPNP_LITE |
| 159 | }; |
| 160 | }; |
| 161 | |
| 162 | struct Expression::Member { |
| 163 | Member() = delete; |
| 164 | |
| 165 | class Reader; |
| 166 | class Builder; |
| 167 | class Pipeline; |
| 168 | |
| 169 | struct _capnpPrivate { |
| 170 | CAPNP_DECLARE_STRUCT_HEADER(aa28e1400d793359, 3, 2) |
| 171 | #if !CAPNP_LITE |
| 172 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 173 | #endif // !CAPNP_LITE |
| 174 | }; |
| 175 | }; |
| 176 | |
| 177 | struct Declaration { |
| 178 | Declaration() = delete; |
| 179 | |
| 180 | class Reader; |
| 181 | class Builder; |
| 182 | class Pipeline; |
| 183 | enum Which: uint16_t { |
| 184 | FILE, |
| 185 | USING, |
| 186 | CONST, |
| 187 | ENUM, |
| 188 | ENUMERANT, |
| 189 | STRUCT, |
| 190 | FIELD, |
| 191 | UNION, |
| 192 | GROUP, |
| 193 | INTERFACE, |
| 194 | METHOD, |
| 195 | ANNOTATION, |
| 196 | NAKED_ID, |
| 197 | NAKED_ANNOTATION, |
| 198 | BUILTIN_VOID, |
| 199 | BUILTIN_BOOL, |
| 200 | BUILTIN_INT8, |
| 201 | BUILTIN_INT16, |
| 202 | BUILTIN_INT32, |
| 203 | BUILTIN_INT64, |
| 204 | BUILTIN_U_INT8, |
| 205 | BUILTIN_U_INT16, |
| 206 | BUILTIN_U_INT32, |
| 207 | BUILTIN_U_INT64, |
| 208 | BUILTIN_FLOAT32, |
| 209 | BUILTIN_FLOAT64, |
| 210 | BUILTIN_TEXT, |
| 211 | BUILTIN_DATA, |
| 212 | BUILTIN_LIST, |
| 213 | BUILTIN_OBJECT, |
| 214 | BUILTIN_ANY_POINTER, |
| 215 | BUILTIN_ANY_STRUCT, |
| 216 | BUILTIN_ANY_LIST, |
| 217 | BUILTIN_CAPABILITY, |
| 218 | }; |
| 219 | struct BrandParameter; |
| 220 | struct AnnotationApplication; |
| 221 | struct ParamList; |
| 222 | struct Param; |
| 223 | struct Id; |
| 224 | struct Using; |
| 225 | struct Const; |
| 226 | struct Field; |
| 227 | struct Interface; |
| 228 | struct Method; |
| 229 | struct Annotation; |
| 230 | |
| 231 | struct _capnpPrivate { |
| 232 | CAPNP_DECLARE_STRUCT_HEADER(96efe787c17e83bb, 2, 8) |
| 233 | #if !CAPNP_LITE |
| 234 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 235 | #endif // !CAPNP_LITE |
| 236 | }; |
| 237 | }; |
| 238 | |
| 239 | struct Declaration::BrandParameter { |
| 240 | BrandParameter() = delete; |
| 241 | |
| 242 | class Reader; |
| 243 | class Builder; |
| 244 | class Pipeline; |
| 245 | |
| 246 | struct _capnpPrivate { |
| 247 | CAPNP_DECLARE_STRUCT_HEADER(d5e71144af1ce175, 1, 1) |
| 248 | #if !CAPNP_LITE |
| 249 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 250 | #endif // !CAPNP_LITE |
| 251 | }; |
| 252 | }; |
| 253 | |
| 254 | struct Declaration::AnnotationApplication { |
| 255 | AnnotationApplication() = delete; |
| 256 | |
| 257 | class Reader; |
| 258 | class Builder; |
| 259 | class Pipeline; |
| 260 | struct Value; |
| 261 | |
| 262 | struct _capnpPrivate { |
| 263 | CAPNP_DECLARE_STRUCT_HEADER(d00489d473826290, 1, 2) |
| 264 | #if !CAPNP_LITE |
| 265 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 266 | #endif // !CAPNP_LITE |
| 267 | }; |
| 268 | }; |
| 269 | |
| 270 | struct Declaration::AnnotationApplication::Value { |
| 271 | Value() = delete; |
| 272 | |
| 273 | class Reader; |
| 274 | class Builder; |
| 275 | class Pipeline; |
| 276 | enum Which: uint16_t { |
| 277 | NONE, |
| 278 | EXPRESSION, |
| 279 | }; |
| 280 | |
| 281 | struct _capnpPrivate { |
| 282 | CAPNP_DECLARE_STRUCT_HEADER(fb5aeed95cdf6af9, 1, 2) |
| 283 | #if !CAPNP_LITE |
| 284 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 285 | #endif // !CAPNP_LITE |
| 286 | }; |
| 287 | }; |
| 288 | |
| 289 | struct Declaration::ParamList { |
| 290 | ParamList() = delete; |
| 291 | |
| 292 | class Reader; |
| 293 | class Builder; |
| 294 | class Pipeline; |
| 295 | enum Which: uint16_t { |
| 296 | NAMED_LIST, |
| 297 | TYPE, |
| 298 | }; |
| 299 | |
| 300 | struct _capnpPrivate { |
| 301 | CAPNP_DECLARE_STRUCT_HEADER(b3f66e7a79d81bcd, 2, 1) |
| 302 | #if !CAPNP_LITE |
| 303 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 304 | #endif // !CAPNP_LITE |
| 305 | }; |
| 306 | }; |
| 307 | |
| 308 | struct Declaration::Param { |
| 309 | Param() = delete; |
| 310 | |
| 311 | class Reader; |
| 312 | class Builder; |
| 313 | class Pipeline; |
| 314 | struct DefaultValue; |
| 315 | |
| 316 | struct _capnpPrivate { |
| 317 | CAPNP_DECLARE_STRUCT_HEADER(fffe08a9a697d2a5, 2, 4) |
| 318 | #if !CAPNP_LITE |
| 319 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 320 | #endif // !CAPNP_LITE |
| 321 | }; |
| 322 | }; |
| 323 | |
| 324 | struct Declaration::Param::DefaultValue { |
| 325 | DefaultValue() = delete; |
| 326 | |
| 327 | class Reader; |
| 328 | class Builder; |
| 329 | class Pipeline; |
| 330 | enum Which: uint16_t { |
| 331 | NONE, |
| 332 | VALUE, |
| 333 | }; |
| 334 | |
| 335 | struct _capnpPrivate { |
| 336 | CAPNP_DECLARE_STRUCT_HEADER(e5104515fd88ea47, 2, 4) |
| 337 | #if !CAPNP_LITE |
| 338 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 339 | #endif // !CAPNP_LITE |
| 340 | }; |
| 341 | }; |
| 342 | |
| 343 | struct Declaration::Id { |
| 344 | Id() = delete; |
| 345 | |
| 346 | class Reader; |
| 347 | class Builder; |
| 348 | class Pipeline; |
| 349 | enum Which: uint16_t { |
| 350 | UNSPECIFIED, |
| 351 | UID, |
| 352 | ORDINAL, |
| 353 | }; |
| 354 | |
| 355 | struct _capnpPrivate { |
| 356 | CAPNP_DECLARE_STRUCT_HEADER(89f0c973c103ae96, 2, 8) |
| 357 | #if !CAPNP_LITE |
| 358 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 359 | #endif // !CAPNP_LITE |
| 360 | }; |
| 361 | }; |
| 362 | |
| 363 | struct Declaration::Using { |
| 364 | Using() = delete; |
| 365 | |
| 366 | class Reader; |
| 367 | class Builder; |
| 368 | class Pipeline; |
| 369 | |
| 370 | struct _capnpPrivate { |
| 371 | CAPNP_DECLARE_STRUCT_HEADER(e93164a80bfe2ccf, 2, 8) |
| 372 | #if !CAPNP_LITE |
| 373 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 374 | #endif // !CAPNP_LITE |
| 375 | }; |
| 376 | }; |
| 377 | |
| 378 | struct Declaration::Const { |
| 379 | Const() = delete; |
| 380 | |
| 381 | class Reader; |
| 382 | class Builder; |
| 383 | class Pipeline; |
| 384 | |
| 385 | struct _capnpPrivate { |
| 386 | CAPNP_DECLARE_STRUCT_HEADER(b348322a8dcf0d0c, 2, 8) |
| 387 | #if !CAPNP_LITE |
| 388 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 389 | #endif // !CAPNP_LITE |
| 390 | }; |
| 391 | }; |
| 392 | |
| 393 | struct Declaration::Field { |
| 394 | Field() = delete; |
| 395 | |
| 396 | class Reader; |
| 397 | class Builder; |
| 398 | class Pipeline; |
| 399 | struct DefaultValue; |
| 400 | |
| 401 | struct _capnpPrivate { |
| 402 | CAPNP_DECLARE_STRUCT_HEADER(8f2622208fb358c8, 2, 8) |
| 403 | #if !CAPNP_LITE |
| 404 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 405 | #endif // !CAPNP_LITE |
| 406 | }; |
| 407 | }; |
| 408 | |
| 409 | struct Declaration::Field::DefaultValue { |
| 410 | DefaultValue() = delete; |
| 411 | |
| 412 | class Reader; |
| 413 | class Builder; |
| 414 | class Pipeline; |
| 415 | enum Which: uint16_t { |
| 416 | NONE, |
| 417 | VALUE, |
| 418 | }; |
| 419 | |
| 420 | struct _capnpPrivate { |
| 421 | CAPNP_DECLARE_STRUCT_HEADER(d0d1a21de617951f, 2, 8) |
| 422 | #if !CAPNP_LITE |
| 423 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 424 | #endif // !CAPNP_LITE |
| 425 | }; |
| 426 | }; |
| 427 | |
| 428 | struct Declaration::Interface { |
| 429 | Interface() = delete; |
| 430 | |
| 431 | class Reader; |
| 432 | class Builder; |
| 433 | class Pipeline; |
| 434 | |
| 435 | struct _capnpPrivate { |
| 436 | CAPNP_DECLARE_STRUCT_HEADER(992a90eaf30235d3, 2, 8) |
| 437 | #if !CAPNP_LITE |
| 438 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 439 | #endif // !CAPNP_LITE |
| 440 | }; |
| 441 | }; |
| 442 | |
| 443 | struct Declaration::Method { |
| 444 | Method() = delete; |
| 445 | |
| 446 | class Reader; |
| 447 | class Builder; |
| 448 | class Pipeline; |
| 449 | struct Results; |
| 450 | |
| 451 | struct _capnpPrivate { |
| 452 | CAPNP_DECLARE_STRUCT_HEADER(eb971847d617c0b9, 2, 8) |
| 453 | #if !CAPNP_LITE |
| 454 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 455 | #endif // !CAPNP_LITE |
| 456 | }; |
| 457 | }; |
| 458 | |
| 459 | struct Declaration::Method::Results { |
| 460 | Results() = delete; |
| 461 | |
| 462 | class Reader; |
| 463 | class Builder; |
| 464 | class Pipeline; |
| 465 | enum Which: uint16_t { |
| 466 | NONE, |
| 467 | EXPLICIT, |
| 468 | }; |
| 469 | |
| 470 | struct _capnpPrivate { |
| 471 | CAPNP_DECLARE_STRUCT_HEADER(c6238c7d62d65173, 2, 8) |
| 472 | #if !CAPNP_LITE |
| 473 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 474 | #endif // !CAPNP_LITE |
| 475 | }; |
| 476 | }; |
| 477 | |
| 478 | struct Declaration::Annotation { |
| 479 | Annotation() = delete; |
| 480 | |
| 481 | class Reader; |
| 482 | class Builder; |
| 483 | class Pipeline; |
| 484 | |
| 485 | struct _capnpPrivate { |
| 486 | CAPNP_DECLARE_STRUCT_HEADER(9cb9e86e3198037f, 2, 8) |
| 487 | #if !CAPNP_LITE |
| 488 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 489 | #endif // !CAPNP_LITE |
| 490 | }; |
| 491 | }; |
| 492 | |
| 493 | struct ParsedFile { |
| 494 | ParsedFile() = delete; |
| 495 | |
| 496 | class Reader; |
| 497 | class Builder; |
| 498 | class Pipeline; |
| 499 | |
| 500 | struct _capnpPrivate { |
| 501 | CAPNP_DECLARE_STRUCT_HEADER(84e4f3f5a807605c, 0, 1) |
| 502 | #if !CAPNP_LITE |
| 503 | static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } |
| 504 | #endif // !CAPNP_LITE |
| 505 | }; |
| 506 | }; |
| 507 | |
| 508 | // ======================================================================================= |
| 509 | |
| 510 | class LocatedText::Reader { |
| 511 | public: |
| 512 | typedef LocatedText Reads; |
| 513 | |
| 514 | Reader() = default; |
| 515 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 516 | |
| 517 | inline ::capnp::MessageSize totalSize() const { |
| 518 | return _reader.totalSize().asPublic(); |
| 519 | } |
| 520 | |
| 521 | #if !CAPNP_LITE |
| 522 | inline ::kj::StringTree toString() const { |
| 523 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 524 | } |
| 525 | #endif // !CAPNP_LITE |
| 526 | |
| 527 | inline bool hasValue() const; |
| 528 | inline ::capnp::Text::Reader getValue() const; |
| 529 | |
| 530 | inline ::uint32_t getStartByte() const; |
| 531 | |
| 532 | inline ::uint32_t getEndByte() const; |
| 533 | |
| 534 | private: |
| 535 | ::capnp::_::StructReader _reader; |
| 536 | template <typename, ::capnp::Kind> |
| 537 | friend struct ::capnp::ToDynamic_; |
| 538 | template <typename, ::capnp::Kind> |
| 539 | friend struct ::capnp::_::PointerHelpers; |
| 540 | template <typename, ::capnp::Kind> |
| 541 | friend struct ::capnp::List; |
| 542 | friend class ::capnp::MessageBuilder; |
| 543 | friend class ::capnp::Orphanage; |
| 544 | }; |
| 545 | |
| 546 | class LocatedText::Builder { |
| 547 | public: |
| 548 | typedef LocatedText Builds; |
| 549 | |
| 550 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 551 | // You can explicitly initialize to nullptr instead. |
| 552 | inline Builder(decltype(nullptr)) {} |
| 553 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 554 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 555 | inline Reader asReader() const { return *this; } |
| 556 | |
| 557 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 558 | #if !CAPNP_LITE |
| 559 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 560 | #endif // !CAPNP_LITE |
| 561 | |
| 562 | inline bool hasValue(); |
| 563 | inline ::capnp::Text::Builder getValue(); |
| 564 | inline void setValue( ::capnp::Text::Reader value); |
| 565 | inline ::capnp::Text::Builder initValue(unsigned int size); |
| 566 | inline void adoptValue(::capnp::Orphan< ::capnp::Text>&& value); |
| 567 | inline ::capnp::Orphan< ::capnp::Text> disownValue(); |
| 568 | |
| 569 | inline ::uint32_t getStartByte(); |
| 570 | inline void setStartByte( ::uint32_t value); |
| 571 | |
| 572 | inline ::uint32_t getEndByte(); |
| 573 | inline void setEndByte( ::uint32_t value); |
| 574 | |
| 575 | private: |
| 576 | ::capnp::_::StructBuilder _builder; |
| 577 | template <typename, ::capnp::Kind> |
| 578 | friend struct ::capnp::ToDynamic_; |
| 579 | friend class ::capnp::Orphanage; |
| 580 | template <typename, ::capnp::Kind> |
| 581 | friend struct ::capnp::_::PointerHelpers; |
| 582 | }; |
| 583 | |
| 584 | #if !CAPNP_LITE |
| 585 | class LocatedText::Pipeline { |
| 586 | public: |
| 587 | typedef LocatedText Pipelines; |
| 588 | |
| 589 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 590 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 591 | : _typeless(kj::mv(typeless)) {} |
| 592 | |
| 593 | private: |
| 594 | ::capnp::AnyPointer::Pipeline _typeless; |
| 595 | friend class ::capnp::PipelineHook; |
| 596 | template <typename, ::capnp::Kind> |
| 597 | friend struct ::capnp::ToDynamic_; |
| 598 | }; |
| 599 | #endif // !CAPNP_LITE |
| 600 | |
| 601 | class LocatedInteger::Reader { |
| 602 | public: |
| 603 | typedef LocatedInteger Reads; |
| 604 | |
| 605 | Reader() = default; |
| 606 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 607 | |
| 608 | inline ::capnp::MessageSize totalSize() const { |
| 609 | return _reader.totalSize().asPublic(); |
| 610 | } |
| 611 | |
| 612 | #if !CAPNP_LITE |
| 613 | inline ::kj::StringTree toString() const { |
| 614 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 615 | } |
| 616 | #endif // !CAPNP_LITE |
| 617 | |
| 618 | inline ::uint64_t getValue() const; |
| 619 | |
| 620 | inline ::uint32_t getStartByte() const; |
| 621 | |
| 622 | inline ::uint32_t getEndByte() const; |
| 623 | |
| 624 | private: |
| 625 | ::capnp::_::StructReader _reader; |
| 626 | template <typename, ::capnp::Kind> |
| 627 | friend struct ::capnp::ToDynamic_; |
| 628 | template <typename, ::capnp::Kind> |
| 629 | friend struct ::capnp::_::PointerHelpers; |
| 630 | template <typename, ::capnp::Kind> |
| 631 | friend struct ::capnp::List; |
| 632 | friend class ::capnp::MessageBuilder; |
| 633 | friend class ::capnp::Orphanage; |
| 634 | }; |
| 635 | |
| 636 | class LocatedInteger::Builder { |
| 637 | public: |
| 638 | typedef LocatedInteger Builds; |
| 639 | |
| 640 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 641 | // You can explicitly initialize to nullptr instead. |
| 642 | inline Builder(decltype(nullptr)) {} |
| 643 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 644 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 645 | inline Reader asReader() const { return *this; } |
| 646 | |
| 647 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 648 | #if !CAPNP_LITE |
| 649 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 650 | #endif // !CAPNP_LITE |
| 651 | |
| 652 | inline ::uint64_t getValue(); |
| 653 | inline void setValue( ::uint64_t value); |
| 654 | |
| 655 | inline ::uint32_t getStartByte(); |
| 656 | inline void setStartByte( ::uint32_t value); |
| 657 | |
| 658 | inline ::uint32_t getEndByte(); |
| 659 | inline void setEndByte( ::uint32_t value); |
| 660 | |
| 661 | private: |
| 662 | ::capnp::_::StructBuilder _builder; |
| 663 | template <typename, ::capnp::Kind> |
| 664 | friend struct ::capnp::ToDynamic_; |
| 665 | friend class ::capnp::Orphanage; |
| 666 | template <typename, ::capnp::Kind> |
| 667 | friend struct ::capnp::_::PointerHelpers; |
| 668 | }; |
| 669 | |
| 670 | #if !CAPNP_LITE |
| 671 | class LocatedInteger::Pipeline { |
| 672 | public: |
| 673 | typedef LocatedInteger Pipelines; |
| 674 | |
| 675 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 676 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 677 | : _typeless(kj::mv(typeless)) {} |
| 678 | |
| 679 | private: |
| 680 | ::capnp::AnyPointer::Pipeline _typeless; |
| 681 | friend class ::capnp::PipelineHook; |
| 682 | template <typename, ::capnp::Kind> |
| 683 | friend struct ::capnp::ToDynamic_; |
| 684 | }; |
| 685 | #endif // !CAPNP_LITE |
| 686 | |
| 687 | class LocatedFloat::Reader { |
| 688 | public: |
| 689 | typedef LocatedFloat Reads; |
| 690 | |
| 691 | Reader() = default; |
| 692 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 693 | |
| 694 | inline ::capnp::MessageSize totalSize() const { |
| 695 | return _reader.totalSize().asPublic(); |
| 696 | } |
| 697 | |
| 698 | #if !CAPNP_LITE |
| 699 | inline ::kj::StringTree toString() const { |
| 700 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 701 | } |
| 702 | #endif // !CAPNP_LITE |
| 703 | |
| 704 | inline double getValue() const; |
| 705 | |
| 706 | inline ::uint32_t getStartByte() const; |
| 707 | |
| 708 | inline ::uint32_t getEndByte() const; |
| 709 | |
| 710 | private: |
| 711 | ::capnp::_::StructReader _reader; |
| 712 | template <typename, ::capnp::Kind> |
| 713 | friend struct ::capnp::ToDynamic_; |
| 714 | template <typename, ::capnp::Kind> |
| 715 | friend struct ::capnp::_::PointerHelpers; |
| 716 | template <typename, ::capnp::Kind> |
| 717 | friend struct ::capnp::List; |
| 718 | friend class ::capnp::MessageBuilder; |
| 719 | friend class ::capnp::Orphanage; |
| 720 | }; |
| 721 | |
| 722 | class LocatedFloat::Builder { |
| 723 | public: |
| 724 | typedef LocatedFloat Builds; |
| 725 | |
| 726 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 727 | // You can explicitly initialize to nullptr instead. |
| 728 | inline Builder(decltype(nullptr)) {} |
| 729 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 730 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 731 | inline Reader asReader() const { return *this; } |
| 732 | |
| 733 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 734 | #if !CAPNP_LITE |
| 735 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 736 | #endif // !CAPNP_LITE |
| 737 | |
| 738 | inline double getValue(); |
| 739 | inline void setValue(double value); |
| 740 | |
| 741 | inline ::uint32_t getStartByte(); |
| 742 | inline void setStartByte( ::uint32_t value); |
| 743 | |
| 744 | inline ::uint32_t getEndByte(); |
| 745 | inline void setEndByte( ::uint32_t value); |
| 746 | |
| 747 | private: |
| 748 | ::capnp::_::StructBuilder _builder; |
| 749 | template <typename, ::capnp::Kind> |
| 750 | friend struct ::capnp::ToDynamic_; |
| 751 | friend class ::capnp::Orphanage; |
| 752 | template <typename, ::capnp::Kind> |
| 753 | friend struct ::capnp::_::PointerHelpers; |
| 754 | }; |
| 755 | |
| 756 | #if !CAPNP_LITE |
| 757 | class LocatedFloat::Pipeline { |
| 758 | public: |
| 759 | typedef LocatedFloat Pipelines; |
| 760 | |
| 761 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 762 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 763 | : _typeless(kj::mv(typeless)) {} |
| 764 | |
| 765 | private: |
| 766 | ::capnp::AnyPointer::Pipeline _typeless; |
| 767 | friend class ::capnp::PipelineHook; |
| 768 | template <typename, ::capnp::Kind> |
| 769 | friend struct ::capnp::ToDynamic_; |
| 770 | }; |
| 771 | #endif // !CAPNP_LITE |
| 772 | |
| 773 | class Expression::Reader { |
| 774 | public: |
| 775 | typedef Expression Reads; |
| 776 | |
| 777 | Reader() = default; |
| 778 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 779 | |
| 780 | inline ::capnp::MessageSize totalSize() const { |
| 781 | return _reader.totalSize().asPublic(); |
| 782 | } |
| 783 | |
| 784 | #if !CAPNP_LITE |
| 785 | inline ::kj::StringTree toString() const { |
| 786 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 787 | } |
| 788 | #endif // !CAPNP_LITE |
| 789 | |
| 790 | inline Which which() const; |
| 791 | inline bool isUnknown() const; |
| 792 | inline ::capnp::Void getUnknown() const; |
| 793 | |
| 794 | inline bool isPositiveInt() const; |
| 795 | inline ::uint64_t getPositiveInt() const; |
| 796 | |
| 797 | inline bool isNegativeInt() const; |
| 798 | inline ::uint64_t getNegativeInt() const; |
| 799 | |
| 800 | inline bool isFloat() const; |
| 801 | inline double getFloat() const; |
| 802 | |
| 803 | inline bool isString() const; |
| 804 | inline bool hasString() const; |
| 805 | inline ::capnp::Text::Reader getString() const; |
| 806 | |
| 807 | inline bool isRelativeName() const; |
| 808 | inline bool hasRelativeName() const; |
| 809 | inline ::capnp::compiler::LocatedText::Reader getRelativeName() const; |
| 810 | |
| 811 | inline bool isList() const; |
| 812 | inline bool hasList() const; |
| 813 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader getList() const; |
| 814 | |
| 815 | inline bool isTuple() const; |
| 816 | inline bool hasTuple() const; |
| 817 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader getTuple() const; |
| 818 | |
| 819 | inline ::uint32_t getStartByte() const; |
| 820 | |
| 821 | inline ::uint32_t getEndByte() const; |
| 822 | |
| 823 | inline bool isBinary() const; |
| 824 | inline bool hasBinary() const; |
| 825 | inline ::capnp::Data::Reader getBinary() const; |
| 826 | |
| 827 | inline bool isApplication() const; |
| 828 | inline typename Application::Reader getApplication() const; |
| 829 | |
| 830 | inline bool isMember() const; |
| 831 | inline typename Member::Reader getMember() const; |
| 832 | |
| 833 | inline bool isAbsoluteName() const; |
| 834 | inline bool hasAbsoluteName() const; |
| 835 | inline ::capnp::compiler::LocatedText::Reader getAbsoluteName() const; |
| 836 | |
| 837 | inline bool isImport() const; |
| 838 | inline bool hasImport() const; |
| 839 | inline ::capnp::compiler::LocatedText::Reader getImport() const; |
| 840 | |
| 841 | inline bool isEmbed() const; |
| 842 | inline bool hasEmbed() const; |
| 843 | inline ::capnp::compiler::LocatedText::Reader getEmbed() const; |
| 844 | |
| 845 | private: |
| 846 | ::capnp::_::StructReader _reader; |
| 847 | template <typename, ::capnp::Kind> |
| 848 | friend struct ::capnp::ToDynamic_; |
| 849 | template <typename, ::capnp::Kind> |
| 850 | friend struct ::capnp::_::PointerHelpers; |
| 851 | template <typename, ::capnp::Kind> |
| 852 | friend struct ::capnp::List; |
| 853 | friend class ::capnp::MessageBuilder; |
| 854 | friend class ::capnp::Orphanage; |
| 855 | }; |
| 856 | |
| 857 | class Expression::Builder { |
| 858 | public: |
| 859 | typedef Expression Builds; |
| 860 | |
| 861 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 862 | // You can explicitly initialize to nullptr instead. |
| 863 | inline Builder(decltype(nullptr)) {} |
| 864 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 865 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 866 | inline Reader asReader() const { return *this; } |
| 867 | |
| 868 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 869 | #if !CAPNP_LITE |
| 870 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 871 | #endif // !CAPNP_LITE |
| 872 | |
| 873 | inline Which which(); |
| 874 | inline bool isUnknown(); |
| 875 | inline ::capnp::Void getUnknown(); |
| 876 | inline void setUnknown( ::capnp::Void value = ::capnp::VOID); |
| 877 | |
| 878 | inline bool isPositiveInt(); |
| 879 | inline ::uint64_t getPositiveInt(); |
| 880 | inline void setPositiveInt( ::uint64_t value); |
| 881 | |
| 882 | inline bool isNegativeInt(); |
| 883 | inline ::uint64_t getNegativeInt(); |
| 884 | inline void setNegativeInt( ::uint64_t value); |
| 885 | |
| 886 | inline bool isFloat(); |
| 887 | inline double getFloat(); |
| 888 | inline void setFloat(double value); |
| 889 | |
| 890 | inline bool isString(); |
| 891 | inline bool hasString(); |
| 892 | inline ::capnp::Text::Builder getString(); |
| 893 | inline void setString( ::capnp::Text::Reader value); |
| 894 | inline ::capnp::Text::Builder initString(unsigned int size); |
| 895 | inline void adoptString(::capnp::Orphan< ::capnp::Text>&& value); |
| 896 | inline ::capnp::Orphan< ::capnp::Text> disownString(); |
| 897 | |
| 898 | inline bool isRelativeName(); |
| 899 | inline bool hasRelativeName(); |
| 900 | inline ::capnp::compiler::LocatedText::Builder getRelativeName(); |
| 901 | inline void setRelativeName( ::capnp::compiler::LocatedText::Reader value); |
| 902 | inline ::capnp::compiler::LocatedText::Builder initRelativeName(); |
| 903 | inline void adoptRelativeName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 904 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownRelativeName(); |
| 905 | |
| 906 | inline bool isList(); |
| 907 | inline bool hasList(); |
| 908 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder getList(); |
| 909 | inline void setList( ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader value); |
| 910 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder initList(unsigned int size); |
| 911 | inline void adoptList(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>&& value); |
| 912 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>> disownList(); |
| 913 | |
| 914 | inline bool isTuple(); |
| 915 | inline bool hasTuple(); |
| 916 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder getTuple(); |
| 917 | inline void setTuple( ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader value); |
| 918 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder initTuple(unsigned int size); |
| 919 | inline void adoptTuple(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>&& value); |
| 920 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>> disownTuple(); |
| 921 | |
| 922 | inline ::uint32_t getStartByte(); |
| 923 | inline void setStartByte( ::uint32_t value); |
| 924 | |
| 925 | inline ::uint32_t getEndByte(); |
| 926 | inline void setEndByte( ::uint32_t value); |
| 927 | |
| 928 | inline bool isBinary(); |
| 929 | inline bool hasBinary(); |
| 930 | inline ::capnp::Data::Builder getBinary(); |
| 931 | inline void setBinary( ::capnp::Data::Reader value); |
| 932 | inline ::capnp::Data::Builder initBinary(unsigned int size); |
| 933 | inline void adoptBinary(::capnp::Orphan< ::capnp::Data>&& value); |
| 934 | inline ::capnp::Orphan< ::capnp::Data> disownBinary(); |
| 935 | |
| 936 | inline bool isApplication(); |
| 937 | inline typename Application::Builder getApplication(); |
| 938 | inline typename Application::Builder initApplication(); |
| 939 | |
| 940 | inline bool isMember(); |
| 941 | inline typename Member::Builder getMember(); |
| 942 | inline typename Member::Builder initMember(); |
| 943 | |
| 944 | inline bool isAbsoluteName(); |
| 945 | inline bool hasAbsoluteName(); |
| 946 | inline ::capnp::compiler::LocatedText::Builder getAbsoluteName(); |
| 947 | inline void setAbsoluteName( ::capnp::compiler::LocatedText::Reader value); |
| 948 | inline ::capnp::compiler::LocatedText::Builder initAbsoluteName(); |
| 949 | inline void adoptAbsoluteName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 950 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownAbsoluteName(); |
| 951 | |
| 952 | inline bool isImport(); |
| 953 | inline bool hasImport(); |
| 954 | inline ::capnp::compiler::LocatedText::Builder getImport(); |
| 955 | inline void setImport( ::capnp::compiler::LocatedText::Reader value); |
| 956 | inline ::capnp::compiler::LocatedText::Builder initImport(); |
| 957 | inline void adoptImport(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 958 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownImport(); |
| 959 | |
| 960 | inline bool isEmbed(); |
| 961 | inline bool hasEmbed(); |
| 962 | inline ::capnp::compiler::LocatedText::Builder getEmbed(); |
| 963 | inline void setEmbed( ::capnp::compiler::LocatedText::Reader value); |
| 964 | inline ::capnp::compiler::LocatedText::Builder initEmbed(); |
| 965 | inline void adoptEmbed(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 966 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownEmbed(); |
| 967 | |
| 968 | private: |
| 969 | ::capnp::_::StructBuilder _builder; |
| 970 | template <typename, ::capnp::Kind> |
| 971 | friend struct ::capnp::ToDynamic_; |
| 972 | friend class ::capnp::Orphanage; |
| 973 | template <typename, ::capnp::Kind> |
| 974 | friend struct ::capnp::_::PointerHelpers; |
| 975 | }; |
| 976 | |
| 977 | #if !CAPNP_LITE |
| 978 | class Expression::Pipeline { |
| 979 | public: |
| 980 | typedef Expression Pipelines; |
| 981 | |
| 982 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 983 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 984 | : _typeless(kj::mv(typeless)) {} |
| 985 | |
| 986 | private: |
| 987 | ::capnp::AnyPointer::Pipeline _typeless; |
| 988 | friend class ::capnp::PipelineHook; |
| 989 | template <typename, ::capnp::Kind> |
| 990 | friend struct ::capnp::ToDynamic_; |
| 991 | }; |
| 992 | #endif // !CAPNP_LITE |
| 993 | |
| 994 | class Expression::Param::Reader { |
| 995 | public: |
| 996 | typedef Param Reads; |
| 997 | |
| 998 | Reader() = default; |
| 999 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1000 | |
| 1001 | inline ::capnp::MessageSize totalSize() const { |
| 1002 | return _reader.totalSize().asPublic(); |
| 1003 | } |
| 1004 | |
| 1005 | #if !CAPNP_LITE |
| 1006 | inline ::kj::StringTree toString() const { |
| 1007 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1008 | } |
| 1009 | #endif // !CAPNP_LITE |
| 1010 | |
| 1011 | inline Which which() const; |
| 1012 | inline bool isUnnamed() const; |
| 1013 | inline ::capnp::Void getUnnamed() const; |
| 1014 | |
| 1015 | inline bool isNamed() const; |
| 1016 | inline bool hasNamed() const; |
| 1017 | inline ::capnp::compiler::LocatedText::Reader getNamed() const; |
| 1018 | |
| 1019 | inline bool hasValue() const; |
| 1020 | inline ::capnp::compiler::Expression::Reader getValue() const; |
| 1021 | |
| 1022 | private: |
| 1023 | ::capnp::_::StructReader _reader; |
| 1024 | template <typename, ::capnp::Kind> |
| 1025 | friend struct ::capnp::ToDynamic_; |
| 1026 | template <typename, ::capnp::Kind> |
| 1027 | friend struct ::capnp::_::PointerHelpers; |
| 1028 | template <typename, ::capnp::Kind> |
| 1029 | friend struct ::capnp::List; |
| 1030 | friend class ::capnp::MessageBuilder; |
| 1031 | friend class ::capnp::Orphanage; |
| 1032 | }; |
| 1033 | |
| 1034 | class Expression::Param::Builder { |
| 1035 | public: |
| 1036 | typedef Param Builds; |
| 1037 | |
| 1038 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1039 | // You can explicitly initialize to nullptr instead. |
| 1040 | inline Builder(decltype(nullptr)) {} |
| 1041 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1042 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1043 | inline Reader asReader() const { return *this; } |
| 1044 | |
| 1045 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1046 | #if !CAPNP_LITE |
| 1047 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1048 | #endif // !CAPNP_LITE |
| 1049 | |
| 1050 | inline Which which(); |
| 1051 | inline bool isUnnamed(); |
| 1052 | inline ::capnp::Void getUnnamed(); |
| 1053 | inline void setUnnamed( ::capnp::Void value = ::capnp::VOID); |
| 1054 | |
| 1055 | inline bool isNamed(); |
| 1056 | inline bool hasNamed(); |
| 1057 | inline ::capnp::compiler::LocatedText::Builder getNamed(); |
| 1058 | inline void setNamed( ::capnp::compiler::LocatedText::Reader value); |
| 1059 | inline ::capnp::compiler::LocatedText::Builder initNamed(); |
| 1060 | inline void adoptNamed(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 1061 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownNamed(); |
| 1062 | |
| 1063 | inline bool hasValue(); |
| 1064 | inline ::capnp::compiler::Expression::Builder getValue(); |
| 1065 | inline void setValue( ::capnp::compiler::Expression::Reader value); |
| 1066 | inline ::capnp::compiler::Expression::Builder initValue(); |
| 1067 | inline void adoptValue(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 1068 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownValue(); |
| 1069 | |
| 1070 | private: |
| 1071 | ::capnp::_::StructBuilder _builder; |
| 1072 | template <typename, ::capnp::Kind> |
| 1073 | friend struct ::capnp::ToDynamic_; |
| 1074 | friend class ::capnp::Orphanage; |
| 1075 | template <typename, ::capnp::Kind> |
| 1076 | friend struct ::capnp::_::PointerHelpers; |
| 1077 | }; |
| 1078 | |
| 1079 | #if !CAPNP_LITE |
| 1080 | class Expression::Param::Pipeline { |
| 1081 | public: |
| 1082 | typedef Param Pipelines; |
| 1083 | |
| 1084 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 1085 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 1086 | : _typeless(kj::mv(typeless)) {} |
| 1087 | |
| 1088 | inline ::capnp::compiler::Expression::Pipeline getValue(); |
| 1089 | private: |
| 1090 | ::capnp::AnyPointer::Pipeline _typeless; |
| 1091 | friend class ::capnp::PipelineHook; |
| 1092 | template <typename, ::capnp::Kind> |
| 1093 | friend struct ::capnp::ToDynamic_; |
| 1094 | }; |
| 1095 | #endif // !CAPNP_LITE |
| 1096 | |
| 1097 | class Expression::Application::Reader { |
| 1098 | public: |
| 1099 | typedef Application Reads; |
| 1100 | |
| 1101 | Reader() = default; |
| 1102 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1103 | |
| 1104 | inline ::capnp::MessageSize totalSize() const { |
| 1105 | return _reader.totalSize().asPublic(); |
| 1106 | } |
| 1107 | |
| 1108 | #if !CAPNP_LITE |
| 1109 | inline ::kj::StringTree toString() const { |
| 1110 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1111 | } |
| 1112 | #endif // !CAPNP_LITE |
| 1113 | |
| 1114 | inline bool hasFunction() const; |
| 1115 | inline ::capnp::compiler::Expression::Reader getFunction() const; |
| 1116 | |
| 1117 | inline bool hasParams() const; |
| 1118 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader getParams() const; |
| 1119 | |
| 1120 | private: |
| 1121 | ::capnp::_::StructReader _reader; |
| 1122 | template <typename, ::capnp::Kind> |
| 1123 | friend struct ::capnp::ToDynamic_; |
| 1124 | template <typename, ::capnp::Kind> |
| 1125 | friend struct ::capnp::_::PointerHelpers; |
| 1126 | template <typename, ::capnp::Kind> |
| 1127 | friend struct ::capnp::List; |
| 1128 | friend class ::capnp::MessageBuilder; |
| 1129 | friend class ::capnp::Orphanage; |
| 1130 | }; |
| 1131 | |
| 1132 | class Expression::Application::Builder { |
| 1133 | public: |
| 1134 | typedef Application Builds; |
| 1135 | |
| 1136 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1137 | // You can explicitly initialize to nullptr instead. |
| 1138 | inline Builder(decltype(nullptr)) {} |
| 1139 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1140 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1141 | inline Reader asReader() const { return *this; } |
| 1142 | |
| 1143 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1144 | #if !CAPNP_LITE |
| 1145 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1146 | #endif // !CAPNP_LITE |
| 1147 | |
| 1148 | inline bool hasFunction(); |
| 1149 | inline ::capnp::compiler::Expression::Builder getFunction(); |
| 1150 | inline void setFunction( ::capnp::compiler::Expression::Reader value); |
| 1151 | inline ::capnp::compiler::Expression::Builder initFunction(); |
| 1152 | inline void adoptFunction(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 1153 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownFunction(); |
| 1154 | |
| 1155 | inline bool hasParams(); |
| 1156 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder getParams(); |
| 1157 | inline void setParams( ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader value); |
| 1158 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder initParams(unsigned int size); |
| 1159 | inline void adoptParams(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>&& value); |
| 1160 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>> disownParams(); |
| 1161 | |
| 1162 | private: |
| 1163 | ::capnp::_::StructBuilder _builder; |
| 1164 | template <typename, ::capnp::Kind> |
| 1165 | friend struct ::capnp::ToDynamic_; |
| 1166 | friend class ::capnp::Orphanage; |
| 1167 | template <typename, ::capnp::Kind> |
| 1168 | friend struct ::capnp::_::PointerHelpers; |
| 1169 | }; |
| 1170 | |
| 1171 | #if !CAPNP_LITE |
| 1172 | class Expression::Application::Pipeline { |
| 1173 | public: |
| 1174 | typedef Application Pipelines; |
| 1175 | |
| 1176 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 1177 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 1178 | : _typeless(kj::mv(typeless)) {} |
| 1179 | |
| 1180 | inline ::capnp::compiler::Expression::Pipeline getFunction(); |
| 1181 | private: |
| 1182 | ::capnp::AnyPointer::Pipeline _typeless; |
| 1183 | friend class ::capnp::PipelineHook; |
| 1184 | template <typename, ::capnp::Kind> |
| 1185 | friend struct ::capnp::ToDynamic_; |
| 1186 | }; |
| 1187 | #endif // !CAPNP_LITE |
| 1188 | |
| 1189 | class Expression::Member::Reader { |
| 1190 | public: |
| 1191 | typedef Member Reads; |
| 1192 | |
| 1193 | Reader() = default; |
| 1194 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1195 | |
| 1196 | inline ::capnp::MessageSize totalSize() const { |
| 1197 | return _reader.totalSize().asPublic(); |
| 1198 | } |
| 1199 | |
| 1200 | #if !CAPNP_LITE |
| 1201 | inline ::kj::StringTree toString() const { |
| 1202 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1203 | } |
| 1204 | #endif // !CAPNP_LITE |
| 1205 | |
| 1206 | inline bool hasParent() const; |
| 1207 | inline ::capnp::compiler::Expression::Reader getParent() const; |
| 1208 | |
| 1209 | inline bool hasName() const; |
| 1210 | inline ::capnp::compiler::LocatedText::Reader getName() const; |
| 1211 | |
| 1212 | private: |
| 1213 | ::capnp::_::StructReader _reader; |
| 1214 | template <typename, ::capnp::Kind> |
| 1215 | friend struct ::capnp::ToDynamic_; |
| 1216 | template <typename, ::capnp::Kind> |
| 1217 | friend struct ::capnp::_::PointerHelpers; |
| 1218 | template <typename, ::capnp::Kind> |
| 1219 | friend struct ::capnp::List; |
| 1220 | friend class ::capnp::MessageBuilder; |
| 1221 | friend class ::capnp::Orphanage; |
| 1222 | }; |
| 1223 | |
| 1224 | class Expression::Member::Builder { |
| 1225 | public: |
| 1226 | typedef Member Builds; |
| 1227 | |
| 1228 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1229 | // You can explicitly initialize to nullptr instead. |
| 1230 | inline Builder(decltype(nullptr)) {} |
| 1231 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1232 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1233 | inline Reader asReader() const { return *this; } |
| 1234 | |
| 1235 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1236 | #if !CAPNP_LITE |
| 1237 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1238 | #endif // !CAPNP_LITE |
| 1239 | |
| 1240 | inline bool hasParent(); |
| 1241 | inline ::capnp::compiler::Expression::Builder getParent(); |
| 1242 | inline void setParent( ::capnp::compiler::Expression::Reader value); |
| 1243 | inline ::capnp::compiler::Expression::Builder initParent(); |
| 1244 | inline void adoptParent(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 1245 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownParent(); |
| 1246 | |
| 1247 | inline bool hasName(); |
| 1248 | inline ::capnp::compiler::LocatedText::Builder getName(); |
| 1249 | inline void setName( ::capnp::compiler::LocatedText::Reader value); |
| 1250 | inline ::capnp::compiler::LocatedText::Builder initName(); |
| 1251 | inline void adoptName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 1252 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownName(); |
| 1253 | |
| 1254 | private: |
| 1255 | ::capnp::_::StructBuilder _builder; |
| 1256 | template <typename, ::capnp::Kind> |
| 1257 | friend struct ::capnp::ToDynamic_; |
| 1258 | friend class ::capnp::Orphanage; |
| 1259 | template <typename, ::capnp::Kind> |
| 1260 | friend struct ::capnp::_::PointerHelpers; |
| 1261 | }; |
| 1262 | |
| 1263 | #if !CAPNP_LITE |
| 1264 | class Expression::Member::Pipeline { |
| 1265 | public: |
| 1266 | typedef Member Pipelines; |
| 1267 | |
| 1268 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 1269 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 1270 | : _typeless(kj::mv(typeless)) {} |
| 1271 | |
| 1272 | inline ::capnp::compiler::Expression::Pipeline getParent(); |
| 1273 | inline ::capnp::compiler::LocatedText::Pipeline getName(); |
| 1274 | private: |
| 1275 | ::capnp::AnyPointer::Pipeline _typeless; |
| 1276 | friend class ::capnp::PipelineHook; |
| 1277 | template <typename, ::capnp::Kind> |
| 1278 | friend struct ::capnp::ToDynamic_; |
| 1279 | }; |
| 1280 | #endif // !CAPNP_LITE |
| 1281 | |
| 1282 | class Declaration::Reader { |
| 1283 | public: |
| 1284 | typedef Declaration Reads; |
| 1285 | |
| 1286 | Reader() = default; |
| 1287 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1288 | |
| 1289 | inline ::capnp::MessageSize totalSize() const { |
| 1290 | return _reader.totalSize().asPublic(); |
| 1291 | } |
| 1292 | |
| 1293 | #if !CAPNP_LITE |
| 1294 | inline ::kj::StringTree toString() const { |
| 1295 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1296 | } |
| 1297 | #endif // !CAPNP_LITE |
| 1298 | |
| 1299 | inline Which which() const; |
| 1300 | inline bool hasName() const; |
| 1301 | inline ::capnp::compiler::LocatedText::Reader getName() const; |
| 1302 | |
| 1303 | inline typename Id::Reader getId() const; |
| 1304 | |
| 1305 | inline bool hasNestedDecls() const; |
| 1306 | inline ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Reader getNestedDecls() const; |
| 1307 | |
| 1308 | inline bool hasAnnotations() const; |
| 1309 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; |
| 1310 | |
| 1311 | inline ::uint32_t getStartByte() const; |
| 1312 | |
| 1313 | inline ::uint32_t getEndByte() const; |
| 1314 | |
| 1315 | inline bool hasDocComment() const; |
| 1316 | inline ::capnp::Text::Reader getDocComment() const; |
| 1317 | |
| 1318 | inline bool isFile() const; |
| 1319 | inline ::capnp::Void getFile() const; |
| 1320 | |
| 1321 | inline bool isUsing() const; |
| 1322 | inline typename Using::Reader getUsing() const; |
| 1323 | |
| 1324 | inline bool isConst() const; |
| 1325 | inline typename Const::Reader getConst() const; |
| 1326 | |
| 1327 | inline bool isEnum() const; |
| 1328 | inline ::capnp::Void getEnum() const; |
| 1329 | |
| 1330 | inline bool isEnumerant() const; |
| 1331 | inline ::capnp::Void getEnumerant() const; |
| 1332 | |
| 1333 | inline bool isStruct() const; |
| 1334 | inline ::capnp::Void getStruct() const; |
| 1335 | |
| 1336 | inline bool isField() const; |
| 1337 | inline typename Field::Reader getField() const; |
| 1338 | |
| 1339 | inline bool isUnion() const; |
| 1340 | inline ::capnp::Void getUnion() const; |
| 1341 | |
| 1342 | inline bool isGroup() const; |
| 1343 | inline ::capnp::Void getGroup() const; |
| 1344 | |
| 1345 | inline bool isInterface() const; |
| 1346 | inline typename Interface::Reader getInterface() const; |
| 1347 | |
| 1348 | inline bool isMethod() const; |
| 1349 | inline typename Method::Reader getMethod() const; |
| 1350 | |
| 1351 | inline bool isAnnotation() const; |
| 1352 | inline typename Annotation::Reader getAnnotation() const; |
| 1353 | |
| 1354 | inline bool isNakedId() const; |
| 1355 | inline bool hasNakedId() const; |
| 1356 | inline ::capnp::compiler::LocatedInteger::Reader getNakedId() const; |
| 1357 | |
| 1358 | inline bool isNakedAnnotation() const; |
| 1359 | inline bool hasNakedAnnotation() const; |
| 1360 | inline ::capnp::compiler::Declaration::AnnotationApplication::Reader getNakedAnnotation() const; |
| 1361 | |
| 1362 | inline bool isBuiltinVoid() const; |
| 1363 | inline ::capnp::Void getBuiltinVoid() const; |
| 1364 | |
| 1365 | inline bool isBuiltinBool() const; |
| 1366 | inline ::capnp::Void getBuiltinBool() const; |
| 1367 | |
| 1368 | inline bool isBuiltinInt8() const; |
| 1369 | inline ::capnp::Void getBuiltinInt8() const; |
| 1370 | |
| 1371 | inline bool isBuiltinInt16() const; |
| 1372 | inline ::capnp::Void getBuiltinInt16() const; |
| 1373 | |
| 1374 | inline bool isBuiltinInt32() const; |
| 1375 | inline ::capnp::Void getBuiltinInt32() const; |
| 1376 | |
| 1377 | inline bool isBuiltinInt64() const; |
| 1378 | inline ::capnp::Void getBuiltinInt64() const; |
| 1379 | |
| 1380 | inline bool isBuiltinUInt8() const; |
| 1381 | inline ::capnp::Void getBuiltinUInt8() const; |
| 1382 | |
| 1383 | inline bool isBuiltinUInt16() const; |
| 1384 | inline ::capnp::Void getBuiltinUInt16() const; |
| 1385 | |
| 1386 | inline bool isBuiltinUInt32() const; |
| 1387 | inline ::capnp::Void getBuiltinUInt32() const; |
| 1388 | |
| 1389 | inline bool isBuiltinUInt64() const; |
| 1390 | inline ::capnp::Void getBuiltinUInt64() const; |
| 1391 | |
| 1392 | inline bool isBuiltinFloat32() const; |
| 1393 | inline ::capnp::Void getBuiltinFloat32() const; |
| 1394 | |
| 1395 | inline bool isBuiltinFloat64() const; |
| 1396 | inline ::capnp::Void getBuiltinFloat64() const; |
| 1397 | |
| 1398 | inline bool isBuiltinText() const; |
| 1399 | inline ::capnp::Void getBuiltinText() const; |
| 1400 | |
| 1401 | inline bool isBuiltinData() const; |
| 1402 | inline ::capnp::Void getBuiltinData() const; |
| 1403 | |
| 1404 | inline bool isBuiltinList() const; |
| 1405 | inline ::capnp::Void getBuiltinList() const; |
| 1406 | |
| 1407 | inline bool isBuiltinObject() const; |
| 1408 | inline ::capnp::Void getBuiltinObject() const; |
| 1409 | |
| 1410 | inline bool isBuiltinAnyPointer() const; |
| 1411 | inline ::capnp::Void getBuiltinAnyPointer() const; |
| 1412 | |
| 1413 | inline bool hasParameters() const; |
| 1414 | inline ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Reader getParameters() const; |
| 1415 | |
| 1416 | inline bool isBuiltinAnyStruct() const; |
| 1417 | inline ::capnp::Void getBuiltinAnyStruct() const; |
| 1418 | |
| 1419 | inline bool isBuiltinAnyList() const; |
| 1420 | inline ::capnp::Void getBuiltinAnyList() const; |
| 1421 | |
| 1422 | inline bool isBuiltinCapability() const; |
| 1423 | inline ::capnp::Void getBuiltinCapability() const; |
| 1424 | |
| 1425 | private: |
| 1426 | ::capnp::_::StructReader _reader; |
| 1427 | template <typename, ::capnp::Kind> |
| 1428 | friend struct ::capnp::ToDynamic_; |
| 1429 | template <typename, ::capnp::Kind> |
| 1430 | friend struct ::capnp::_::PointerHelpers; |
| 1431 | template <typename, ::capnp::Kind> |
| 1432 | friend struct ::capnp::List; |
| 1433 | friend class ::capnp::MessageBuilder; |
| 1434 | friend class ::capnp::Orphanage; |
| 1435 | }; |
| 1436 | |
| 1437 | class Declaration::Builder { |
| 1438 | public: |
| 1439 | typedef Declaration Builds; |
| 1440 | |
| 1441 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1442 | // You can explicitly initialize to nullptr instead. |
| 1443 | inline Builder(decltype(nullptr)) {} |
| 1444 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1445 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1446 | inline Reader asReader() const { return *this; } |
| 1447 | |
| 1448 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1449 | #if !CAPNP_LITE |
| 1450 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1451 | #endif // !CAPNP_LITE |
| 1452 | |
| 1453 | inline Which which(); |
| 1454 | inline bool hasName(); |
| 1455 | inline ::capnp::compiler::LocatedText::Builder getName(); |
| 1456 | inline void setName( ::capnp::compiler::LocatedText::Reader value); |
| 1457 | inline ::capnp::compiler::LocatedText::Builder initName(); |
| 1458 | inline void adoptName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 1459 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownName(); |
| 1460 | |
| 1461 | inline typename Id::Builder getId(); |
| 1462 | inline typename Id::Builder initId(); |
| 1463 | |
| 1464 | inline bool hasNestedDecls(); |
| 1465 | inline ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Builder getNestedDecls(); |
| 1466 | inline void setNestedDecls( ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Reader value); |
| 1467 | inline ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Builder initNestedDecls(unsigned int size); |
| 1468 | inline void adoptNestedDecls(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>&& value); |
| 1469 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>> disownNestedDecls(); |
| 1470 | |
| 1471 | inline bool hasAnnotations(); |
| 1472 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder getAnnotations(); |
| 1473 | inline void setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader value); |
| 1474 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); |
| 1475 | inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>&& value); |
| 1476 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>> disownAnnotations(); |
| 1477 | |
| 1478 | inline ::uint32_t getStartByte(); |
| 1479 | inline void setStartByte( ::uint32_t value); |
| 1480 | |
| 1481 | inline ::uint32_t getEndByte(); |
| 1482 | inline void setEndByte( ::uint32_t value); |
| 1483 | |
| 1484 | inline bool hasDocComment(); |
| 1485 | inline ::capnp::Text::Builder getDocComment(); |
| 1486 | inline void setDocComment( ::capnp::Text::Reader value); |
| 1487 | inline ::capnp::Text::Builder initDocComment(unsigned int size); |
| 1488 | inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value); |
| 1489 | inline ::capnp::Orphan< ::capnp::Text> disownDocComment(); |
| 1490 | |
| 1491 | inline bool isFile(); |
| 1492 | inline ::capnp::Void getFile(); |
| 1493 | inline void setFile( ::capnp::Void value = ::capnp::VOID); |
| 1494 | |
| 1495 | inline bool isUsing(); |
| 1496 | inline typename Using::Builder getUsing(); |
| 1497 | inline typename Using::Builder initUsing(); |
| 1498 | |
| 1499 | inline bool isConst(); |
| 1500 | inline typename Const::Builder getConst(); |
| 1501 | inline typename Const::Builder initConst(); |
| 1502 | |
| 1503 | inline bool isEnum(); |
| 1504 | inline ::capnp::Void getEnum(); |
| 1505 | inline void setEnum( ::capnp::Void value = ::capnp::VOID); |
| 1506 | |
| 1507 | inline bool isEnumerant(); |
| 1508 | inline ::capnp::Void getEnumerant(); |
| 1509 | inline void setEnumerant( ::capnp::Void value = ::capnp::VOID); |
| 1510 | |
| 1511 | inline bool isStruct(); |
| 1512 | inline ::capnp::Void getStruct(); |
| 1513 | inline void setStruct( ::capnp::Void value = ::capnp::VOID); |
| 1514 | |
| 1515 | inline bool isField(); |
| 1516 | inline typename Field::Builder getField(); |
| 1517 | inline typename Field::Builder initField(); |
| 1518 | |
| 1519 | inline bool isUnion(); |
| 1520 | inline ::capnp::Void getUnion(); |
| 1521 | inline void setUnion( ::capnp::Void value = ::capnp::VOID); |
| 1522 | |
| 1523 | inline bool isGroup(); |
| 1524 | inline ::capnp::Void getGroup(); |
| 1525 | inline void setGroup( ::capnp::Void value = ::capnp::VOID); |
| 1526 | |
| 1527 | inline bool isInterface(); |
| 1528 | inline typename Interface::Builder getInterface(); |
| 1529 | inline typename Interface::Builder initInterface(); |
| 1530 | |
| 1531 | inline bool isMethod(); |
| 1532 | inline typename Method::Builder getMethod(); |
| 1533 | inline typename Method::Builder initMethod(); |
| 1534 | |
| 1535 | inline bool isAnnotation(); |
| 1536 | inline typename Annotation::Builder getAnnotation(); |
| 1537 | inline typename Annotation::Builder initAnnotation(); |
| 1538 | |
| 1539 | inline bool isNakedId(); |
| 1540 | inline bool hasNakedId(); |
| 1541 | inline ::capnp::compiler::LocatedInteger::Builder getNakedId(); |
| 1542 | inline void setNakedId( ::capnp::compiler::LocatedInteger::Reader value); |
| 1543 | inline ::capnp::compiler::LocatedInteger::Builder initNakedId(); |
| 1544 | inline void adoptNakedId(::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value); |
| 1545 | inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> disownNakedId(); |
| 1546 | |
| 1547 | inline bool isNakedAnnotation(); |
| 1548 | inline bool hasNakedAnnotation(); |
| 1549 | inline ::capnp::compiler::Declaration::AnnotationApplication::Builder getNakedAnnotation(); |
| 1550 | inline void setNakedAnnotation( ::capnp::compiler::Declaration::AnnotationApplication::Reader value); |
| 1551 | inline ::capnp::compiler::Declaration::AnnotationApplication::Builder initNakedAnnotation(); |
| 1552 | inline void adoptNakedAnnotation(::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication>&& value); |
| 1553 | inline ::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication> disownNakedAnnotation(); |
| 1554 | |
| 1555 | inline bool isBuiltinVoid(); |
| 1556 | inline ::capnp::Void getBuiltinVoid(); |
| 1557 | inline void setBuiltinVoid( ::capnp::Void value = ::capnp::VOID); |
| 1558 | |
| 1559 | inline bool isBuiltinBool(); |
| 1560 | inline ::capnp::Void getBuiltinBool(); |
| 1561 | inline void setBuiltinBool( ::capnp::Void value = ::capnp::VOID); |
| 1562 | |
| 1563 | inline bool isBuiltinInt8(); |
| 1564 | inline ::capnp::Void getBuiltinInt8(); |
| 1565 | inline void setBuiltinInt8( ::capnp::Void value = ::capnp::VOID); |
| 1566 | |
| 1567 | inline bool isBuiltinInt16(); |
| 1568 | inline ::capnp::Void getBuiltinInt16(); |
| 1569 | inline void setBuiltinInt16( ::capnp::Void value = ::capnp::VOID); |
| 1570 | |
| 1571 | inline bool isBuiltinInt32(); |
| 1572 | inline ::capnp::Void getBuiltinInt32(); |
| 1573 | inline void setBuiltinInt32( ::capnp::Void value = ::capnp::VOID); |
| 1574 | |
| 1575 | inline bool isBuiltinInt64(); |
| 1576 | inline ::capnp::Void getBuiltinInt64(); |
| 1577 | inline void setBuiltinInt64( ::capnp::Void value = ::capnp::VOID); |
| 1578 | |
| 1579 | inline bool isBuiltinUInt8(); |
| 1580 | inline ::capnp::Void getBuiltinUInt8(); |
| 1581 | inline void setBuiltinUInt8( ::capnp::Void value = ::capnp::VOID); |
| 1582 | |
| 1583 | inline bool isBuiltinUInt16(); |
| 1584 | inline ::capnp::Void getBuiltinUInt16(); |
| 1585 | inline void setBuiltinUInt16( ::capnp::Void value = ::capnp::VOID); |
| 1586 | |
| 1587 | inline bool isBuiltinUInt32(); |
| 1588 | inline ::capnp::Void getBuiltinUInt32(); |
| 1589 | inline void setBuiltinUInt32( ::capnp::Void value = ::capnp::VOID); |
| 1590 | |
| 1591 | inline bool isBuiltinUInt64(); |
| 1592 | inline ::capnp::Void getBuiltinUInt64(); |
| 1593 | inline void setBuiltinUInt64( ::capnp::Void value = ::capnp::VOID); |
| 1594 | |
| 1595 | inline bool isBuiltinFloat32(); |
| 1596 | inline ::capnp::Void getBuiltinFloat32(); |
| 1597 | inline void setBuiltinFloat32( ::capnp::Void value = ::capnp::VOID); |
| 1598 | |
| 1599 | inline bool isBuiltinFloat64(); |
| 1600 | inline ::capnp::Void getBuiltinFloat64(); |
| 1601 | inline void setBuiltinFloat64( ::capnp::Void value = ::capnp::VOID); |
| 1602 | |
| 1603 | inline bool isBuiltinText(); |
| 1604 | inline ::capnp::Void getBuiltinText(); |
| 1605 | inline void setBuiltinText( ::capnp::Void value = ::capnp::VOID); |
| 1606 | |
| 1607 | inline bool isBuiltinData(); |
| 1608 | inline ::capnp::Void getBuiltinData(); |
| 1609 | inline void setBuiltinData( ::capnp::Void value = ::capnp::VOID); |
| 1610 | |
| 1611 | inline bool isBuiltinList(); |
| 1612 | inline ::capnp::Void getBuiltinList(); |
| 1613 | inline void setBuiltinList( ::capnp::Void value = ::capnp::VOID); |
| 1614 | |
| 1615 | inline bool isBuiltinObject(); |
| 1616 | inline ::capnp::Void getBuiltinObject(); |
| 1617 | inline void setBuiltinObject( ::capnp::Void value = ::capnp::VOID); |
| 1618 | |
| 1619 | inline bool isBuiltinAnyPointer(); |
| 1620 | inline ::capnp::Void getBuiltinAnyPointer(); |
| 1621 | inline void setBuiltinAnyPointer( ::capnp::Void value = ::capnp::VOID); |
| 1622 | |
| 1623 | inline bool hasParameters(); |
| 1624 | inline ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Builder getParameters(); |
| 1625 | inline void setParameters( ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Reader value); |
| 1626 | inline ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Builder initParameters(unsigned int size); |
| 1627 | inline void adoptParameters(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>&& value); |
| 1628 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>> disownParameters(); |
| 1629 | |
| 1630 | inline bool isBuiltinAnyStruct(); |
| 1631 | inline ::capnp::Void getBuiltinAnyStruct(); |
| 1632 | inline void setBuiltinAnyStruct( ::capnp::Void value = ::capnp::VOID); |
| 1633 | |
| 1634 | inline bool isBuiltinAnyList(); |
| 1635 | inline ::capnp::Void getBuiltinAnyList(); |
| 1636 | inline void setBuiltinAnyList( ::capnp::Void value = ::capnp::VOID); |
| 1637 | |
| 1638 | inline bool isBuiltinCapability(); |
| 1639 | inline ::capnp::Void getBuiltinCapability(); |
| 1640 | inline void setBuiltinCapability( ::capnp::Void value = ::capnp::VOID); |
| 1641 | |
| 1642 | private: |
| 1643 | ::capnp::_::StructBuilder _builder; |
| 1644 | template <typename, ::capnp::Kind> |
| 1645 | friend struct ::capnp::ToDynamic_; |
| 1646 | friend class ::capnp::Orphanage; |
| 1647 | template <typename, ::capnp::Kind> |
| 1648 | friend struct ::capnp::_::PointerHelpers; |
| 1649 | }; |
| 1650 | |
| 1651 | #if !CAPNP_LITE |
| 1652 | class Declaration::Pipeline { |
| 1653 | public: |
| 1654 | typedef Declaration Pipelines; |
| 1655 | |
| 1656 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 1657 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 1658 | : _typeless(kj::mv(typeless)) {} |
| 1659 | |
| 1660 | inline ::capnp::compiler::LocatedText::Pipeline getName(); |
| 1661 | inline typename Id::Pipeline getId(); |
| 1662 | private: |
| 1663 | ::capnp::AnyPointer::Pipeline _typeless; |
| 1664 | friend class ::capnp::PipelineHook; |
| 1665 | template <typename, ::capnp::Kind> |
| 1666 | friend struct ::capnp::ToDynamic_; |
| 1667 | }; |
| 1668 | #endif // !CAPNP_LITE |
| 1669 | |
| 1670 | class Declaration::BrandParameter::Reader { |
| 1671 | public: |
| 1672 | typedef BrandParameter Reads; |
| 1673 | |
| 1674 | Reader() = default; |
| 1675 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1676 | |
| 1677 | inline ::capnp::MessageSize totalSize() const { |
| 1678 | return _reader.totalSize().asPublic(); |
| 1679 | } |
| 1680 | |
| 1681 | #if !CAPNP_LITE |
| 1682 | inline ::kj::StringTree toString() const { |
| 1683 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1684 | } |
| 1685 | #endif // !CAPNP_LITE |
| 1686 | |
| 1687 | inline bool hasName() const; |
| 1688 | inline ::capnp::Text::Reader getName() const; |
| 1689 | |
| 1690 | inline ::uint32_t getStartByte() const; |
| 1691 | |
| 1692 | inline ::uint32_t getEndByte() const; |
| 1693 | |
| 1694 | private: |
| 1695 | ::capnp::_::StructReader _reader; |
| 1696 | template <typename, ::capnp::Kind> |
| 1697 | friend struct ::capnp::ToDynamic_; |
| 1698 | template <typename, ::capnp::Kind> |
| 1699 | friend struct ::capnp::_::PointerHelpers; |
| 1700 | template <typename, ::capnp::Kind> |
| 1701 | friend struct ::capnp::List; |
| 1702 | friend class ::capnp::MessageBuilder; |
| 1703 | friend class ::capnp::Orphanage; |
| 1704 | }; |
| 1705 | |
| 1706 | class Declaration::BrandParameter::Builder { |
| 1707 | public: |
| 1708 | typedef BrandParameter Builds; |
| 1709 | |
| 1710 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1711 | // You can explicitly initialize to nullptr instead. |
| 1712 | inline Builder(decltype(nullptr)) {} |
| 1713 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1714 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1715 | inline Reader asReader() const { return *this; } |
| 1716 | |
| 1717 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1718 | #if !CAPNP_LITE |
| 1719 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1720 | #endif // !CAPNP_LITE |
| 1721 | |
| 1722 | inline bool hasName(); |
| 1723 | inline ::capnp::Text::Builder getName(); |
| 1724 | inline void setName( ::capnp::Text::Reader value); |
| 1725 | inline ::capnp::Text::Builder initName(unsigned int size); |
| 1726 | inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); |
| 1727 | inline ::capnp::Orphan< ::capnp::Text> disownName(); |
| 1728 | |
| 1729 | inline ::uint32_t getStartByte(); |
| 1730 | inline void setStartByte( ::uint32_t value); |
| 1731 | |
| 1732 | inline ::uint32_t getEndByte(); |
| 1733 | inline void setEndByte( ::uint32_t value); |
| 1734 | |
| 1735 | private: |
| 1736 | ::capnp::_::StructBuilder _builder; |
| 1737 | template <typename, ::capnp::Kind> |
| 1738 | friend struct ::capnp::ToDynamic_; |
| 1739 | friend class ::capnp::Orphanage; |
| 1740 | template <typename, ::capnp::Kind> |
| 1741 | friend struct ::capnp::_::PointerHelpers; |
| 1742 | }; |
| 1743 | |
| 1744 | #if !CAPNP_LITE |
| 1745 | class Declaration::BrandParameter::Pipeline { |
| 1746 | public: |
| 1747 | typedef BrandParameter Pipelines; |
| 1748 | |
| 1749 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 1750 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 1751 | : _typeless(kj::mv(typeless)) {} |
| 1752 | |
| 1753 | private: |
| 1754 | ::capnp::AnyPointer::Pipeline _typeless; |
| 1755 | friend class ::capnp::PipelineHook; |
| 1756 | template <typename, ::capnp::Kind> |
| 1757 | friend struct ::capnp::ToDynamic_; |
| 1758 | }; |
| 1759 | #endif // !CAPNP_LITE |
| 1760 | |
| 1761 | class Declaration::AnnotationApplication::Reader { |
| 1762 | public: |
| 1763 | typedef AnnotationApplication Reads; |
| 1764 | |
| 1765 | Reader() = default; |
| 1766 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1767 | |
| 1768 | inline ::capnp::MessageSize totalSize() const { |
| 1769 | return _reader.totalSize().asPublic(); |
| 1770 | } |
| 1771 | |
| 1772 | #if !CAPNP_LITE |
| 1773 | inline ::kj::StringTree toString() const { |
| 1774 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1775 | } |
| 1776 | #endif // !CAPNP_LITE |
| 1777 | |
| 1778 | inline bool hasName() const; |
| 1779 | inline ::capnp::compiler::Expression::Reader getName() const; |
| 1780 | |
| 1781 | inline typename Value::Reader getValue() const; |
| 1782 | |
| 1783 | private: |
| 1784 | ::capnp::_::StructReader _reader; |
| 1785 | template <typename, ::capnp::Kind> |
| 1786 | friend struct ::capnp::ToDynamic_; |
| 1787 | template <typename, ::capnp::Kind> |
| 1788 | friend struct ::capnp::_::PointerHelpers; |
| 1789 | template <typename, ::capnp::Kind> |
| 1790 | friend struct ::capnp::List; |
| 1791 | friend class ::capnp::MessageBuilder; |
| 1792 | friend class ::capnp::Orphanage; |
| 1793 | }; |
| 1794 | |
| 1795 | class Declaration::AnnotationApplication::Builder { |
| 1796 | public: |
| 1797 | typedef AnnotationApplication Builds; |
| 1798 | |
| 1799 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1800 | // You can explicitly initialize to nullptr instead. |
| 1801 | inline Builder(decltype(nullptr)) {} |
| 1802 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1803 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1804 | inline Reader asReader() const { return *this; } |
| 1805 | |
| 1806 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1807 | #if !CAPNP_LITE |
| 1808 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1809 | #endif // !CAPNP_LITE |
| 1810 | |
| 1811 | inline bool hasName(); |
| 1812 | inline ::capnp::compiler::Expression::Builder getName(); |
| 1813 | inline void setName( ::capnp::compiler::Expression::Reader value); |
| 1814 | inline ::capnp::compiler::Expression::Builder initName(); |
| 1815 | inline void adoptName(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 1816 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownName(); |
| 1817 | |
| 1818 | inline typename Value::Builder getValue(); |
| 1819 | inline typename Value::Builder initValue(); |
| 1820 | |
| 1821 | private: |
| 1822 | ::capnp::_::StructBuilder _builder; |
| 1823 | template <typename, ::capnp::Kind> |
| 1824 | friend struct ::capnp::ToDynamic_; |
| 1825 | friend class ::capnp::Orphanage; |
| 1826 | template <typename, ::capnp::Kind> |
| 1827 | friend struct ::capnp::_::PointerHelpers; |
| 1828 | }; |
| 1829 | |
| 1830 | #if !CAPNP_LITE |
| 1831 | class Declaration::AnnotationApplication::Pipeline { |
| 1832 | public: |
| 1833 | typedef AnnotationApplication Pipelines; |
| 1834 | |
| 1835 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 1836 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 1837 | : _typeless(kj::mv(typeless)) {} |
| 1838 | |
| 1839 | inline ::capnp::compiler::Expression::Pipeline getName(); |
| 1840 | inline typename Value::Pipeline getValue(); |
| 1841 | private: |
| 1842 | ::capnp::AnyPointer::Pipeline _typeless; |
| 1843 | friend class ::capnp::PipelineHook; |
| 1844 | template <typename, ::capnp::Kind> |
| 1845 | friend struct ::capnp::ToDynamic_; |
| 1846 | }; |
| 1847 | #endif // !CAPNP_LITE |
| 1848 | |
| 1849 | class Declaration::AnnotationApplication::Value::Reader { |
| 1850 | public: |
| 1851 | typedef Value Reads; |
| 1852 | |
| 1853 | Reader() = default; |
| 1854 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1855 | |
| 1856 | inline ::capnp::MessageSize totalSize() const { |
| 1857 | return _reader.totalSize().asPublic(); |
| 1858 | } |
| 1859 | |
| 1860 | #if !CAPNP_LITE |
| 1861 | inline ::kj::StringTree toString() const { |
| 1862 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1863 | } |
| 1864 | #endif // !CAPNP_LITE |
| 1865 | |
| 1866 | inline Which which() const; |
| 1867 | inline bool isNone() const; |
| 1868 | inline ::capnp::Void getNone() const; |
| 1869 | |
| 1870 | inline bool isExpression() const; |
| 1871 | inline bool hasExpression() const; |
| 1872 | inline ::capnp::compiler::Expression::Reader getExpression() const; |
| 1873 | |
| 1874 | private: |
| 1875 | ::capnp::_::StructReader _reader; |
| 1876 | template <typename, ::capnp::Kind> |
| 1877 | friend struct ::capnp::ToDynamic_; |
| 1878 | template <typename, ::capnp::Kind> |
| 1879 | friend struct ::capnp::_::PointerHelpers; |
| 1880 | template <typename, ::capnp::Kind> |
| 1881 | friend struct ::capnp::List; |
| 1882 | friend class ::capnp::MessageBuilder; |
| 1883 | friend class ::capnp::Orphanage; |
| 1884 | }; |
| 1885 | |
| 1886 | class Declaration::AnnotationApplication::Value::Builder { |
| 1887 | public: |
| 1888 | typedef Value Builds; |
| 1889 | |
| 1890 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1891 | // You can explicitly initialize to nullptr instead. |
| 1892 | inline Builder(decltype(nullptr)) {} |
| 1893 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1894 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1895 | inline Reader asReader() const { return *this; } |
| 1896 | |
| 1897 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1898 | #if !CAPNP_LITE |
| 1899 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1900 | #endif // !CAPNP_LITE |
| 1901 | |
| 1902 | inline Which which(); |
| 1903 | inline bool isNone(); |
| 1904 | inline ::capnp::Void getNone(); |
| 1905 | inline void setNone( ::capnp::Void value = ::capnp::VOID); |
| 1906 | |
| 1907 | inline bool isExpression(); |
| 1908 | inline bool hasExpression(); |
| 1909 | inline ::capnp::compiler::Expression::Builder getExpression(); |
| 1910 | inline void setExpression( ::capnp::compiler::Expression::Reader value); |
| 1911 | inline ::capnp::compiler::Expression::Builder initExpression(); |
| 1912 | inline void adoptExpression(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 1913 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownExpression(); |
| 1914 | |
| 1915 | private: |
| 1916 | ::capnp::_::StructBuilder _builder; |
| 1917 | template <typename, ::capnp::Kind> |
| 1918 | friend struct ::capnp::ToDynamic_; |
| 1919 | friend class ::capnp::Orphanage; |
| 1920 | template <typename, ::capnp::Kind> |
| 1921 | friend struct ::capnp::_::PointerHelpers; |
| 1922 | }; |
| 1923 | |
| 1924 | #if !CAPNP_LITE |
| 1925 | class Declaration::AnnotationApplication::Value::Pipeline { |
| 1926 | public: |
| 1927 | typedef Value Pipelines; |
| 1928 | |
| 1929 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 1930 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 1931 | : _typeless(kj::mv(typeless)) {} |
| 1932 | |
| 1933 | private: |
| 1934 | ::capnp::AnyPointer::Pipeline _typeless; |
| 1935 | friend class ::capnp::PipelineHook; |
| 1936 | template <typename, ::capnp::Kind> |
| 1937 | friend struct ::capnp::ToDynamic_; |
| 1938 | }; |
| 1939 | #endif // !CAPNP_LITE |
| 1940 | |
| 1941 | class Declaration::ParamList::Reader { |
| 1942 | public: |
| 1943 | typedef ParamList Reads; |
| 1944 | |
| 1945 | Reader() = default; |
| 1946 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 1947 | |
| 1948 | inline ::capnp::MessageSize totalSize() const { |
| 1949 | return _reader.totalSize().asPublic(); |
| 1950 | } |
| 1951 | |
| 1952 | #if !CAPNP_LITE |
| 1953 | inline ::kj::StringTree toString() const { |
| 1954 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 1955 | } |
| 1956 | #endif // !CAPNP_LITE |
| 1957 | |
| 1958 | inline Which which() const; |
| 1959 | inline bool isNamedList() const; |
| 1960 | inline bool hasNamedList() const; |
| 1961 | inline ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Reader getNamedList() const; |
| 1962 | |
| 1963 | inline bool isType() const; |
| 1964 | inline bool hasType() const; |
| 1965 | inline ::capnp::compiler::Expression::Reader getType() const; |
| 1966 | |
| 1967 | inline ::uint32_t getStartByte() const; |
| 1968 | |
| 1969 | inline ::uint32_t getEndByte() const; |
| 1970 | |
| 1971 | private: |
| 1972 | ::capnp::_::StructReader _reader; |
| 1973 | template <typename, ::capnp::Kind> |
| 1974 | friend struct ::capnp::ToDynamic_; |
| 1975 | template <typename, ::capnp::Kind> |
| 1976 | friend struct ::capnp::_::PointerHelpers; |
| 1977 | template <typename, ::capnp::Kind> |
| 1978 | friend struct ::capnp::List; |
| 1979 | friend class ::capnp::MessageBuilder; |
| 1980 | friend class ::capnp::Orphanage; |
| 1981 | }; |
| 1982 | |
| 1983 | class Declaration::ParamList::Builder { |
| 1984 | public: |
| 1985 | typedef ParamList Builds; |
| 1986 | |
| 1987 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 1988 | // You can explicitly initialize to nullptr instead. |
| 1989 | inline Builder(decltype(nullptr)) {} |
| 1990 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 1991 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 1992 | inline Reader asReader() const { return *this; } |
| 1993 | |
| 1994 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 1995 | #if !CAPNP_LITE |
| 1996 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 1997 | #endif // !CAPNP_LITE |
| 1998 | |
| 1999 | inline Which which(); |
| 2000 | inline bool isNamedList(); |
| 2001 | inline bool hasNamedList(); |
| 2002 | inline ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Builder getNamedList(); |
| 2003 | inline void setNamedList( ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Reader value); |
| 2004 | inline ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Builder initNamedList(unsigned int size); |
| 2005 | inline void adoptNamedList(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>&& value); |
| 2006 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>> disownNamedList(); |
| 2007 | |
| 2008 | inline bool isType(); |
| 2009 | inline bool hasType(); |
| 2010 | inline ::capnp::compiler::Expression::Builder getType(); |
| 2011 | inline void setType( ::capnp::compiler::Expression::Reader value); |
| 2012 | inline ::capnp::compiler::Expression::Builder initType(); |
| 2013 | inline void adoptType(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2014 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownType(); |
| 2015 | |
| 2016 | inline ::uint32_t getStartByte(); |
| 2017 | inline void setStartByte( ::uint32_t value); |
| 2018 | |
| 2019 | inline ::uint32_t getEndByte(); |
| 2020 | inline void setEndByte( ::uint32_t value); |
| 2021 | |
| 2022 | private: |
| 2023 | ::capnp::_::StructBuilder _builder; |
| 2024 | template <typename, ::capnp::Kind> |
| 2025 | friend struct ::capnp::ToDynamic_; |
| 2026 | friend class ::capnp::Orphanage; |
| 2027 | template <typename, ::capnp::Kind> |
| 2028 | friend struct ::capnp::_::PointerHelpers; |
| 2029 | }; |
| 2030 | |
| 2031 | #if !CAPNP_LITE |
| 2032 | class Declaration::ParamList::Pipeline { |
| 2033 | public: |
| 2034 | typedef ParamList Pipelines; |
| 2035 | |
| 2036 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2037 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2038 | : _typeless(kj::mv(typeless)) {} |
| 2039 | |
| 2040 | private: |
| 2041 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2042 | friend class ::capnp::PipelineHook; |
| 2043 | template <typename, ::capnp::Kind> |
| 2044 | friend struct ::capnp::ToDynamic_; |
| 2045 | }; |
| 2046 | #endif // !CAPNP_LITE |
| 2047 | |
| 2048 | class Declaration::Param::Reader { |
| 2049 | public: |
| 2050 | typedef Param Reads; |
| 2051 | |
| 2052 | Reader() = default; |
| 2053 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2054 | |
| 2055 | inline ::capnp::MessageSize totalSize() const { |
| 2056 | return _reader.totalSize().asPublic(); |
| 2057 | } |
| 2058 | |
| 2059 | #if !CAPNP_LITE |
| 2060 | inline ::kj::StringTree toString() const { |
| 2061 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2062 | } |
| 2063 | #endif // !CAPNP_LITE |
| 2064 | |
| 2065 | inline bool hasName() const; |
| 2066 | inline ::capnp::compiler::LocatedText::Reader getName() const; |
| 2067 | |
| 2068 | inline bool hasType() const; |
| 2069 | inline ::capnp::compiler::Expression::Reader getType() const; |
| 2070 | |
| 2071 | inline bool hasAnnotations() const; |
| 2072 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; |
| 2073 | |
| 2074 | inline typename DefaultValue::Reader getDefaultValue() const; |
| 2075 | |
| 2076 | inline ::uint32_t getStartByte() const; |
| 2077 | |
| 2078 | inline ::uint32_t getEndByte() const; |
| 2079 | |
| 2080 | private: |
| 2081 | ::capnp::_::StructReader _reader; |
| 2082 | template <typename, ::capnp::Kind> |
| 2083 | friend struct ::capnp::ToDynamic_; |
| 2084 | template <typename, ::capnp::Kind> |
| 2085 | friend struct ::capnp::_::PointerHelpers; |
| 2086 | template <typename, ::capnp::Kind> |
| 2087 | friend struct ::capnp::List; |
| 2088 | friend class ::capnp::MessageBuilder; |
| 2089 | friend class ::capnp::Orphanage; |
| 2090 | }; |
| 2091 | |
| 2092 | class Declaration::Param::Builder { |
| 2093 | public: |
| 2094 | typedef Param Builds; |
| 2095 | |
| 2096 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2097 | // You can explicitly initialize to nullptr instead. |
| 2098 | inline Builder(decltype(nullptr)) {} |
| 2099 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2100 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2101 | inline Reader asReader() const { return *this; } |
| 2102 | |
| 2103 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2104 | #if !CAPNP_LITE |
| 2105 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2106 | #endif // !CAPNP_LITE |
| 2107 | |
| 2108 | inline bool hasName(); |
| 2109 | inline ::capnp::compiler::LocatedText::Builder getName(); |
| 2110 | inline void setName( ::capnp::compiler::LocatedText::Reader value); |
| 2111 | inline ::capnp::compiler::LocatedText::Builder initName(); |
| 2112 | inline void adoptName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value); |
| 2113 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownName(); |
| 2114 | |
| 2115 | inline bool hasType(); |
| 2116 | inline ::capnp::compiler::Expression::Builder getType(); |
| 2117 | inline void setType( ::capnp::compiler::Expression::Reader value); |
| 2118 | inline ::capnp::compiler::Expression::Builder initType(); |
| 2119 | inline void adoptType(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2120 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownType(); |
| 2121 | |
| 2122 | inline bool hasAnnotations(); |
| 2123 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder getAnnotations(); |
| 2124 | inline void setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader value); |
| 2125 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); |
| 2126 | inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>&& value); |
| 2127 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>> disownAnnotations(); |
| 2128 | |
| 2129 | inline typename DefaultValue::Builder getDefaultValue(); |
| 2130 | inline typename DefaultValue::Builder initDefaultValue(); |
| 2131 | |
| 2132 | inline ::uint32_t getStartByte(); |
| 2133 | inline void setStartByte( ::uint32_t value); |
| 2134 | |
| 2135 | inline ::uint32_t getEndByte(); |
| 2136 | inline void setEndByte( ::uint32_t value); |
| 2137 | |
| 2138 | private: |
| 2139 | ::capnp::_::StructBuilder _builder; |
| 2140 | template <typename, ::capnp::Kind> |
| 2141 | friend struct ::capnp::ToDynamic_; |
| 2142 | friend class ::capnp::Orphanage; |
| 2143 | template <typename, ::capnp::Kind> |
| 2144 | friend struct ::capnp::_::PointerHelpers; |
| 2145 | }; |
| 2146 | |
| 2147 | #if !CAPNP_LITE |
| 2148 | class Declaration::Param::Pipeline { |
| 2149 | public: |
| 2150 | typedef Param Pipelines; |
| 2151 | |
| 2152 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2153 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2154 | : _typeless(kj::mv(typeless)) {} |
| 2155 | |
| 2156 | inline ::capnp::compiler::LocatedText::Pipeline getName(); |
| 2157 | inline ::capnp::compiler::Expression::Pipeline getType(); |
| 2158 | inline typename DefaultValue::Pipeline getDefaultValue(); |
| 2159 | private: |
| 2160 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2161 | friend class ::capnp::PipelineHook; |
| 2162 | template <typename, ::capnp::Kind> |
| 2163 | friend struct ::capnp::ToDynamic_; |
| 2164 | }; |
| 2165 | #endif // !CAPNP_LITE |
| 2166 | |
| 2167 | class Declaration::Param::DefaultValue::Reader { |
| 2168 | public: |
| 2169 | typedef DefaultValue Reads; |
| 2170 | |
| 2171 | Reader() = default; |
| 2172 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2173 | |
| 2174 | inline ::capnp::MessageSize totalSize() const { |
| 2175 | return _reader.totalSize().asPublic(); |
| 2176 | } |
| 2177 | |
| 2178 | #if !CAPNP_LITE |
| 2179 | inline ::kj::StringTree toString() const { |
| 2180 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2181 | } |
| 2182 | #endif // !CAPNP_LITE |
| 2183 | |
| 2184 | inline Which which() const; |
| 2185 | inline bool isNone() const; |
| 2186 | inline ::capnp::Void getNone() const; |
| 2187 | |
| 2188 | inline bool isValue() const; |
| 2189 | inline bool hasValue() const; |
| 2190 | inline ::capnp::compiler::Expression::Reader getValue() const; |
| 2191 | |
| 2192 | private: |
| 2193 | ::capnp::_::StructReader _reader; |
| 2194 | template <typename, ::capnp::Kind> |
| 2195 | friend struct ::capnp::ToDynamic_; |
| 2196 | template <typename, ::capnp::Kind> |
| 2197 | friend struct ::capnp::_::PointerHelpers; |
| 2198 | template <typename, ::capnp::Kind> |
| 2199 | friend struct ::capnp::List; |
| 2200 | friend class ::capnp::MessageBuilder; |
| 2201 | friend class ::capnp::Orphanage; |
| 2202 | }; |
| 2203 | |
| 2204 | class Declaration::Param::DefaultValue::Builder { |
| 2205 | public: |
| 2206 | typedef DefaultValue Builds; |
| 2207 | |
| 2208 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2209 | // You can explicitly initialize to nullptr instead. |
| 2210 | inline Builder(decltype(nullptr)) {} |
| 2211 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2212 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2213 | inline Reader asReader() const { return *this; } |
| 2214 | |
| 2215 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2216 | #if !CAPNP_LITE |
| 2217 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2218 | #endif // !CAPNP_LITE |
| 2219 | |
| 2220 | inline Which which(); |
| 2221 | inline bool isNone(); |
| 2222 | inline ::capnp::Void getNone(); |
| 2223 | inline void setNone( ::capnp::Void value = ::capnp::VOID); |
| 2224 | |
| 2225 | inline bool isValue(); |
| 2226 | inline bool hasValue(); |
| 2227 | inline ::capnp::compiler::Expression::Builder getValue(); |
| 2228 | inline void setValue( ::capnp::compiler::Expression::Reader value); |
| 2229 | inline ::capnp::compiler::Expression::Builder initValue(); |
| 2230 | inline void adoptValue(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2231 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownValue(); |
| 2232 | |
| 2233 | private: |
| 2234 | ::capnp::_::StructBuilder _builder; |
| 2235 | template <typename, ::capnp::Kind> |
| 2236 | friend struct ::capnp::ToDynamic_; |
| 2237 | friend class ::capnp::Orphanage; |
| 2238 | template <typename, ::capnp::Kind> |
| 2239 | friend struct ::capnp::_::PointerHelpers; |
| 2240 | }; |
| 2241 | |
| 2242 | #if !CAPNP_LITE |
| 2243 | class Declaration::Param::DefaultValue::Pipeline { |
| 2244 | public: |
| 2245 | typedef DefaultValue Pipelines; |
| 2246 | |
| 2247 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2248 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2249 | : _typeless(kj::mv(typeless)) {} |
| 2250 | |
| 2251 | private: |
| 2252 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2253 | friend class ::capnp::PipelineHook; |
| 2254 | template <typename, ::capnp::Kind> |
| 2255 | friend struct ::capnp::ToDynamic_; |
| 2256 | }; |
| 2257 | #endif // !CAPNP_LITE |
| 2258 | |
| 2259 | class Declaration::Id::Reader { |
| 2260 | public: |
| 2261 | typedef Id Reads; |
| 2262 | |
| 2263 | Reader() = default; |
| 2264 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2265 | |
| 2266 | inline ::capnp::MessageSize totalSize() const { |
| 2267 | return _reader.totalSize().asPublic(); |
| 2268 | } |
| 2269 | |
| 2270 | #if !CAPNP_LITE |
| 2271 | inline ::kj::StringTree toString() const { |
| 2272 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2273 | } |
| 2274 | #endif // !CAPNP_LITE |
| 2275 | |
| 2276 | inline Which which() const; |
| 2277 | inline bool isUnspecified() const; |
| 2278 | inline ::capnp::Void getUnspecified() const; |
| 2279 | |
| 2280 | inline bool isUid() const; |
| 2281 | inline bool hasUid() const; |
| 2282 | inline ::capnp::compiler::LocatedInteger::Reader getUid() const; |
| 2283 | |
| 2284 | inline bool isOrdinal() const; |
| 2285 | inline bool hasOrdinal() const; |
| 2286 | inline ::capnp::compiler::LocatedInteger::Reader getOrdinal() const; |
| 2287 | |
| 2288 | private: |
| 2289 | ::capnp::_::StructReader _reader; |
| 2290 | template <typename, ::capnp::Kind> |
| 2291 | friend struct ::capnp::ToDynamic_; |
| 2292 | template <typename, ::capnp::Kind> |
| 2293 | friend struct ::capnp::_::PointerHelpers; |
| 2294 | template <typename, ::capnp::Kind> |
| 2295 | friend struct ::capnp::List; |
| 2296 | friend class ::capnp::MessageBuilder; |
| 2297 | friend class ::capnp::Orphanage; |
| 2298 | }; |
| 2299 | |
| 2300 | class Declaration::Id::Builder { |
| 2301 | public: |
| 2302 | typedef Id Builds; |
| 2303 | |
| 2304 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2305 | // You can explicitly initialize to nullptr instead. |
| 2306 | inline Builder(decltype(nullptr)) {} |
| 2307 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2308 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2309 | inline Reader asReader() const { return *this; } |
| 2310 | |
| 2311 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2312 | #if !CAPNP_LITE |
| 2313 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2314 | #endif // !CAPNP_LITE |
| 2315 | |
| 2316 | inline Which which(); |
| 2317 | inline bool isUnspecified(); |
| 2318 | inline ::capnp::Void getUnspecified(); |
| 2319 | inline void setUnspecified( ::capnp::Void value = ::capnp::VOID); |
| 2320 | |
| 2321 | inline bool isUid(); |
| 2322 | inline bool hasUid(); |
| 2323 | inline ::capnp::compiler::LocatedInteger::Builder getUid(); |
| 2324 | inline void setUid( ::capnp::compiler::LocatedInteger::Reader value); |
| 2325 | inline ::capnp::compiler::LocatedInteger::Builder initUid(); |
| 2326 | inline void adoptUid(::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value); |
| 2327 | inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> disownUid(); |
| 2328 | |
| 2329 | inline bool isOrdinal(); |
| 2330 | inline bool hasOrdinal(); |
| 2331 | inline ::capnp::compiler::LocatedInteger::Builder getOrdinal(); |
| 2332 | inline void setOrdinal( ::capnp::compiler::LocatedInteger::Reader value); |
| 2333 | inline ::capnp::compiler::LocatedInteger::Builder initOrdinal(); |
| 2334 | inline void adoptOrdinal(::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value); |
| 2335 | inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> disownOrdinal(); |
| 2336 | |
| 2337 | private: |
| 2338 | ::capnp::_::StructBuilder _builder; |
| 2339 | template <typename, ::capnp::Kind> |
| 2340 | friend struct ::capnp::ToDynamic_; |
| 2341 | friend class ::capnp::Orphanage; |
| 2342 | template <typename, ::capnp::Kind> |
| 2343 | friend struct ::capnp::_::PointerHelpers; |
| 2344 | }; |
| 2345 | |
| 2346 | #if !CAPNP_LITE |
| 2347 | class Declaration::Id::Pipeline { |
| 2348 | public: |
| 2349 | typedef Id Pipelines; |
| 2350 | |
| 2351 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2352 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2353 | : _typeless(kj::mv(typeless)) {} |
| 2354 | |
| 2355 | private: |
| 2356 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2357 | friend class ::capnp::PipelineHook; |
| 2358 | template <typename, ::capnp::Kind> |
| 2359 | friend struct ::capnp::ToDynamic_; |
| 2360 | }; |
| 2361 | #endif // !CAPNP_LITE |
| 2362 | |
| 2363 | class Declaration::Using::Reader { |
| 2364 | public: |
| 2365 | typedef Using Reads; |
| 2366 | |
| 2367 | Reader() = default; |
| 2368 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2369 | |
| 2370 | inline ::capnp::MessageSize totalSize() const { |
| 2371 | return _reader.totalSize().asPublic(); |
| 2372 | } |
| 2373 | |
| 2374 | #if !CAPNP_LITE |
| 2375 | inline ::kj::StringTree toString() const { |
| 2376 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2377 | } |
| 2378 | #endif // !CAPNP_LITE |
| 2379 | |
| 2380 | inline bool hasTarget() const; |
| 2381 | inline ::capnp::compiler::Expression::Reader getTarget() const; |
| 2382 | |
| 2383 | private: |
| 2384 | ::capnp::_::StructReader _reader; |
| 2385 | template <typename, ::capnp::Kind> |
| 2386 | friend struct ::capnp::ToDynamic_; |
| 2387 | template <typename, ::capnp::Kind> |
| 2388 | friend struct ::capnp::_::PointerHelpers; |
| 2389 | template <typename, ::capnp::Kind> |
| 2390 | friend struct ::capnp::List; |
| 2391 | friend class ::capnp::MessageBuilder; |
| 2392 | friend class ::capnp::Orphanage; |
| 2393 | }; |
| 2394 | |
| 2395 | class Declaration::Using::Builder { |
| 2396 | public: |
| 2397 | typedef Using Builds; |
| 2398 | |
| 2399 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2400 | // You can explicitly initialize to nullptr instead. |
| 2401 | inline Builder(decltype(nullptr)) {} |
| 2402 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2403 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2404 | inline Reader asReader() const { return *this; } |
| 2405 | |
| 2406 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2407 | #if !CAPNP_LITE |
| 2408 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2409 | #endif // !CAPNP_LITE |
| 2410 | |
| 2411 | inline bool hasTarget(); |
| 2412 | inline ::capnp::compiler::Expression::Builder getTarget(); |
| 2413 | inline void setTarget( ::capnp::compiler::Expression::Reader value); |
| 2414 | inline ::capnp::compiler::Expression::Builder initTarget(); |
| 2415 | inline void adoptTarget(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2416 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownTarget(); |
| 2417 | |
| 2418 | private: |
| 2419 | ::capnp::_::StructBuilder _builder; |
| 2420 | template <typename, ::capnp::Kind> |
| 2421 | friend struct ::capnp::ToDynamic_; |
| 2422 | friend class ::capnp::Orphanage; |
| 2423 | template <typename, ::capnp::Kind> |
| 2424 | friend struct ::capnp::_::PointerHelpers; |
| 2425 | }; |
| 2426 | |
| 2427 | #if !CAPNP_LITE |
| 2428 | class Declaration::Using::Pipeline { |
| 2429 | public: |
| 2430 | typedef Using Pipelines; |
| 2431 | |
| 2432 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2433 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2434 | : _typeless(kj::mv(typeless)) {} |
| 2435 | |
| 2436 | inline ::capnp::compiler::Expression::Pipeline getTarget(); |
| 2437 | private: |
| 2438 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2439 | friend class ::capnp::PipelineHook; |
| 2440 | template <typename, ::capnp::Kind> |
| 2441 | friend struct ::capnp::ToDynamic_; |
| 2442 | }; |
| 2443 | #endif // !CAPNP_LITE |
| 2444 | |
| 2445 | class Declaration::Const::Reader { |
| 2446 | public: |
| 2447 | typedef Const Reads; |
| 2448 | |
| 2449 | Reader() = default; |
| 2450 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2451 | |
| 2452 | inline ::capnp::MessageSize totalSize() const { |
| 2453 | return _reader.totalSize().asPublic(); |
| 2454 | } |
| 2455 | |
| 2456 | #if !CAPNP_LITE |
| 2457 | inline ::kj::StringTree toString() const { |
| 2458 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2459 | } |
| 2460 | #endif // !CAPNP_LITE |
| 2461 | |
| 2462 | inline bool hasType() const; |
| 2463 | inline ::capnp::compiler::Expression::Reader getType() const; |
| 2464 | |
| 2465 | inline bool hasValue() const; |
| 2466 | inline ::capnp::compiler::Expression::Reader getValue() const; |
| 2467 | |
| 2468 | private: |
| 2469 | ::capnp::_::StructReader _reader; |
| 2470 | template <typename, ::capnp::Kind> |
| 2471 | friend struct ::capnp::ToDynamic_; |
| 2472 | template <typename, ::capnp::Kind> |
| 2473 | friend struct ::capnp::_::PointerHelpers; |
| 2474 | template <typename, ::capnp::Kind> |
| 2475 | friend struct ::capnp::List; |
| 2476 | friend class ::capnp::MessageBuilder; |
| 2477 | friend class ::capnp::Orphanage; |
| 2478 | }; |
| 2479 | |
| 2480 | class Declaration::Const::Builder { |
| 2481 | public: |
| 2482 | typedef Const Builds; |
| 2483 | |
| 2484 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2485 | // You can explicitly initialize to nullptr instead. |
| 2486 | inline Builder(decltype(nullptr)) {} |
| 2487 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2488 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2489 | inline Reader asReader() const { return *this; } |
| 2490 | |
| 2491 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2492 | #if !CAPNP_LITE |
| 2493 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2494 | #endif // !CAPNP_LITE |
| 2495 | |
| 2496 | inline bool hasType(); |
| 2497 | inline ::capnp::compiler::Expression::Builder getType(); |
| 2498 | inline void setType( ::capnp::compiler::Expression::Reader value); |
| 2499 | inline ::capnp::compiler::Expression::Builder initType(); |
| 2500 | inline void adoptType(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2501 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownType(); |
| 2502 | |
| 2503 | inline bool hasValue(); |
| 2504 | inline ::capnp::compiler::Expression::Builder getValue(); |
| 2505 | inline void setValue( ::capnp::compiler::Expression::Reader value); |
| 2506 | inline ::capnp::compiler::Expression::Builder initValue(); |
| 2507 | inline void adoptValue(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2508 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownValue(); |
| 2509 | |
| 2510 | private: |
| 2511 | ::capnp::_::StructBuilder _builder; |
| 2512 | template <typename, ::capnp::Kind> |
| 2513 | friend struct ::capnp::ToDynamic_; |
| 2514 | friend class ::capnp::Orphanage; |
| 2515 | template <typename, ::capnp::Kind> |
| 2516 | friend struct ::capnp::_::PointerHelpers; |
| 2517 | }; |
| 2518 | |
| 2519 | #if !CAPNP_LITE |
| 2520 | class Declaration::Const::Pipeline { |
| 2521 | public: |
| 2522 | typedef Const Pipelines; |
| 2523 | |
| 2524 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2525 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2526 | : _typeless(kj::mv(typeless)) {} |
| 2527 | |
| 2528 | inline ::capnp::compiler::Expression::Pipeline getType(); |
| 2529 | inline ::capnp::compiler::Expression::Pipeline getValue(); |
| 2530 | private: |
| 2531 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2532 | friend class ::capnp::PipelineHook; |
| 2533 | template <typename, ::capnp::Kind> |
| 2534 | friend struct ::capnp::ToDynamic_; |
| 2535 | }; |
| 2536 | #endif // !CAPNP_LITE |
| 2537 | |
| 2538 | class Declaration::Field::Reader { |
| 2539 | public: |
| 2540 | typedef Field Reads; |
| 2541 | |
| 2542 | Reader() = default; |
| 2543 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2544 | |
| 2545 | inline ::capnp::MessageSize totalSize() const { |
| 2546 | return _reader.totalSize().asPublic(); |
| 2547 | } |
| 2548 | |
| 2549 | #if !CAPNP_LITE |
| 2550 | inline ::kj::StringTree toString() const { |
| 2551 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2552 | } |
| 2553 | #endif // !CAPNP_LITE |
| 2554 | |
| 2555 | inline bool hasType() const; |
| 2556 | inline ::capnp::compiler::Expression::Reader getType() const; |
| 2557 | |
| 2558 | inline typename DefaultValue::Reader getDefaultValue() const; |
| 2559 | |
| 2560 | private: |
| 2561 | ::capnp::_::StructReader _reader; |
| 2562 | template <typename, ::capnp::Kind> |
| 2563 | friend struct ::capnp::ToDynamic_; |
| 2564 | template <typename, ::capnp::Kind> |
| 2565 | friend struct ::capnp::_::PointerHelpers; |
| 2566 | template <typename, ::capnp::Kind> |
| 2567 | friend struct ::capnp::List; |
| 2568 | friend class ::capnp::MessageBuilder; |
| 2569 | friend class ::capnp::Orphanage; |
| 2570 | }; |
| 2571 | |
| 2572 | class Declaration::Field::Builder { |
| 2573 | public: |
| 2574 | typedef Field Builds; |
| 2575 | |
| 2576 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2577 | // You can explicitly initialize to nullptr instead. |
| 2578 | inline Builder(decltype(nullptr)) {} |
| 2579 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2580 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2581 | inline Reader asReader() const { return *this; } |
| 2582 | |
| 2583 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2584 | #if !CAPNP_LITE |
| 2585 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2586 | #endif // !CAPNP_LITE |
| 2587 | |
| 2588 | inline bool hasType(); |
| 2589 | inline ::capnp::compiler::Expression::Builder getType(); |
| 2590 | inline void setType( ::capnp::compiler::Expression::Reader value); |
| 2591 | inline ::capnp::compiler::Expression::Builder initType(); |
| 2592 | inline void adoptType(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2593 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownType(); |
| 2594 | |
| 2595 | inline typename DefaultValue::Builder getDefaultValue(); |
| 2596 | inline typename DefaultValue::Builder initDefaultValue(); |
| 2597 | |
| 2598 | private: |
| 2599 | ::capnp::_::StructBuilder _builder; |
| 2600 | template <typename, ::capnp::Kind> |
| 2601 | friend struct ::capnp::ToDynamic_; |
| 2602 | friend class ::capnp::Orphanage; |
| 2603 | template <typename, ::capnp::Kind> |
| 2604 | friend struct ::capnp::_::PointerHelpers; |
| 2605 | }; |
| 2606 | |
| 2607 | #if !CAPNP_LITE |
| 2608 | class Declaration::Field::Pipeline { |
| 2609 | public: |
| 2610 | typedef Field Pipelines; |
| 2611 | |
| 2612 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2613 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2614 | : _typeless(kj::mv(typeless)) {} |
| 2615 | |
| 2616 | inline ::capnp::compiler::Expression::Pipeline getType(); |
| 2617 | inline typename DefaultValue::Pipeline getDefaultValue(); |
| 2618 | private: |
| 2619 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2620 | friend class ::capnp::PipelineHook; |
| 2621 | template <typename, ::capnp::Kind> |
| 2622 | friend struct ::capnp::ToDynamic_; |
| 2623 | }; |
| 2624 | #endif // !CAPNP_LITE |
| 2625 | |
| 2626 | class Declaration::Field::DefaultValue::Reader { |
| 2627 | public: |
| 2628 | typedef DefaultValue Reads; |
| 2629 | |
| 2630 | Reader() = default; |
| 2631 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2632 | |
| 2633 | inline ::capnp::MessageSize totalSize() const { |
| 2634 | return _reader.totalSize().asPublic(); |
| 2635 | } |
| 2636 | |
| 2637 | #if !CAPNP_LITE |
| 2638 | inline ::kj::StringTree toString() const { |
| 2639 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2640 | } |
| 2641 | #endif // !CAPNP_LITE |
| 2642 | |
| 2643 | inline Which which() const; |
| 2644 | inline bool isNone() const; |
| 2645 | inline ::capnp::Void getNone() const; |
| 2646 | |
| 2647 | inline bool isValue() const; |
| 2648 | inline bool hasValue() const; |
| 2649 | inline ::capnp::compiler::Expression::Reader getValue() const; |
| 2650 | |
| 2651 | private: |
| 2652 | ::capnp::_::StructReader _reader; |
| 2653 | template <typename, ::capnp::Kind> |
| 2654 | friend struct ::capnp::ToDynamic_; |
| 2655 | template <typename, ::capnp::Kind> |
| 2656 | friend struct ::capnp::_::PointerHelpers; |
| 2657 | template <typename, ::capnp::Kind> |
| 2658 | friend struct ::capnp::List; |
| 2659 | friend class ::capnp::MessageBuilder; |
| 2660 | friend class ::capnp::Orphanage; |
| 2661 | }; |
| 2662 | |
| 2663 | class Declaration::Field::DefaultValue::Builder { |
| 2664 | public: |
| 2665 | typedef DefaultValue Builds; |
| 2666 | |
| 2667 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2668 | // You can explicitly initialize to nullptr instead. |
| 2669 | inline Builder(decltype(nullptr)) {} |
| 2670 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2671 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2672 | inline Reader asReader() const { return *this; } |
| 2673 | |
| 2674 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2675 | #if !CAPNP_LITE |
| 2676 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2677 | #endif // !CAPNP_LITE |
| 2678 | |
| 2679 | inline Which which(); |
| 2680 | inline bool isNone(); |
| 2681 | inline ::capnp::Void getNone(); |
| 2682 | inline void setNone( ::capnp::Void value = ::capnp::VOID); |
| 2683 | |
| 2684 | inline bool isValue(); |
| 2685 | inline bool hasValue(); |
| 2686 | inline ::capnp::compiler::Expression::Builder getValue(); |
| 2687 | inline void setValue( ::capnp::compiler::Expression::Reader value); |
| 2688 | inline ::capnp::compiler::Expression::Builder initValue(); |
| 2689 | inline void adoptValue(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 2690 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownValue(); |
| 2691 | |
| 2692 | private: |
| 2693 | ::capnp::_::StructBuilder _builder; |
| 2694 | template <typename, ::capnp::Kind> |
| 2695 | friend struct ::capnp::ToDynamic_; |
| 2696 | friend class ::capnp::Orphanage; |
| 2697 | template <typename, ::capnp::Kind> |
| 2698 | friend struct ::capnp::_::PointerHelpers; |
| 2699 | }; |
| 2700 | |
| 2701 | #if !CAPNP_LITE |
| 2702 | class Declaration::Field::DefaultValue::Pipeline { |
| 2703 | public: |
| 2704 | typedef DefaultValue Pipelines; |
| 2705 | |
| 2706 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2707 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2708 | : _typeless(kj::mv(typeless)) {} |
| 2709 | |
| 2710 | private: |
| 2711 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2712 | friend class ::capnp::PipelineHook; |
| 2713 | template <typename, ::capnp::Kind> |
| 2714 | friend struct ::capnp::ToDynamic_; |
| 2715 | }; |
| 2716 | #endif // !CAPNP_LITE |
| 2717 | |
| 2718 | class Declaration::Interface::Reader { |
| 2719 | public: |
| 2720 | typedef Interface Reads; |
| 2721 | |
| 2722 | Reader() = default; |
| 2723 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2724 | |
| 2725 | inline ::capnp::MessageSize totalSize() const { |
| 2726 | return _reader.totalSize().asPublic(); |
| 2727 | } |
| 2728 | |
| 2729 | #if !CAPNP_LITE |
| 2730 | inline ::kj::StringTree toString() const { |
| 2731 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2732 | } |
| 2733 | #endif // !CAPNP_LITE |
| 2734 | |
| 2735 | inline bool hasSuperclasses() const; |
| 2736 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader getSuperclasses() const; |
| 2737 | |
| 2738 | private: |
| 2739 | ::capnp::_::StructReader _reader; |
| 2740 | template <typename, ::capnp::Kind> |
| 2741 | friend struct ::capnp::ToDynamic_; |
| 2742 | template <typename, ::capnp::Kind> |
| 2743 | friend struct ::capnp::_::PointerHelpers; |
| 2744 | template <typename, ::capnp::Kind> |
| 2745 | friend struct ::capnp::List; |
| 2746 | friend class ::capnp::MessageBuilder; |
| 2747 | friend class ::capnp::Orphanage; |
| 2748 | }; |
| 2749 | |
| 2750 | class Declaration::Interface::Builder { |
| 2751 | public: |
| 2752 | typedef Interface Builds; |
| 2753 | |
| 2754 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2755 | // You can explicitly initialize to nullptr instead. |
| 2756 | inline Builder(decltype(nullptr)) {} |
| 2757 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2758 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2759 | inline Reader asReader() const { return *this; } |
| 2760 | |
| 2761 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2762 | #if !CAPNP_LITE |
| 2763 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2764 | #endif // !CAPNP_LITE |
| 2765 | |
| 2766 | inline bool hasSuperclasses(); |
| 2767 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder getSuperclasses(); |
| 2768 | inline void setSuperclasses( ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader value); |
| 2769 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder initSuperclasses(unsigned int size); |
| 2770 | inline void adoptSuperclasses(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>&& value); |
| 2771 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>> disownSuperclasses(); |
| 2772 | |
| 2773 | private: |
| 2774 | ::capnp::_::StructBuilder _builder; |
| 2775 | template <typename, ::capnp::Kind> |
| 2776 | friend struct ::capnp::ToDynamic_; |
| 2777 | friend class ::capnp::Orphanage; |
| 2778 | template <typename, ::capnp::Kind> |
| 2779 | friend struct ::capnp::_::PointerHelpers; |
| 2780 | }; |
| 2781 | |
| 2782 | #if !CAPNP_LITE |
| 2783 | class Declaration::Interface::Pipeline { |
| 2784 | public: |
| 2785 | typedef Interface Pipelines; |
| 2786 | |
| 2787 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2788 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2789 | : _typeless(kj::mv(typeless)) {} |
| 2790 | |
| 2791 | private: |
| 2792 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2793 | friend class ::capnp::PipelineHook; |
| 2794 | template <typename, ::capnp::Kind> |
| 2795 | friend struct ::capnp::ToDynamic_; |
| 2796 | }; |
| 2797 | #endif // !CAPNP_LITE |
| 2798 | |
| 2799 | class Declaration::Method::Reader { |
| 2800 | public: |
| 2801 | typedef Method Reads; |
| 2802 | |
| 2803 | Reader() = default; |
| 2804 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2805 | |
| 2806 | inline ::capnp::MessageSize totalSize() const { |
| 2807 | return _reader.totalSize().asPublic(); |
| 2808 | } |
| 2809 | |
| 2810 | #if !CAPNP_LITE |
| 2811 | inline ::kj::StringTree toString() const { |
| 2812 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2813 | } |
| 2814 | #endif // !CAPNP_LITE |
| 2815 | |
| 2816 | inline bool hasParams() const; |
| 2817 | inline ::capnp::compiler::Declaration::ParamList::Reader getParams() const; |
| 2818 | |
| 2819 | inline typename Results::Reader getResults() const; |
| 2820 | |
| 2821 | private: |
| 2822 | ::capnp::_::StructReader _reader; |
| 2823 | template <typename, ::capnp::Kind> |
| 2824 | friend struct ::capnp::ToDynamic_; |
| 2825 | template <typename, ::capnp::Kind> |
| 2826 | friend struct ::capnp::_::PointerHelpers; |
| 2827 | template <typename, ::capnp::Kind> |
| 2828 | friend struct ::capnp::List; |
| 2829 | friend class ::capnp::MessageBuilder; |
| 2830 | friend class ::capnp::Orphanage; |
| 2831 | }; |
| 2832 | |
| 2833 | class Declaration::Method::Builder { |
| 2834 | public: |
| 2835 | typedef Method Builds; |
| 2836 | |
| 2837 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2838 | // You can explicitly initialize to nullptr instead. |
| 2839 | inline Builder(decltype(nullptr)) {} |
| 2840 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2841 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2842 | inline Reader asReader() const { return *this; } |
| 2843 | |
| 2844 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2845 | #if !CAPNP_LITE |
| 2846 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2847 | #endif // !CAPNP_LITE |
| 2848 | |
| 2849 | inline bool hasParams(); |
| 2850 | inline ::capnp::compiler::Declaration::ParamList::Builder getParams(); |
| 2851 | inline void setParams( ::capnp::compiler::Declaration::ParamList::Reader value); |
| 2852 | inline ::capnp::compiler::Declaration::ParamList::Builder initParams(); |
| 2853 | inline void adoptParams(::capnp::Orphan< ::capnp::compiler::Declaration::ParamList>&& value); |
| 2854 | inline ::capnp::Orphan< ::capnp::compiler::Declaration::ParamList> disownParams(); |
| 2855 | |
| 2856 | inline typename Results::Builder getResults(); |
| 2857 | inline typename Results::Builder initResults(); |
| 2858 | |
| 2859 | private: |
| 2860 | ::capnp::_::StructBuilder _builder; |
| 2861 | template <typename, ::capnp::Kind> |
| 2862 | friend struct ::capnp::ToDynamic_; |
| 2863 | friend class ::capnp::Orphanage; |
| 2864 | template <typename, ::capnp::Kind> |
| 2865 | friend struct ::capnp::_::PointerHelpers; |
| 2866 | }; |
| 2867 | |
| 2868 | #if !CAPNP_LITE |
| 2869 | class Declaration::Method::Pipeline { |
| 2870 | public: |
| 2871 | typedef Method Pipelines; |
| 2872 | |
| 2873 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2874 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2875 | : _typeless(kj::mv(typeless)) {} |
| 2876 | |
| 2877 | inline ::capnp::compiler::Declaration::ParamList::Pipeline getParams(); |
| 2878 | inline typename Results::Pipeline getResults(); |
| 2879 | private: |
| 2880 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2881 | friend class ::capnp::PipelineHook; |
| 2882 | template <typename, ::capnp::Kind> |
| 2883 | friend struct ::capnp::ToDynamic_; |
| 2884 | }; |
| 2885 | #endif // !CAPNP_LITE |
| 2886 | |
| 2887 | class Declaration::Method::Results::Reader { |
| 2888 | public: |
| 2889 | typedef Results Reads; |
| 2890 | |
| 2891 | Reader() = default; |
| 2892 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2893 | |
| 2894 | inline ::capnp::MessageSize totalSize() const { |
| 2895 | return _reader.totalSize().asPublic(); |
| 2896 | } |
| 2897 | |
| 2898 | #if !CAPNP_LITE |
| 2899 | inline ::kj::StringTree toString() const { |
| 2900 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2901 | } |
| 2902 | #endif // !CAPNP_LITE |
| 2903 | |
| 2904 | inline Which which() const; |
| 2905 | inline bool isNone() const; |
| 2906 | inline ::capnp::Void getNone() const; |
| 2907 | |
| 2908 | inline bool isExplicit() const; |
| 2909 | inline bool hasExplicit() const; |
| 2910 | inline ::capnp::compiler::Declaration::ParamList::Reader getExplicit() const; |
| 2911 | |
| 2912 | private: |
| 2913 | ::capnp::_::StructReader _reader; |
| 2914 | template <typename, ::capnp::Kind> |
| 2915 | friend struct ::capnp::ToDynamic_; |
| 2916 | template <typename, ::capnp::Kind> |
| 2917 | friend struct ::capnp::_::PointerHelpers; |
| 2918 | template <typename, ::capnp::Kind> |
| 2919 | friend struct ::capnp::List; |
| 2920 | friend class ::capnp::MessageBuilder; |
| 2921 | friend class ::capnp::Orphanage; |
| 2922 | }; |
| 2923 | |
| 2924 | class Declaration::Method::Results::Builder { |
| 2925 | public: |
| 2926 | typedef Results Builds; |
| 2927 | |
| 2928 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 2929 | // You can explicitly initialize to nullptr instead. |
| 2930 | inline Builder(decltype(nullptr)) {} |
| 2931 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 2932 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 2933 | inline Reader asReader() const { return *this; } |
| 2934 | |
| 2935 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 2936 | #if !CAPNP_LITE |
| 2937 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 2938 | #endif // !CAPNP_LITE |
| 2939 | |
| 2940 | inline Which which(); |
| 2941 | inline bool isNone(); |
| 2942 | inline ::capnp::Void getNone(); |
| 2943 | inline void setNone( ::capnp::Void value = ::capnp::VOID); |
| 2944 | |
| 2945 | inline bool isExplicit(); |
| 2946 | inline bool hasExplicit(); |
| 2947 | inline ::capnp::compiler::Declaration::ParamList::Builder getExplicit(); |
| 2948 | inline void setExplicit( ::capnp::compiler::Declaration::ParamList::Reader value); |
| 2949 | inline ::capnp::compiler::Declaration::ParamList::Builder initExplicit(); |
| 2950 | inline void adoptExplicit(::capnp::Orphan< ::capnp::compiler::Declaration::ParamList>&& value); |
| 2951 | inline ::capnp::Orphan< ::capnp::compiler::Declaration::ParamList> disownExplicit(); |
| 2952 | |
| 2953 | private: |
| 2954 | ::capnp::_::StructBuilder _builder; |
| 2955 | template <typename, ::capnp::Kind> |
| 2956 | friend struct ::capnp::ToDynamic_; |
| 2957 | friend class ::capnp::Orphanage; |
| 2958 | template <typename, ::capnp::Kind> |
| 2959 | friend struct ::capnp::_::PointerHelpers; |
| 2960 | }; |
| 2961 | |
| 2962 | #if !CAPNP_LITE |
| 2963 | class Declaration::Method::Results::Pipeline { |
| 2964 | public: |
| 2965 | typedef Results Pipelines; |
| 2966 | |
| 2967 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 2968 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 2969 | : _typeless(kj::mv(typeless)) {} |
| 2970 | |
| 2971 | private: |
| 2972 | ::capnp::AnyPointer::Pipeline _typeless; |
| 2973 | friend class ::capnp::PipelineHook; |
| 2974 | template <typename, ::capnp::Kind> |
| 2975 | friend struct ::capnp::ToDynamic_; |
| 2976 | }; |
| 2977 | #endif // !CAPNP_LITE |
| 2978 | |
| 2979 | class Declaration::Annotation::Reader { |
| 2980 | public: |
| 2981 | typedef Annotation Reads; |
| 2982 | |
| 2983 | Reader() = default; |
| 2984 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 2985 | |
| 2986 | inline ::capnp::MessageSize totalSize() const { |
| 2987 | return _reader.totalSize().asPublic(); |
| 2988 | } |
| 2989 | |
| 2990 | #if !CAPNP_LITE |
| 2991 | inline ::kj::StringTree toString() const { |
| 2992 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 2993 | } |
| 2994 | #endif // !CAPNP_LITE |
| 2995 | |
| 2996 | inline bool hasType() const; |
| 2997 | inline ::capnp::compiler::Expression::Reader getType() const; |
| 2998 | |
| 2999 | inline bool getTargetsFile() const; |
| 3000 | |
| 3001 | inline bool getTargetsConst() const; |
| 3002 | |
| 3003 | inline bool getTargetsEnum() const; |
| 3004 | |
| 3005 | inline bool getTargetsEnumerant() const; |
| 3006 | |
| 3007 | inline bool getTargetsStruct() const; |
| 3008 | |
| 3009 | inline bool getTargetsField() const; |
| 3010 | |
| 3011 | inline bool getTargetsUnion() const; |
| 3012 | |
| 3013 | inline bool getTargetsGroup() const; |
| 3014 | |
| 3015 | inline bool getTargetsInterface() const; |
| 3016 | |
| 3017 | inline bool getTargetsMethod() const; |
| 3018 | |
| 3019 | inline bool getTargetsParam() const; |
| 3020 | |
| 3021 | inline bool getTargetsAnnotation() const; |
| 3022 | |
| 3023 | private: |
| 3024 | ::capnp::_::StructReader _reader; |
| 3025 | template <typename, ::capnp::Kind> |
| 3026 | friend struct ::capnp::ToDynamic_; |
| 3027 | template <typename, ::capnp::Kind> |
| 3028 | friend struct ::capnp::_::PointerHelpers; |
| 3029 | template <typename, ::capnp::Kind> |
| 3030 | friend struct ::capnp::List; |
| 3031 | friend class ::capnp::MessageBuilder; |
| 3032 | friend class ::capnp::Orphanage; |
| 3033 | }; |
| 3034 | |
| 3035 | class Declaration::Annotation::Builder { |
| 3036 | public: |
| 3037 | typedef Annotation Builds; |
| 3038 | |
| 3039 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 3040 | // You can explicitly initialize to nullptr instead. |
| 3041 | inline Builder(decltype(nullptr)) {} |
| 3042 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 3043 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 3044 | inline Reader asReader() const { return *this; } |
| 3045 | |
| 3046 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 3047 | #if !CAPNP_LITE |
| 3048 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 3049 | #endif // !CAPNP_LITE |
| 3050 | |
| 3051 | inline bool hasType(); |
| 3052 | inline ::capnp::compiler::Expression::Builder getType(); |
| 3053 | inline void setType( ::capnp::compiler::Expression::Reader value); |
| 3054 | inline ::capnp::compiler::Expression::Builder initType(); |
| 3055 | inline void adoptType(::capnp::Orphan< ::capnp::compiler::Expression>&& value); |
| 3056 | inline ::capnp::Orphan< ::capnp::compiler::Expression> disownType(); |
| 3057 | |
| 3058 | inline bool getTargetsFile(); |
| 3059 | inline void setTargetsFile(bool value); |
| 3060 | |
| 3061 | inline bool getTargetsConst(); |
| 3062 | inline void setTargetsConst(bool value); |
| 3063 | |
| 3064 | inline bool getTargetsEnum(); |
| 3065 | inline void setTargetsEnum(bool value); |
| 3066 | |
| 3067 | inline bool getTargetsEnumerant(); |
| 3068 | inline void setTargetsEnumerant(bool value); |
| 3069 | |
| 3070 | inline bool getTargetsStruct(); |
| 3071 | inline void setTargetsStruct(bool value); |
| 3072 | |
| 3073 | inline bool getTargetsField(); |
| 3074 | inline void setTargetsField(bool value); |
| 3075 | |
| 3076 | inline bool getTargetsUnion(); |
| 3077 | inline void setTargetsUnion(bool value); |
| 3078 | |
| 3079 | inline bool getTargetsGroup(); |
| 3080 | inline void setTargetsGroup(bool value); |
| 3081 | |
| 3082 | inline bool getTargetsInterface(); |
| 3083 | inline void setTargetsInterface(bool value); |
| 3084 | |
| 3085 | inline bool getTargetsMethod(); |
| 3086 | inline void setTargetsMethod(bool value); |
| 3087 | |
| 3088 | inline bool getTargetsParam(); |
| 3089 | inline void setTargetsParam(bool value); |
| 3090 | |
| 3091 | inline bool getTargetsAnnotation(); |
| 3092 | inline void setTargetsAnnotation(bool value); |
| 3093 | |
| 3094 | private: |
| 3095 | ::capnp::_::StructBuilder _builder; |
| 3096 | template <typename, ::capnp::Kind> |
| 3097 | friend struct ::capnp::ToDynamic_; |
| 3098 | friend class ::capnp::Orphanage; |
| 3099 | template <typename, ::capnp::Kind> |
| 3100 | friend struct ::capnp::_::PointerHelpers; |
| 3101 | }; |
| 3102 | |
| 3103 | #if !CAPNP_LITE |
| 3104 | class Declaration::Annotation::Pipeline { |
| 3105 | public: |
| 3106 | typedef Annotation Pipelines; |
| 3107 | |
| 3108 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 3109 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 3110 | : _typeless(kj::mv(typeless)) {} |
| 3111 | |
| 3112 | inline ::capnp::compiler::Expression::Pipeline getType(); |
| 3113 | private: |
| 3114 | ::capnp::AnyPointer::Pipeline _typeless; |
| 3115 | friend class ::capnp::PipelineHook; |
| 3116 | template <typename, ::capnp::Kind> |
| 3117 | friend struct ::capnp::ToDynamic_; |
| 3118 | }; |
| 3119 | #endif // !CAPNP_LITE |
| 3120 | |
| 3121 | class ParsedFile::Reader { |
| 3122 | public: |
| 3123 | typedef ParsedFile Reads; |
| 3124 | |
| 3125 | Reader() = default; |
| 3126 | inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
| 3127 | |
| 3128 | inline ::capnp::MessageSize totalSize() const { |
| 3129 | return _reader.totalSize().asPublic(); |
| 3130 | } |
| 3131 | |
| 3132 | #if !CAPNP_LITE |
| 3133 | inline ::kj::StringTree toString() const { |
| 3134 | return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); |
| 3135 | } |
| 3136 | #endif // !CAPNP_LITE |
| 3137 | |
| 3138 | inline bool hasRoot() const; |
| 3139 | inline ::capnp::compiler::Declaration::Reader getRoot() const; |
| 3140 | |
| 3141 | private: |
| 3142 | ::capnp::_::StructReader _reader; |
| 3143 | template <typename, ::capnp::Kind> |
| 3144 | friend struct ::capnp::ToDynamic_; |
| 3145 | template <typename, ::capnp::Kind> |
| 3146 | friend struct ::capnp::_::PointerHelpers; |
| 3147 | template <typename, ::capnp::Kind> |
| 3148 | friend struct ::capnp::List; |
| 3149 | friend class ::capnp::MessageBuilder; |
| 3150 | friend class ::capnp::Orphanage; |
| 3151 | }; |
| 3152 | |
| 3153 | class ParsedFile::Builder { |
| 3154 | public: |
| 3155 | typedef ParsedFile Builds; |
| 3156 | |
| 3157 | Builder() = delete; // Deleted to discourage incorrect usage. |
| 3158 | // You can explicitly initialize to nullptr instead. |
| 3159 | inline Builder(decltype(nullptr)) {} |
| 3160 | inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
| 3161 | inline operator Reader() const { return Reader(_builder.asReader()); } |
| 3162 | inline Reader asReader() const { return *this; } |
| 3163 | |
| 3164 | inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
| 3165 | #if !CAPNP_LITE |
| 3166 | inline ::kj::StringTree toString() const { return asReader().toString(); } |
| 3167 | #endif // !CAPNP_LITE |
| 3168 | |
| 3169 | inline bool hasRoot(); |
| 3170 | inline ::capnp::compiler::Declaration::Builder getRoot(); |
| 3171 | inline void setRoot( ::capnp::compiler::Declaration::Reader value); |
| 3172 | inline ::capnp::compiler::Declaration::Builder initRoot(); |
| 3173 | inline void adoptRoot(::capnp::Orphan< ::capnp::compiler::Declaration>&& value); |
| 3174 | inline ::capnp::Orphan< ::capnp::compiler::Declaration> disownRoot(); |
| 3175 | |
| 3176 | private: |
| 3177 | ::capnp::_::StructBuilder _builder; |
| 3178 | template <typename, ::capnp::Kind> |
| 3179 | friend struct ::capnp::ToDynamic_; |
| 3180 | friend class ::capnp::Orphanage; |
| 3181 | template <typename, ::capnp::Kind> |
| 3182 | friend struct ::capnp::_::PointerHelpers; |
| 3183 | }; |
| 3184 | |
| 3185 | #if !CAPNP_LITE |
| 3186 | class ParsedFile::Pipeline { |
| 3187 | public: |
| 3188 | typedef ParsedFile Pipelines; |
| 3189 | |
| 3190 | inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
| 3191 | inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
| 3192 | : _typeless(kj::mv(typeless)) {} |
| 3193 | |
| 3194 | inline ::capnp::compiler::Declaration::Pipeline getRoot(); |
| 3195 | private: |
| 3196 | ::capnp::AnyPointer::Pipeline _typeless; |
| 3197 | friend class ::capnp::PipelineHook; |
| 3198 | template <typename, ::capnp::Kind> |
| 3199 | friend struct ::capnp::ToDynamic_; |
| 3200 | }; |
| 3201 | #endif // !CAPNP_LITE |
| 3202 | |
| 3203 | // ======================================================================================= |
| 3204 | |
| 3205 | inline bool LocatedText::Reader::hasValue() const { |
| 3206 | return !_reader.getPointerField( |
| 3207 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3208 | } |
| 3209 | inline bool LocatedText::Builder::hasValue() { |
| 3210 | return !_builder.getPointerField( |
| 3211 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3212 | } |
| 3213 | inline ::capnp::Text::Reader LocatedText::Reader::getValue() const { |
| 3214 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
| 3215 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3216 | } |
| 3217 | inline ::capnp::Text::Builder LocatedText::Builder::getValue() { |
| 3218 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
| 3219 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3220 | } |
| 3221 | inline void LocatedText::Builder::setValue( ::capnp::Text::Reader value) { |
| 3222 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
| 3223 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3224 | } |
| 3225 | inline ::capnp::Text::Builder LocatedText::Builder::initValue(unsigned int size) { |
| 3226 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
| 3227 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
| 3228 | } |
| 3229 | inline void LocatedText::Builder::adoptValue( |
| 3230 | ::capnp::Orphan< ::capnp::Text>&& value) { |
| 3231 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
| 3232 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3233 | } |
| 3234 | inline ::capnp::Orphan< ::capnp::Text> LocatedText::Builder::disownValue() { |
| 3235 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
| 3236 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3237 | } |
| 3238 | |
| 3239 | inline ::uint32_t LocatedText::Reader::getStartByte() const { |
| 3240 | return _reader.getDataField< ::uint32_t>( |
| 3241 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3242 | } |
| 3243 | |
| 3244 | inline ::uint32_t LocatedText::Builder::getStartByte() { |
| 3245 | return _builder.getDataField< ::uint32_t>( |
| 3246 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3247 | } |
| 3248 | inline void LocatedText::Builder::setStartByte( ::uint32_t value) { |
| 3249 | _builder.setDataField< ::uint32_t>( |
| 3250 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 3251 | } |
| 3252 | |
| 3253 | inline ::uint32_t LocatedText::Reader::getEndByte() const { |
| 3254 | return _reader.getDataField< ::uint32_t>( |
| 3255 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3256 | } |
| 3257 | |
| 3258 | inline ::uint32_t LocatedText::Builder::getEndByte() { |
| 3259 | return _builder.getDataField< ::uint32_t>( |
| 3260 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3261 | } |
| 3262 | inline void LocatedText::Builder::setEndByte( ::uint32_t value) { |
| 3263 | _builder.setDataField< ::uint32_t>( |
| 3264 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 3265 | } |
| 3266 | |
| 3267 | inline ::uint64_t LocatedInteger::Reader::getValue() const { |
| 3268 | return _reader.getDataField< ::uint64_t>( |
| 3269 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3270 | } |
| 3271 | |
| 3272 | inline ::uint64_t LocatedInteger::Builder::getValue() { |
| 3273 | return _builder.getDataField< ::uint64_t>( |
| 3274 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3275 | } |
| 3276 | inline void LocatedInteger::Builder::setValue( ::uint64_t value) { |
| 3277 | _builder.setDataField< ::uint64_t>( |
| 3278 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 3279 | } |
| 3280 | |
| 3281 | inline ::uint32_t LocatedInteger::Reader::getStartByte() const { |
| 3282 | return _reader.getDataField< ::uint32_t>( |
| 3283 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 3284 | } |
| 3285 | |
| 3286 | inline ::uint32_t LocatedInteger::Builder::getStartByte() { |
| 3287 | return _builder.getDataField< ::uint32_t>( |
| 3288 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 3289 | } |
| 3290 | inline void LocatedInteger::Builder::setStartByte( ::uint32_t value) { |
| 3291 | _builder.setDataField< ::uint32_t>( |
| 3292 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
| 3293 | } |
| 3294 | |
| 3295 | inline ::uint32_t LocatedInteger::Reader::getEndByte() const { |
| 3296 | return _reader.getDataField< ::uint32_t>( |
| 3297 | ::capnp::bounded<3>() * ::capnp::ELEMENTS); |
| 3298 | } |
| 3299 | |
| 3300 | inline ::uint32_t LocatedInteger::Builder::getEndByte() { |
| 3301 | return _builder.getDataField< ::uint32_t>( |
| 3302 | ::capnp::bounded<3>() * ::capnp::ELEMENTS); |
| 3303 | } |
| 3304 | inline void LocatedInteger::Builder::setEndByte( ::uint32_t value) { |
| 3305 | _builder.setDataField< ::uint32_t>( |
| 3306 | ::capnp::bounded<3>() * ::capnp::ELEMENTS, value); |
| 3307 | } |
| 3308 | |
| 3309 | inline double LocatedFloat::Reader::getValue() const { |
| 3310 | return _reader.getDataField<double>( |
| 3311 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3312 | } |
| 3313 | |
| 3314 | inline double LocatedFloat::Builder::getValue() { |
| 3315 | return _builder.getDataField<double>( |
| 3316 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3317 | } |
| 3318 | inline void LocatedFloat::Builder::setValue(double value) { |
| 3319 | _builder.setDataField<double>( |
| 3320 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 3321 | } |
| 3322 | |
| 3323 | inline ::uint32_t LocatedFloat::Reader::getStartByte() const { |
| 3324 | return _reader.getDataField< ::uint32_t>( |
| 3325 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 3326 | } |
| 3327 | |
| 3328 | inline ::uint32_t LocatedFloat::Builder::getStartByte() { |
| 3329 | return _builder.getDataField< ::uint32_t>( |
| 3330 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 3331 | } |
| 3332 | inline void LocatedFloat::Builder::setStartByte( ::uint32_t value) { |
| 3333 | _builder.setDataField< ::uint32_t>( |
| 3334 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
| 3335 | } |
| 3336 | |
| 3337 | inline ::uint32_t LocatedFloat::Reader::getEndByte() const { |
| 3338 | return _reader.getDataField< ::uint32_t>( |
| 3339 | ::capnp::bounded<3>() * ::capnp::ELEMENTS); |
| 3340 | } |
| 3341 | |
| 3342 | inline ::uint32_t LocatedFloat::Builder::getEndByte() { |
| 3343 | return _builder.getDataField< ::uint32_t>( |
| 3344 | ::capnp::bounded<3>() * ::capnp::ELEMENTS); |
| 3345 | } |
| 3346 | inline void LocatedFloat::Builder::setEndByte( ::uint32_t value) { |
| 3347 | _builder.setDataField< ::uint32_t>( |
| 3348 | ::capnp::bounded<3>() * ::capnp::ELEMENTS, value); |
| 3349 | } |
| 3350 | |
| 3351 | inline ::capnp::compiler::Expression::Which Expression::Reader::which() const { |
| 3352 | return _reader.getDataField<Which>( |
| 3353 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3354 | } |
| 3355 | inline ::capnp::compiler::Expression::Which Expression::Builder::which() { |
| 3356 | return _builder.getDataField<Which>( |
| 3357 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3358 | } |
| 3359 | |
| 3360 | inline bool Expression::Reader::isUnknown() const { |
| 3361 | return which() == Expression::UNKNOWN; |
| 3362 | } |
| 3363 | inline bool Expression::Builder::isUnknown() { |
| 3364 | return which() == Expression::UNKNOWN; |
| 3365 | } |
| 3366 | inline ::capnp::Void Expression::Reader::getUnknown() const { |
| 3367 | KJ_IREQUIRE((which() == Expression::UNKNOWN), |
| 3368 | "Must check which() before get()ing a union member." ); |
| 3369 | return _reader.getDataField< ::capnp::Void>( |
| 3370 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3371 | } |
| 3372 | |
| 3373 | inline ::capnp::Void Expression::Builder::getUnknown() { |
| 3374 | KJ_IREQUIRE((which() == Expression::UNKNOWN), |
| 3375 | "Must check which() before get()ing a union member." ); |
| 3376 | return _builder.getDataField< ::capnp::Void>( |
| 3377 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3378 | } |
| 3379 | inline void Expression::Builder::setUnknown( ::capnp::Void value) { |
| 3380 | _builder.setDataField<Expression::Which>( |
| 3381 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::UNKNOWN); |
| 3382 | _builder.setDataField< ::capnp::Void>( |
| 3383 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 3384 | } |
| 3385 | |
| 3386 | inline bool Expression::Reader::isPositiveInt() const { |
| 3387 | return which() == Expression::POSITIVE_INT; |
| 3388 | } |
| 3389 | inline bool Expression::Builder::isPositiveInt() { |
| 3390 | return which() == Expression::POSITIVE_INT; |
| 3391 | } |
| 3392 | inline ::uint64_t Expression::Reader::getPositiveInt() const { |
| 3393 | KJ_IREQUIRE((which() == Expression::POSITIVE_INT), |
| 3394 | "Must check which() before get()ing a union member." ); |
| 3395 | return _reader.getDataField< ::uint64_t>( |
| 3396 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3397 | } |
| 3398 | |
| 3399 | inline ::uint64_t Expression::Builder::getPositiveInt() { |
| 3400 | KJ_IREQUIRE((which() == Expression::POSITIVE_INT), |
| 3401 | "Must check which() before get()ing a union member." ); |
| 3402 | return _builder.getDataField< ::uint64_t>( |
| 3403 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3404 | } |
| 3405 | inline void Expression::Builder::setPositiveInt( ::uint64_t value) { |
| 3406 | _builder.setDataField<Expression::Which>( |
| 3407 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::POSITIVE_INT); |
| 3408 | _builder.setDataField< ::uint64_t>( |
| 3409 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 3410 | } |
| 3411 | |
| 3412 | inline bool Expression::Reader::isNegativeInt() const { |
| 3413 | return which() == Expression::NEGATIVE_INT; |
| 3414 | } |
| 3415 | inline bool Expression::Builder::isNegativeInt() { |
| 3416 | return which() == Expression::NEGATIVE_INT; |
| 3417 | } |
| 3418 | inline ::uint64_t Expression::Reader::getNegativeInt() const { |
| 3419 | KJ_IREQUIRE((which() == Expression::NEGATIVE_INT), |
| 3420 | "Must check which() before get()ing a union member." ); |
| 3421 | return _reader.getDataField< ::uint64_t>( |
| 3422 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3423 | } |
| 3424 | |
| 3425 | inline ::uint64_t Expression::Builder::getNegativeInt() { |
| 3426 | KJ_IREQUIRE((which() == Expression::NEGATIVE_INT), |
| 3427 | "Must check which() before get()ing a union member." ); |
| 3428 | return _builder.getDataField< ::uint64_t>( |
| 3429 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3430 | } |
| 3431 | inline void Expression::Builder::setNegativeInt( ::uint64_t value) { |
| 3432 | _builder.setDataField<Expression::Which>( |
| 3433 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::NEGATIVE_INT); |
| 3434 | _builder.setDataField< ::uint64_t>( |
| 3435 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 3436 | } |
| 3437 | |
| 3438 | inline bool Expression::Reader::isFloat() const { |
| 3439 | return which() == Expression::FLOAT; |
| 3440 | } |
| 3441 | inline bool Expression::Builder::isFloat() { |
| 3442 | return which() == Expression::FLOAT; |
| 3443 | } |
| 3444 | inline double Expression::Reader::getFloat() const { |
| 3445 | KJ_IREQUIRE((which() == Expression::FLOAT), |
| 3446 | "Must check which() before get()ing a union member." ); |
| 3447 | return _reader.getDataField<double>( |
| 3448 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3449 | } |
| 3450 | |
| 3451 | inline double Expression::Builder::getFloat() { |
| 3452 | KJ_IREQUIRE((which() == Expression::FLOAT), |
| 3453 | "Must check which() before get()ing a union member." ); |
| 3454 | return _builder.getDataField<double>( |
| 3455 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3456 | } |
| 3457 | inline void Expression::Builder::setFloat(double value) { |
| 3458 | _builder.setDataField<Expression::Which>( |
| 3459 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::FLOAT); |
| 3460 | _builder.setDataField<double>( |
| 3461 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 3462 | } |
| 3463 | |
| 3464 | inline bool Expression::Reader::isString() const { |
| 3465 | return which() == Expression::STRING; |
| 3466 | } |
| 3467 | inline bool Expression::Builder::isString() { |
| 3468 | return which() == Expression::STRING; |
| 3469 | } |
| 3470 | inline bool Expression::Reader::hasString() const { |
| 3471 | if (which() != Expression::STRING) return false; |
| 3472 | return !_reader.getPointerField( |
| 3473 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3474 | } |
| 3475 | inline bool Expression::Builder::hasString() { |
| 3476 | if (which() != Expression::STRING) return false; |
| 3477 | return !_builder.getPointerField( |
| 3478 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3479 | } |
| 3480 | inline ::capnp::Text::Reader Expression::Reader::getString() const { |
| 3481 | KJ_IREQUIRE((which() == Expression::STRING), |
| 3482 | "Must check which() before get()ing a union member." ); |
| 3483 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
| 3484 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3485 | } |
| 3486 | inline ::capnp::Text::Builder Expression::Builder::getString() { |
| 3487 | KJ_IREQUIRE((which() == Expression::STRING), |
| 3488 | "Must check which() before get()ing a union member." ); |
| 3489 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
| 3490 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3491 | } |
| 3492 | inline void Expression::Builder::setString( ::capnp::Text::Reader value) { |
| 3493 | _builder.setDataField<Expression::Which>( |
| 3494 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::STRING); |
| 3495 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
| 3496 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3497 | } |
| 3498 | inline ::capnp::Text::Builder Expression::Builder::initString(unsigned int size) { |
| 3499 | _builder.setDataField<Expression::Which>( |
| 3500 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::STRING); |
| 3501 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
| 3502 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
| 3503 | } |
| 3504 | inline void Expression::Builder::adoptString( |
| 3505 | ::capnp::Orphan< ::capnp::Text>&& value) { |
| 3506 | _builder.setDataField<Expression::Which>( |
| 3507 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::STRING); |
| 3508 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
| 3509 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3510 | } |
| 3511 | inline ::capnp::Orphan< ::capnp::Text> Expression::Builder::disownString() { |
| 3512 | KJ_IREQUIRE((which() == Expression::STRING), |
| 3513 | "Must check which() before get()ing a union member." ); |
| 3514 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
| 3515 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3516 | } |
| 3517 | |
| 3518 | inline bool Expression::Reader::isRelativeName() const { |
| 3519 | return which() == Expression::RELATIVE_NAME; |
| 3520 | } |
| 3521 | inline bool Expression::Builder::isRelativeName() { |
| 3522 | return which() == Expression::RELATIVE_NAME; |
| 3523 | } |
| 3524 | inline bool Expression::Reader::hasRelativeName() const { |
| 3525 | if (which() != Expression::RELATIVE_NAME) return false; |
| 3526 | return !_reader.getPointerField( |
| 3527 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3528 | } |
| 3529 | inline bool Expression::Builder::hasRelativeName() { |
| 3530 | if (which() != Expression::RELATIVE_NAME) return false; |
| 3531 | return !_builder.getPointerField( |
| 3532 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3533 | } |
| 3534 | inline ::capnp::compiler::LocatedText::Reader Expression::Reader::getRelativeName() const { |
| 3535 | KJ_IREQUIRE((which() == Expression::RELATIVE_NAME), |
| 3536 | "Must check which() before get()ing a union member." ); |
| 3537 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 3538 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3539 | } |
| 3540 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::getRelativeName() { |
| 3541 | KJ_IREQUIRE((which() == Expression::RELATIVE_NAME), |
| 3542 | "Must check which() before get()ing a union member." ); |
| 3543 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 3544 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3545 | } |
| 3546 | inline void Expression::Builder::setRelativeName( ::capnp::compiler::LocatedText::Reader value) { |
| 3547 | _builder.setDataField<Expression::Which>( |
| 3548 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::RELATIVE_NAME); |
| 3549 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 3550 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3551 | } |
| 3552 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::initRelativeName() { |
| 3553 | _builder.setDataField<Expression::Which>( |
| 3554 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::RELATIVE_NAME); |
| 3555 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 3556 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3557 | } |
| 3558 | inline void Expression::Builder::adoptRelativeName( |
| 3559 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 3560 | _builder.setDataField<Expression::Which>( |
| 3561 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::RELATIVE_NAME); |
| 3562 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 3563 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3564 | } |
| 3565 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Expression::Builder::disownRelativeName() { |
| 3566 | KJ_IREQUIRE((which() == Expression::RELATIVE_NAME), |
| 3567 | "Must check which() before get()ing a union member." ); |
| 3568 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 3569 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3570 | } |
| 3571 | |
| 3572 | inline bool Expression::Reader::isList() const { |
| 3573 | return which() == Expression::LIST; |
| 3574 | } |
| 3575 | inline bool Expression::Builder::isList() { |
| 3576 | return which() == Expression::LIST; |
| 3577 | } |
| 3578 | inline bool Expression::Reader::hasList() const { |
| 3579 | if (which() != Expression::LIST) return false; |
| 3580 | return !_reader.getPointerField( |
| 3581 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3582 | } |
| 3583 | inline bool Expression::Builder::hasList() { |
| 3584 | if (which() != Expression::LIST) return false; |
| 3585 | return !_builder.getPointerField( |
| 3586 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3587 | } |
| 3588 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader Expression::Reader::getList() const { |
| 3589 | KJ_IREQUIRE((which() == Expression::LIST), |
| 3590 | "Must check which() before get()ing a union member." ); |
| 3591 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 3592 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3593 | } |
| 3594 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder Expression::Builder::getList() { |
| 3595 | KJ_IREQUIRE((which() == Expression::LIST), |
| 3596 | "Must check which() before get()ing a union member." ); |
| 3597 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 3598 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3599 | } |
| 3600 | inline void Expression::Builder::setList( ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader value) { |
| 3601 | _builder.setDataField<Expression::Which>( |
| 3602 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::LIST); |
| 3603 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 3604 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3605 | } |
| 3606 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder Expression::Builder::initList(unsigned int size) { |
| 3607 | _builder.setDataField<Expression::Which>( |
| 3608 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::LIST); |
| 3609 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 3610 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
| 3611 | } |
| 3612 | inline void Expression::Builder::adoptList( |
| 3613 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>&& value) { |
| 3614 | _builder.setDataField<Expression::Which>( |
| 3615 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::LIST); |
| 3616 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 3617 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3618 | } |
| 3619 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>> Expression::Builder::disownList() { |
| 3620 | KJ_IREQUIRE((which() == Expression::LIST), |
| 3621 | "Must check which() before get()ing a union member." ); |
| 3622 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 3623 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3624 | } |
| 3625 | |
| 3626 | inline bool Expression::Reader::isTuple() const { |
| 3627 | return which() == Expression::TUPLE; |
| 3628 | } |
| 3629 | inline bool Expression::Builder::isTuple() { |
| 3630 | return which() == Expression::TUPLE; |
| 3631 | } |
| 3632 | inline bool Expression::Reader::hasTuple() const { |
| 3633 | if (which() != Expression::TUPLE) return false; |
| 3634 | return !_reader.getPointerField( |
| 3635 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3636 | } |
| 3637 | inline bool Expression::Builder::hasTuple() { |
| 3638 | if (which() != Expression::TUPLE) return false; |
| 3639 | return !_builder.getPointerField( |
| 3640 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3641 | } |
| 3642 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader Expression::Reader::getTuple() const { |
| 3643 | KJ_IREQUIRE((which() == Expression::TUPLE), |
| 3644 | "Must check which() before get()ing a union member." ); |
| 3645 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 3646 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3647 | } |
| 3648 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder Expression::Builder::getTuple() { |
| 3649 | KJ_IREQUIRE((which() == Expression::TUPLE), |
| 3650 | "Must check which() before get()ing a union member." ); |
| 3651 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 3652 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3653 | } |
| 3654 | inline void Expression::Builder::setTuple( ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader value) { |
| 3655 | _builder.setDataField<Expression::Which>( |
| 3656 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::TUPLE); |
| 3657 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 3658 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3659 | } |
| 3660 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder Expression::Builder::initTuple(unsigned int size) { |
| 3661 | _builder.setDataField<Expression::Which>( |
| 3662 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::TUPLE); |
| 3663 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 3664 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
| 3665 | } |
| 3666 | inline void Expression::Builder::adoptTuple( |
| 3667 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>&& value) { |
| 3668 | _builder.setDataField<Expression::Which>( |
| 3669 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::TUPLE); |
| 3670 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 3671 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3672 | } |
| 3673 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>> Expression::Builder::disownTuple() { |
| 3674 | KJ_IREQUIRE((which() == Expression::TUPLE), |
| 3675 | "Must check which() before get()ing a union member." ); |
| 3676 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 3677 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3678 | } |
| 3679 | |
| 3680 | inline ::uint32_t Expression::Reader::getStartByte() const { |
| 3681 | return _reader.getDataField< ::uint32_t>( |
| 3682 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3683 | } |
| 3684 | |
| 3685 | inline ::uint32_t Expression::Builder::getStartByte() { |
| 3686 | return _builder.getDataField< ::uint32_t>( |
| 3687 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 3688 | } |
| 3689 | inline void Expression::Builder::setStartByte( ::uint32_t value) { |
| 3690 | _builder.setDataField< ::uint32_t>( |
| 3691 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 3692 | } |
| 3693 | |
| 3694 | inline ::uint32_t Expression::Reader::getEndByte() const { |
| 3695 | return _reader.getDataField< ::uint32_t>( |
| 3696 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
| 3697 | } |
| 3698 | |
| 3699 | inline ::uint32_t Expression::Builder::getEndByte() { |
| 3700 | return _builder.getDataField< ::uint32_t>( |
| 3701 | ::capnp::bounded<4>() * ::capnp::ELEMENTS); |
| 3702 | } |
| 3703 | inline void Expression::Builder::setEndByte( ::uint32_t value) { |
| 3704 | _builder.setDataField< ::uint32_t>( |
| 3705 | ::capnp::bounded<4>() * ::capnp::ELEMENTS, value); |
| 3706 | } |
| 3707 | |
| 3708 | inline bool Expression::Reader::isBinary() const { |
| 3709 | return which() == Expression::BINARY; |
| 3710 | } |
| 3711 | inline bool Expression::Builder::isBinary() { |
| 3712 | return which() == Expression::BINARY; |
| 3713 | } |
| 3714 | inline bool Expression::Reader::hasBinary() const { |
| 3715 | if (which() != Expression::BINARY) return false; |
| 3716 | return !_reader.getPointerField( |
| 3717 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3718 | } |
| 3719 | inline bool Expression::Builder::hasBinary() { |
| 3720 | if (which() != Expression::BINARY) return false; |
| 3721 | return !_builder.getPointerField( |
| 3722 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3723 | } |
| 3724 | inline ::capnp::Data::Reader Expression::Reader::getBinary() const { |
| 3725 | KJ_IREQUIRE((which() == Expression::BINARY), |
| 3726 | "Must check which() before get()ing a union member." ); |
| 3727 | return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField( |
| 3728 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3729 | } |
| 3730 | inline ::capnp::Data::Builder Expression::Builder::getBinary() { |
| 3731 | KJ_IREQUIRE((which() == Expression::BINARY), |
| 3732 | "Must check which() before get()ing a union member." ); |
| 3733 | return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField( |
| 3734 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3735 | } |
| 3736 | inline void Expression::Builder::setBinary( ::capnp::Data::Reader value) { |
| 3737 | _builder.setDataField<Expression::Which>( |
| 3738 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::BINARY); |
| 3739 | ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField( |
| 3740 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3741 | } |
| 3742 | inline ::capnp::Data::Builder Expression::Builder::initBinary(unsigned int size) { |
| 3743 | _builder.setDataField<Expression::Which>( |
| 3744 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::BINARY); |
| 3745 | return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField( |
| 3746 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
| 3747 | } |
| 3748 | inline void Expression::Builder::adoptBinary( |
| 3749 | ::capnp::Orphan< ::capnp::Data>&& value) { |
| 3750 | _builder.setDataField<Expression::Which>( |
| 3751 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::BINARY); |
| 3752 | ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField( |
| 3753 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3754 | } |
| 3755 | inline ::capnp::Orphan< ::capnp::Data> Expression::Builder::disownBinary() { |
| 3756 | KJ_IREQUIRE((which() == Expression::BINARY), |
| 3757 | "Must check which() before get()ing a union member." ); |
| 3758 | return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField( |
| 3759 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3760 | } |
| 3761 | |
| 3762 | inline bool Expression::Reader::isApplication() const { |
| 3763 | return which() == Expression::APPLICATION; |
| 3764 | } |
| 3765 | inline bool Expression::Builder::isApplication() { |
| 3766 | return which() == Expression::APPLICATION; |
| 3767 | } |
| 3768 | inline typename Expression::Application::Reader Expression::Reader::getApplication() const { |
| 3769 | KJ_IREQUIRE((which() == Expression::APPLICATION), |
| 3770 | "Must check which() before get()ing a union member." ); |
| 3771 | return typename Expression::Application::Reader(_reader); |
| 3772 | } |
| 3773 | inline typename Expression::Application::Builder Expression::Builder::getApplication() { |
| 3774 | KJ_IREQUIRE((which() == Expression::APPLICATION), |
| 3775 | "Must check which() before get()ing a union member." ); |
| 3776 | return typename Expression::Application::Builder(_builder); |
| 3777 | } |
| 3778 | inline typename Expression::Application::Builder Expression::Builder::initApplication() { |
| 3779 | _builder.setDataField<Expression::Which>( |
| 3780 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::APPLICATION); |
| 3781 | _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
| 3782 | _builder.getPointerField(::capnp::bounded<1>() * ::capnp::POINTERS).clear(); |
| 3783 | return typename Expression::Application::Builder(_builder); |
| 3784 | } |
| 3785 | inline bool Expression::Reader::isMember() const { |
| 3786 | return which() == Expression::MEMBER; |
| 3787 | } |
| 3788 | inline bool Expression::Builder::isMember() { |
| 3789 | return which() == Expression::MEMBER; |
| 3790 | } |
| 3791 | inline typename Expression::Member::Reader Expression::Reader::getMember() const { |
| 3792 | KJ_IREQUIRE((which() == Expression::MEMBER), |
| 3793 | "Must check which() before get()ing a union member." ); |
| 3794 | return typename Expression::Member::Reader(_reader); |
| 3795 | } |
| 3796 | inline typename Expression::Member::Builder Expression::Builder::getMember() { |
| 3797 | KJ_IREQUIRE((which() == Expression::MEMBER), |
| 3798 | "Must check which() before get()ing a union member." ); |
| 3799 | return typename Expression::Member::Builder(_builder); |
| 3800 | } |
| 3801 | inline typename Expression::Member::Builder Expression::Builder::initMember() { |
| 3802 | _builder.setDataField<Expression::Which>( |
| 3803 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::MEMBER); |
| 3804 | _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); |
| 3805 | _builder.getPointerField(::capnp::bounded<1>() * ::capnp::POINTERS).clear(); |
| 3806 | return typename Expression::Member::Builder(_builder); |
| 3807 | } |
| 3808 | inline bool Expression::Reader::isAbsoluteName() const { |
| 3809 | return which() == Expression::ABSOLUTE_NAME; |
| 3810 | } |
| 3811 | inline bool Expression::Builder::isAbsoluteName() { |
| 3812 | return which() == Expression::ABSOLUTE_NAME; |
| 3813 | } |
| 3814 | inline bool Expression::Reader::hasAbsoluteName() const { |
| 3815 | if (which() != Expression::ABSOLUTE_NAME) return false; |
| 3816 | return !_reader.getPointerField( |
| 3817 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3818 | } |
| 3819 | inline bool Expression::Builder::hasAbsoluteName() { |
| 3820 | if (which() != Expression::ABSOLUTE_NAME) return false; |
| 3821 | return !_builder.getPointerField( |
| 3822 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3823 | } |
| 3824 | inline ::capnp::compiler::LocatedText::Reader Expression::Reader::getAbsoluteName() const { |
| 3825 | KJ_IREQUIRE((which() == Expression::ABSOLUTE_NAME), |
| 3826 | "Must check which() before get()ing a union member." ); |
| 3827 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 3828 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3829 | } |
| 3830 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::getAbsoluteName() { |
| 3831 | KJ_IREQUIRE((which() == Expression::ABSOLUTE_NAME), |
| 3832 | "Must check which() before get()ing a union member." ); |
| 3833 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 3834 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3835 | } |
| 3836 | inline void Expression::Builder::setAbsoluteName( ::capnp::compiler::LocatedText::Reader value) { |
| 3837 | _builder.setDataField<Expression::Which>( |
| 3838 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::ABSOLUTE_NAME); |
| 3839 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 3840 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3841 | } |
| 3842 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::initAbsoluteName() { |
| 3843 | _builder.setDataField<Expression::Which>( |
| 3844 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::ABSOLUTE_NAME); |
| 3845 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 3846 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3847 | } |
| 3848 | inline void Expression::Builder::adoptAbsoluteName( |
| 3849 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 3850 | _builder.setDataField<Expression::Which>( |
| 3851 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::ABSOLUTE_NAME); |
| 3852 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 3853 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3854 | } |
| 3855 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Expression::Builder::disownAbsoluteName() { |
| 3856 | KJ_IREQUIRE((which() == Expression::ABSOLUTE_NAME), |
| 3857 | "Must check which() before get()ing a union member." ); |
| 3858 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 3859 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3860 | } |
| 3861 | |
| 3862 | inline bool Expression::Reader::isImport() const { |
| 3863 | return which() == Expression::IMPORT; |
| 3864 | } |
| 3865 | inline bool Expression::Builder::isImport() { |
| 3866 | return which() == Expression::IMPORT; |
| 3867 | } |
| 3868 | inline bool Expression::Reader::hasImport() const { |
| 3869 | if (which() != Expression::IMPORT) return false; |
| 3870 | return !_reader.getPointerField( |
| 3871 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3872 | } |
| 3873 | inline bool Expression::Builder::hasImport() { |
| 3874 | if (which() != Expression::IMPORT) return false; |
| 3875 | return !_builder.getPointerField( |
| 3876 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3877 | } |
| 3878 | inline ::capnp::compiler::LocatedText::Reader Expression::Reader::getImport() const { |
| 3879 | KJ_IREQUIRE((which() == Expression::IMPORT), |
| 3880 | "Must check which() before get()ing a union member." ); |
| 3881 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 3882 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3883 | } |
| 3884 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::getImport() { |
| 3885 | KJ_IREQUIRE((which() == Expression::IMPORT), |
| 3886 | "Must check which() before get()ing a union member." ); |
| 3887 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 3888 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3889 | } |
| 3890 | inline void Expression::Builder::setImport( ::capnp::compiler::LocatedText::Reader value) { |
| 3891 | _builder.setDataField<Expression::Which>( |
| 3892 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::IMPORT); |
| 3893 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 3894 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3895 | } |
| 3896 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::initImport() { |
| 3897 | _builder.setDataField<Expression::Which>( |
| 3898 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::IMPORT); |
| 3899 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 3900 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3901 | } |
| 3902 | inline void Expression::Builder::adoptImport( |
| 3903 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 3904 | _builder.setDataField<Expression::Which>( |
| 3905 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::IMPORT); |
| 3906 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 3907 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3908 | } |
| 3909 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Expression::Builder::disownImport() { |
| 3910 | KJ_IREQUIRE((which() == Expression::IMPORT), |
| 3911 | "Must check which() before get()ing a union member." ); |
| 3912 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 3913 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3914 | } |
| 3915 | |
| 3916 | inline bool Expression::Reader::isEmbed() const { |
| 3917 | return which() == Expression::EMBED; |
| 3918 | } |
| 3919 | inline bool Expression::Builder::isEmbed() { |
| 3920 | return which() == Expression::EMBED; |
| 3921 | } |
| 3922 | inline bool Expression::Reader::hasEmbed() const { |
| 3923 | if (which() != Expression::EMBED) return false; |
| 3924 | return !_reader.getPointerField( |
| 3925 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3926 | } |
| 3927 | inline bool Expression::Builder::hasEmbed() { |
| 3928 | if (which() != Expression::EMBED) return false; |
| 3929 | return !_builder.getPointerField( |
| 3930 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 3931 | } |
| 3932 | inline ::capnp::compiler::LocatedText::Reader Expression::Reader::getEmbed() const { |
| 3933 | KJ_IREQUIRE((which() == Expression::EMBED), |
| 3934 | "Must check which() before get()ing a union member." ); |
| 3935 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 3936 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3937 | } |
| 3938 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::getEmbed() { |
| 3939 | KJ_IREQUIRE((which() == Expression::EMBED), |
| 3940 | "Must check which() before get()ing a union member." ); |
| 3941 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 3942 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3943 | } |
| 3944 | inline void Expression::Builder::setEmbed( ::capnp::compiler::LocatedText::Reader value) { |
| 3945 | _builder.setDataField<Expression::Which>( |
| 3946 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::EMBED); |
| 3947 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 3948 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 3949 | } |
| 3950 | inline ::capnp::compiler::LocatedText::Builder Expression::Builder::initEmbed() { |
| 3951 | _builder.setDataField<Expression::Which>( |
| 3952 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::EMBED); |
| 3953 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 3954 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3955 | } |
| 3956 | inline void Expression::Builder::adoptEmbed( |
| 3957 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 3958 | _builder.setDataField<Expression::Which>( |
| 3959 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::EMBED); |
| 3960 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 3961 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 3962 | } |
| 3963 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Expression::Builder::disownEmbed() { |
| 3964 | KJ_IREQUIRE((which() == Expression::EMBED), |
| 3965 | "Must check which() before get()ing a union member." ); |
| 3966 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 3967 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 3968 | } |
| 3969 | |
| 3970 | inline ::capnp::compiler::Expression::Param::Which Expression::Param::Reader::which() const { |
| 3971 | return _reader.getDataField<Which>( |
| 3972 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3973 | } |
| 3974 | inline ::capnp::compiler::Expression::Param::Which Expression::Param::Builder::which() { |
| 3975 | return _builder.getDataField<Which>( |
| 3976 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3977 | } |
| 3978 | |
| 3979 | inline bool Expression::Param::Reader::isUnnamed() const { |
| 3980 | return which() == Expression::Param::UNNAMED; |
| 3981 | } |
| 3982 | inline bool Expression::Param::Builder::isUnnamed() { |
| 3983 | return which() == Expression::Param::UNNAMED; |
| 3984 | } |
| 3985 | inline ::capnp::Void Expression::Param::Reader::getUnnamed() const { |
| 3986 | KJ_IREQUIRE((which() == Expression::Param::UNNAMED), |
| 3987 | "Must check which() before get()ing a union member." ); |
| 3988 | return _reader.getDataField< ::capnp::Void>( |
| 3989 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3990 | } |
| 3991 | |
| 3992 | inline ::capnp::Void Expression::Param::Builder::getUnnamed() { |
| 3993 | KJ_IREQUIRE((which() == Expression::Param::UNNAMED), |
| 3994 | "Must check which() before get()ing a union member." ); |
| 3995 | return _builder.getDataField< ::capnp::Void>( |
| 3996 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 3997 | } |
| 3998 | inline void Expression::Param::Builder::setUnnamed( ::capnp::Void value) { |
| 3999 | _builder.setDataField<Expression::Param::Which>( |
| 4000 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::Param::UNNAMED); |
| 4001 | _builder.setDataField< ::capnp::Void>( |
| 4002 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4003 | } |
| 4004 | |
| 4005 | inline bool Expression::Param::Reader::isNamed() const { |
| 4006 | return which() == Expression::Param::NAMED; |
| 4007 | } |
| 4008 | inline bool Expression::Param::Builder::isNamed() { |
| 4009 | return which() == Expression::Param::NAMED; |
| 4010 | } |
| 4011 | inline bool Expression::Param::Reader::hasNamed() const { |
| 4012 | if (which() != Expression::Param::NAMED) return false; |
| 4013 | return !_reader.getPointerField( |
| 4014 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4015 | } |
| 4016 | inline bool Expression::Param::Builder::hasNamed() { |
| 4017 | if (which() != Expression::Param::NAMED) return false; |
| 4018 | return !_builder.getPointerField( |
| 4019 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4020 | } |
| 4021 | inline ::capnp::compiler::LocatedText::Reader Expression::Param::Reader::getNamed() const { |
| 4022 | KJ_IREQUIRE((which() == Expression::Param::NAMED), |
| 4023 | "Must check which() before get()ing a union member." ); |
| 4024 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 4025 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4026 | } |
| 4027 | inline ::capnp::compiler::LocatedText::Builder Expression::Param::Builder::getNamed() { |
| 4028 | KJ_IREQUIRE((which() == Expression::Param::NAMED), |
| 4029 | "Must check which() before get()ing a union member." ); |
| 4030 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 4031 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4032 | } |
| 4033 | inline void Expression::Param::Builder::setNamed( ::capnp::compiler::LocatedText::Reader value) { |
| 4034 | _builder.setDataField<Expression::Param::Which>( |
| 4035 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::Param::NAMED); |
| 4036 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 4037 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 4038 | } |
| 4039 | inline ::capnp::compiler::LocatedText::Builder Expression::Param::Builder::initNamed() { |
| 4040 | _builder.setDataField<Expression::Param::Which>( |
| 4041 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::Param::NAMED); |
| 4042 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 4043 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4044 | } |
| 4045 | inline void Expression::Param::Builder::adoptNamed( |
| 4046 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 4047 | _builder.setDataField<Expression::Param::Which>( |
| 4048 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Expression::Param::NAMED); |
| 4049 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 4050 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 4051 | } |
| 4052 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Expression::Param::Builder::disownNamed() { |
| 4053 | KJ_IREQUIRE((which() == Expression::Param::NAMED), |
| 4054 | "Must check which() before get()ing a union member." ); |
| 4055 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 4056 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4057 | } |
| 4058 | |
| 4059 | inline bool Expression::Param::Reader::hasValue() const { |
| 4060 | return !_reader.getPointerField( |
| 4061 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 4062 | } |
| 4063 | inline bool Expression::Param::Builder::hasValue() { |
| 4064 | return !_builder.getPointerField( |
| 4065 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 4066 | } |
| 4067 | inline ::capnp::compiler::Expression::Reader Expression::Param::Reader::getValue() const { |
| 4068 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 4069 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4070 | } |
| 4071 | inline ::capnp::compiler::Expression::Builder Expression::Param::Builder::getValue() { |
| 4072 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 4073 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4074 | } |
| 4075 | #if !CAPNP_LITE |
| 4076 | inline ::capnp::compiler::Expression::Pipeline Expression::Param::Pipeline::getValue() { |
| 4077 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(1)); |
| 4078 | } |
| 4079 | #endif // !CAPNP_LITE |
| 4080 | inline void Expression::Param::Builder::setValue( ::capnp::compiler::Expression::Reader value) { |
| 4081 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 4082 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
| 4083 | } |
| 4084 | inline ::capnp::compiler::Expression::Builder Expression::Param::Builder::initValue() { |
| 4085 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 4086 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4087 | } |
| 4088 | inline void Expression::Param::Builder::adoptValue( |
| 4089 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 4090 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 4091 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
| 4092 | } |
| 4093 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Expression::Param::Builder::disownValue() { |
| 4094 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 4095 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4096 | } |
| 4097 | |
| 4098 | inline bool Expression::Application::Reader::hasFunction() const { |
| 4099 | return !_reader.getPointerField( |
| 4100 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4101 | } |
| 4102 | inline bool Expression::Application::Builder::hasFunction() { |
| 4103 | return !_builder.getPointerField( |
| 4104 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4105 | } |
| 4106 | inline ::capnp::compiler::Expression::Reader Expression::Application::Reader::getFunction() const { |
| 4107 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 4108 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4109 | } |
| 4110 | inline ::capnp::compiler::Expression::Builder Expression::Application::Builder::getFunction() { |
| 4111 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 4112 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4113 | } |
| 4114 | #if !CAPNP_LITE |
| 4115 | inline ::capnp::compiler::Expression::Pipeline Expression::Application::Pipeline::getFunction() { |
| 4116 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(0)); |
| 4117 | } |
| 4118 | #endif // !CAPNP_LITE |
| 4119 | inline void Expression::Application::Builder::setFunction( ::capnp::compiler::Expression::Reader value) { |
| 4120 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 4121 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 4122 | } |
| 4123 | inline ::capnp::compiler::Expression::Builder Expression::Application::Builder::initFunction() { |
| 4124 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 4125 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4126 | } |
| 4127 | inline void Expression::Application::Builder::adoptFunction( |
| 4128 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 4129 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 4130 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 4131 | } |
| 4132 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Expression::Application::Builder::disownFunction() { |
| 4133 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 4134 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4135 | } |
| 4136 | |
| 4137 | inline bool Expression::Application::Reader::hasParams() const { |
| 4138 | return !_reader.getPointerField( |
| 4139 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 4140 | } |
| 4141 | inline bool Expression::Application::Builder::hasParams() { |
| 4142 | return !_builder.getPointerField( |
| 4143 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 4144 | } |
| 4145 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader Expression::Application::Reader::getParams() const { |
| 4146 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 4147 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4148 | } |
| 4149 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder Expression::Application::Builder::getParams() { |
| 4150 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 4151 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4152 | } |
| 4153 | inline void Expression::Application::Builder::setParams( ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Reader value) { |
| 4154 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 4155 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
| 4156 | } |
| 4157 | inline ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>::Builder Expression::Application::Builder::initParams(unsigned int size) { |
| 4158 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 4159 | ::capnp::bounded<1>() * ::capnp::POINTERS), size); |
| 4160 | } |
| 4161 | inline void Expression::Application::Builder::adoptParams( |
| 4162 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>&& value) { |
| 4163 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 4164 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
| 4165 | } |
| 4166 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>> Expression::Application::Builder::disownParams() { |
| 4167 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression::Param, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 4168 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4169 | } |
| 4170 | |
| 4171 | inline bool Expression::Member::Reader::hasParent() const { |
| 4172 | return !_reader.getPointerField( |
| 4173 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4174 | } |
| 4175 | inline bool Expression::Member::Builder::hasParent() { |
| 4176 | return !_builder.getPointerField( |
| 4177 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4178 | } |
| 4179 | inline ::capnp::compiler::Expression::Reader Expression::Member::Reader::getParent() const { |
| 4180 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 4181 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4182 | } |
| 4183 | inline ::capnp::compiler::Expression::Builder Expression::Member::Builder::getParent() { |
| 4184 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 4185 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4186 | } |
| 4187 | #if !CAPNP_LITE |
| 4188 | inline ::capnp::compiler::Expression::Pipeline Expression::Member::Pipeline::getParent() { |
| 4189 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(0)); |
| 4190 | } |
| 4191 | #endif // !CAPNP_LITE |
| 4192 | inline void Expression::Member::Builder::setParent( ::capnp::compiler::Expression::Reader value) { |
| 4193 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 4194 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 4195 | } |
| 4196 | inline ::capnp::compiler::Expression::Builder Expression::Member::Builder::initParent() { |
| 4197 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 4198 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4199 | } |
| 4200 | inline void Expression::Member::Builder::adoptParent( |
| 4201 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 4202 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 4203 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 4204 | } |
| 4205 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Expression::Member::Builder::disownParent() { |
| 4206 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 4207 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4208 | } |
| 4209 | |
| 4210 | inline bool Expression::Member::Reader::hasName() const { |
| 4211 | return !_reader.getPointerField( |
| 4212 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 4213 | } |
| 4214 | inline bool Expression::Member::Builder::hasName() { |
| 4215 | return !_builder.getPointerField( |
| 4216 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 4217 | } |
| 4218 | inline ::capnp::compiler::LocatedText::Reader Expression::Member::Reader::getName() const { |
| 4219 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 4220 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4221 | } |
| 4222 | inline ::capnp::compiler::LocatedText::Builder Expression::Member::Builder::getName() { |
| 4223 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 4224 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4225 | } |
| 4226 | #if !CAPNP_LITE |
| 4227 | inline ::capnp::compiler::LocatedText::Pipeline Expression::Member::Pipeline::getName() { |
| 4228 | return ::capnp::compiler::LocatedText::Pipeline(_typeless.getPointerField(1)); |
| 4229 | } |
| 4230 | #endif // !CAPNP_LITE |
| 4231 | inline void Expression::Member::Builder::setName( ::capnp::compiler::LocatedText::Reader value) { |
| 4232 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 4233 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
| 4234 | } |
| 4235 | inline ::capnp::compiler::LocatedText::Builder Expression::Member::Builder::initName() { |
| 4236 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 4237 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4238 | } |
| 4239 | inline void Expression::Member::Builder::adoptName( |
| 4240 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 4241 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 4242 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
| 4243 | } |
| 4244 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Expression::Member::Builder::disownName() { |
| 4245 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 4246 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 4247 | } |
| 4248 | |
| 4249 | inline ::capnp::compiler::Declaration::Which Declaration::Reader::which() const { |
| 4250 | return _reader.getDataField<Which>( |
| 4251 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 4252 | } |
| 4253 | inline ::capnp::compiler::Declaration::Which Declaration::Builder::which() { |
| 4254 | return _builder.getDataField<Which>( |
| 4255 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 4256 | } |
| 4257 | |
| 4258 | inline bool Declaration::Reader::hasName() const { |
| 4259 | return !_reader.getPointerField( |
| 4260 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4261 | } |
| 4262 | inline bool Declaration::Builder::hasName() { |
| 4263 | return !_builder.getPointerField( |
| 4264 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 4265 | } |
| 4266 | inline ::capnp::compiler::LocatedText::Reader Declaration::Reader::getName() const { |
| 4267 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 4268 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4269 | } |
| 4270 | inline ::capnp::compiler::LocatedText::Builder Declaration::Builder::getName() { |
| 4271 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 4272 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4273 | } |
| 4274 | #if !CAPNP_LITE |
| 4275 | inline ::capnp::compiler::LocatedText::Pipeline Declaration::Pipeline::getName() { |
| 4276 | return ::capnp::compiler::LocatedText::Pipeline(_typeless.getPointerField(0)); |
| 4277 | } |
| 4278 | #endif // !CAPNP_LITE |
| 4279 | inline void Declaration::Builder::setName( ::capnp::compiler::LocatedText::Reader value) { |
| 4280 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 4281 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 4282 | } |
| 4283 | inline ::capnp::compiler::LocatedText::Builder Declaration::Builder::initName() { |
| 4284 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 4285 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4286 | } |
| 4287 | inline void Declaration::Builder::adoptName( |
| 4288 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 4289 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 4290 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 4291 | } |
| 4292 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Declaration::Builder::disownName() { |
| 4293 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 4294 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 4295 | } |
| 4296 | |
| 4297 | inline typename Declaration::Id::Reader Declaration::Reader::getId() const { |
| 4298 | return typename Declaration::Id::Reader(_reader); |
| 4299 | } |
| 4300 | inline typename Declaration::Id::Builder Declaration::Builder::getId() { |
| 4301 | return typename Declaration::Id::Builder(_builder); |
| 4302 | } |
| 4303 | #if !CAPNP_LITE |
| 4304 | inline typename Declaration::Id::Pipeline Declaration::Pipeline::getId() { |
| 4305 | return typename Declaration::Id::Pipeline(_typeless.noop()); |
| 4306 | } |
| 4307 | #endif // !CAPNP_LITE |
| 4308 | inline typename Declaration::Id::Builder Declaration::Builder::initId() { |
| 4309 | _builder.setDataField< ::uint16_t>(::capnp::bounded<0>() * ::capnp::ELEMENTS, 0); |
| 4310 | _builder.getPointerField(::capnp::bounded<1>() * ::capnp::POINTERS).clear(); |
| 4311 | return typename Declaration::Id::Builder(_builder); |
| 4312 | } |
| 4313 | inline bool Declaration::Reader::hasNestedDecls() const { |
| 4314 | return !_reader.getPointerField( |
| 4315 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
| 4316 | } |
| 4317 | inline bool Declaration::Builder::hasNestedDecls() { |
| 4318 | return !_builder.getPointerField( |
| 4319 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
| 4320 | } |
| 4321 | inline ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Reader Declaration::Reader::getNestedDecls() const { |
| 4322 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 4323 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
| 4324 | } |
| 4325 | inline ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Builder Declaration::Builder::getNestedDecls() { |
| 4326 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 4327 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
| 4328 | } |
| 4329 | inline void Declaration::Builder::setNestedDecls( ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Reader value) { |
| 4330 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 4331 | ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
| 4332 | } |
| 4333 | inline ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>::Builder Declaration::Builder::initNestedDecls(unsigned int size) { |
| 4334 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 4335 | ::capnp::bounded<2>() * ::capnp::POINTERS), size); |
| 4336 | } |
| 4337 | inline void Declaration::Builder::adoptNestedDecls( |
| 4338 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>&& value) { |
| 4339 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 4340 | ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
| 4341 | } |
| 4342 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>> Declaration::Builder::disownNestedDecls() { |
| 4343 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 4344 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
| 4345 | } |
| 4346 | |
| 4347 | inline bool Declaration::Reader::hasAnnotations() const { |
| 4348 | return !_reader.getPointerField( |
| 4349 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
| 4350 | } |
| 4351 | inline bool Declaration::Builder::hasAnnotations() { |
| 4352 | return !_builder.getPointerField( |
| 4353 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
| 4354 | } |
| 4355 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader Declaration::Reader::getAnnotations() const { |
| 4356 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 4357 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
| 4358 | } |
| 4359 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder Declaration::Builder::getAnnotations() { |
| 4360 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 4361 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
| 4362 | } |
| 4363 | inline void Declaration::Builder::setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader value) { |
| 4364 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 4365 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
| 4366 | } |
| 4367 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder Declaration::Builder::initAnnotations(unsigned int size) { |
| 4368 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 4369 | ::capnp::bounded<3>() * ::capnp::POINTERS), size); |
| 4370 | } |
| 4371 | inline void Declaration::Builder::adoptAnnotations( |
| 4372 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>&& value) { |
| 4373 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 4374 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
| 4375 | } |
| 4376 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>> Declaration::Builder::disownAnnotations() { |
| 4377 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 4378 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
| 4379 | } |
| 4380 | |
| 4381 | inline ::uint32_t Declaration::Reader::getStartByte() const { |
| 4382 | return _reader.getDataField< ::uint32_t>( |
| 4383 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 4384 | } |
| 4385 | |
| 4386 | inline ::uint32_t Declaration::Builder::getStartByte() { |
| 4387 | return _builder.getDataField< ::uint32_t>( |
| 4388 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 4389 | } |
| 4390 | inline void Declaration::Builder::setStartByte( ::uint32_t value) { |
| 4391 | _builder.setDataField< ::uint32_t>( |
| 4392 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 4393 | } |
| 4394 | |
| 4395 | inline ::uint32_t Declaration::Reader::getEndByte() const { |
| 4396 | return _reader.getDataField< ::uint32_t>( |
| 4397 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 4398 | } |
| 4399 | |
| 4400 | inline ::uint32_t Declaration::Builder::getEndByte() { |
| 4401 | return _builder.getDataField< ::uint32_t>( |
| 4402 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 4403 | } |
| 4404 | inline void Declaration::Builder::setEndByte( ::uint32_t value) { |
| 4405 | _builder.setDataField< ::uint32_t>( |
| 4406 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
| 4407 | } |
| 4408 | |
| 4409 | inline bool Declaration::Reader::() const { |
| 4410 | return !_reader.getPointerField( |
| 4411 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
| 4412 | } |
| 4413 | inline bool Declaration::Builder::() { |
| 4414 | return !_builder.getPointerField( |
| 4415 | ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); |
| 4416 | } |
| 4417 | inline ::capnp::Text::Reader Declaration::Reader::() const { |
| 4418 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
| 4419 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
| 4420 | } |
| 4421 | inline ::capnp::Text::Builder Declaration::Builder::() { |
| 4422 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
| 4423 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
| 4424 | } |
| 4425 | inline void Declaration::Builder::( ::capnp::Text::Reader value) { |
| 4426 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
| 4427 | ::capnp::bounded<4>() * ::capnp::POINTERS), value); |
| 4428 | } |
| 4429 | inline ::capnp::Text::Builder Declaration::Builder::(unsigned int size) { |
| 4430 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
| 4431 | ::capnp::bounded<4>() * ::capnp::POINTERS), size); |
| 4432 | } |
| 4433 | inline void Declaration::Builder::( |
| 4434 | ::capnp::Orphan< ::capnp::Text>&& value) { |
| 4435 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
| 4436 | ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); |
| 4437 | } |
| 4438 | inline ::capnp::Orphan< ::capnp::Text> Declaration::Builder::() { |
| 4439 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
| 4440 | ::capnp::bounded<4>() * ::capnp::POINTERS)); |
| 4441 | } |
| 4442 | |
| 4443 | inline bool Declaration::Reader::isFile() const { |
| 4444 | return which() == Declaration::FILE; |
| 4445 | } |
| 4446 | inline bool Declaration::Builder::isFile() { |
| 4447 | return which() == Declaration::FILE; |
| 4448 | } |
| 4449 | inline ::capnp::Void Declaration::Reader::getFile() const { |
| 4450 | KJ_IREQUIRE((which() == Declaration::FILE), |
| 4451 | "Must check which() before get()ing a union member." ); |
| 4452 | return _reader.getDataField< ::capnp::Void>( |
| 4453 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4454 | } |
| 4455 | |
| 4456 | inline ::capnp::Void Declaration::Builder::getFile() { |
| 4457 | KJ_IREQUIRE((which() == Declaration::FILE), |
| 4458 | "Must check which() before get()ing a union member." ); |
| 4459 | return _builder.getDataField< ::capnp::Void>( |
| 4460 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4461 | } |
| 4462 | inline void Declaration::Builder::setFile( ::capnp::Void value) { |
| 4463 | _builder.setDataField<Declaration::Which>( |
| 4464 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::FILE); |
| 4465 | _builder.setDataField< ::capnp::Void>( |
| 4466 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4467 | } |
| 4468 | |
| 4469 | inline bool Declaration::Reader::isUsing() const { |
| 4470 | return which() == Declaration::USING; |
| 4471 | } |
| 4472 | inline bool Declaration::Builder::isUsing() { |
| 4473 | return which() == Declaration::USING; |
| 4474 | } |
| 4475 | inline typename Declaration::Using::Reader Declaration::Reader::getUsing() const { |
| 4476 | KJ_IREQUIRE((which() == Declaration::USING), |
| 4477 | "Must check which() before get()ing a union member." ); |
| 4478 | return typename Declaration::Using::Reader(_reader); |
| 4479 | } |
| 4480 | inline typename Declaration::Using::Builder Declaration::Builder::getUsing() { |
| 4481 | KJ_IREQUIRE((which() == Declaration::USING), |
| 4482 | "Must check which() before get()ing a union member." ); |
| 4483 | return typename Declaration::Using::Builder(_builder); |
| 4484 | } |
| 4485 | inline typename Declaration::Using::Builder Declaration::Builder::initUsing() { |
| 4486 | _builder.setDataField<Declaration::Which>( |
| 4487 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::USING); |
| 4488 | _builder.getPointerField(::capnp::bounded<5>() * ::capnp::POINTERS).clear(); |
| 4489 | return typename Declaration::Using::Builder(_builder); |
| 4490 | } |
| 4491 | inline bool Declaration::Reader::isConst() const { |
| 4492 | return which() == Declaration::CONST; |
| 4493 | } |
| 4494 | inline bool Declaration::Builder::isConst() { |
| 4495 | return which() == Declaration::CONST; |
| 4496 | } |
| 4497 | inline typename Declaration::Const::Reader Declaration::Reader::getConst() const { |
| 4498 | KJ_IREQUIRE((which() == Declaration::CONST), |
| 4499 | "Must check which() before get()ing a union member." ); |
| 4500 | return typename Declaration::Const::Reader(_reader); |
| 4501 | } |
| 4502 | inline typename Declaration::Const::Builder Declaration::Builder::getConst() { |
| 4503 | KJ_IREQUIRE((which() == Declaration::CONST), |
| 4504 | "Must check which() before get()ing a union member." ); |
| 4505 | return typename Declaration::Const::Builder(_builder); |
| 4506 | } |
| 4507 | inline typename Declaration::Const::Builder Declaration::Builder::initConst() { |
| 4508 | _builder.setDataField<Declaration::Which>( |
| 4509 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::CONST); |
| 4510 | _builder.getPointerField(::capnp::bounded<5>() * ::capnp::POINTERS).clear(); |
| 4511 | _builder.getPointerField(::capnp::bounded<6>() * ::capnp::POINTERS).clear(); |
| 4512 | return typename Declaration::Const::Builder(_builder); |
| 4513 | } |
| 4514 | inline bool Declaration::Reader::isEnum() const { |
| 4515 | return which() == Declaration::ENUM; |
| 4516 | } |
| 4517 | inline bool Declaration::Builder::isEnum() { |
| 4518 | return which() == Declaration::ENUM; |
| 4519 | } |
| 4520 | inline ::capnp::Void Declaration::Reader::getEnum() const { |
| 4521 | KJ_IREQUIRE((which() == Declaration::ENUM), |
| 4522 | "Must check which() before get()ing a union member." ); |
| 4523 | return _reader.getDataField< ::capnp::Void>( |
| 4524 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4525 | } |
| 4526 | |
| 4527 | inline ::capnp::Void Declaration::Builder::getEnum() { |
| 4528 | KJ_IREQUIRE((which() == Declaration::ENUM), |
| 4529 | "Must check which() before get()ing a union member." ); |
| 4530 | return _builder.getDataField< ::capnp::Void>( |
| 4531 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4532 | } |
| 4533 | inline void Declaration::Builder::setEnum( ::capnp::Void value) { |
| 4534 | _builder.setDataField<Declaration::Which>( |
| 4535 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::ENUM); |
| 4536 | _builder.setDataField< ::capnp::Void>( |
| 4537 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4538 | } |
| 4539 | |
| 4540 | inline bool Declaration::Reader::isEnumerant() const { |
| 4541 | return which() == Declaration::ENUMERANT; |
| 4542 | } |
| 4543 | inline bool Declaration::Builder::isEnumerant() { |
| 4544 | return which() == Declaration::ENUMERANT; |
| 4545 | } |
| 4546 | inline ::capnp::Void Declaration::Reader::getEnumerant() const { |
| 4547 | KJ_IREQUIRE((which() == Declaration::ENUMERANT), |
| 4548 | "Must check which() before get()ing a union member." ); |
| 4549 | return _reader.getDataField< ::capnp::Void>( |
| 4550 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4551 | } |
| 4552 | |
| 4553 | inline ::capnp::Void Declaration::Builder::getEnumerant() { |
| 4554 | KJ_IREQUIRE((which() == Declaration::ENUMERANT), |
| 4555 | "Must check which() before get()ing a union member." ); |
| 4556 | return _builder.getDataField< ::capnp::Void>( |
| 4557 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4558 | } |
| 4559 | inline void Declaration::Builder::setEnumerant( ::capnp::Void value) { |
| 4560 | _builder.setDataField<Declaration::Which>( |
| 4561 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::ENUMERANT); |
| 4562 | _builder.setDataField< ::capnp::Void>( |
| 4563 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4564 | } |
| 4565 | |
| 4566 | inline bool Declaration::Reader::isStruct() const { |
| 4567 | return which() == Declaration::STRUCT; |
| 4568 | } |
| 4569 | inline bool Declaration::Builder::isStruct() { |
| 4570 | return which() == Declaration::STRUCT; |
| 4571 | } |
| 4572 | inline ::capnp::Void Declaration::Reader::getStruct() const { |
| 4573 | KJ_IREQUIRE((which() == Declaration::STRUCT), |
| 4574 | "Must check which() before get()ing a union member." ); |
| 4575 | return _reader.getDataField< ::capnp::Void>( |
| 4576 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4577 | } |
| 4578 | |
| 4579 | inline ::capnp::Void Declaration::Builder::getStruct() { |
| 4580 | KJ_IREQUIRE((which() == Declaration::STRUCT), |
| 4581 | "Must check which() before get()ing a union member." ); |
| 4582 | return _builder.getDataField< ::capnp::Void>( |
| 4583 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4584 | } |
| 4585 | inline void Declaration::Builder::setStruct( ::capnp::Void value) { |
| 4586 | _builder.setDataField<Declaration::Which>( |
| 4587 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::STRUCT); |
| 4588 | _builder.setDataField< ::capnp::Void>( |
| 4589 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4590 | } |
| 4591 | |
| 4592 | inline bool Declaration::Reader::isField() const { |
| 4593 | return which() == Declaration::FIELD; |
| 4594 | } |
| 4595 | inline bool Declaration::Builder::isField() { |
| 4596 | return which() == Declaration::FIELD; |
| 4597 | } |
| 4598 | inline typename Declaration::Field::Reader Declaration::Reader::getField() const { |
| 4599 | KJ_IREQUIRE((which() == Declaration::FIELD), |
| 4600 | "Must check which() before get()ing a union member." ); |
| 4601 | return typename Declaration::Field::Reader(_reader); |
| 4602 | } |
| 4603 | inline typename Declaration::Field::Builder Declaration::Builder::getField() { |
| 4604 | KJ_IREQUIRE((which() == Declaration::FIELD), |
| 4605 | "Must check which() before get()ing a union member." ); |
| 4606 | return typename Declaration::Field::Builder(_builder); |
| 4607 | } |
| 4608 | inline typename Declaration::Field::Builder Declaration::Builder::initField() { |
| 4609 | _builder.setDataField<Declaration::Which>( |
| 4610 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::FIELD); |
| 4611 | _builder.setDataField< ::uint16_t>(::capnp::bounded<6>() * ::capnp::ELEMENTS, 0); |
| 4612 | _builder.getPointerField(::capnp::bounded<5>() * ::capnp::POINTERS).clear(); |
| 4613 | _builder.getPointerField(::capnp::bounded<6>() * ::capnp::POINTERS).clear(); |
| 4614 | return typename Declaration::Field::Builder(_builder); |
| 4615 | } |
| 4616 | inline bool Declaration::Reader::isUnion() const { |
| 4617 | return which() == Declaration::UNION; |
| 4618 | } |
| 4619 | inline bool Declaration::Builder::isUnion() { |
| 4620 | return which() == Declaration::UNION; |
| 4621 | } |
| 4622 | inline ::capnp::Void Declaration::Reader::getUnion() const { |
| 4623 | KJ_IREQUIRE((which() == Declaration::UNION), |
| 4624 | "Must check which() before get()ing a union member." ); |
| 4625 | return _reader.getDataField< ::capnp::Void>( |
| 4626 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4627 | } |
| 4628 | |
| 4629 | inline ::capnp::Void Declaration::Builder::getUnion() { |
| 4630 | KJ_IREQUIRE((which() == Declaration::UNION), |
| 4631 | "Must check which() before get()ing a union member." ); |
| 4632 | return _builder.getDataField< ::capnp::Void>( |
| 4633 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4634 | } |
| 4635 | inline void Declaration::Builder::setUnion( ::capnp::Void value) { |
| 4636 | _builder.setDataField<Declaration::Which>( |
| 4637 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::UNION); |
| 4638 | _builder.setDataField< ::capnp::Void>( |
| 4639 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4640 | } |
| 4641 | |
| 4642 | inline bool Declaration::Reader::isGroup() const { |
| 4643 | return which() == Declaration::GROUP; |
| 4644 | } |
| 4645 | inline bool Declaration::Builder::isGroup() { |
| 4646 | return which() == Declaration::GROUP; |
| 4647 | } |
| 4648 | inline ::capnp::Void Declaration::Reader::getGroup() const { |
| 4649 | KJ_IREQUIRE((which() == Declaration::GROUP), |
| 4650 | "Must check which() before get()ing a union member." ); |
| 4651 | return _reader.getDataField< ::capnp::Void>( |
| 4652 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4653 | } |
| 4654 | |
| 4655 | inline ::capnp::Void Declaration::Builder::getGroup() { |
| 4656 | KJ_IREQUIRE((which() == Declaration::GROUP), |
| 4657 | "Must check which() before get()ing a union member." ); |
| 4658 | return _builder.getDataField< ::capnp::Void>( |
| 4659 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4660 | } |
| 4661 | inline void Declaration::Builder::setGroup( ::capnp::Void value) { |
| 4662 | _builder.setDataField<Declaration::Which>( |
| 4663 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::GROUP); |
| 4664 | _builder.setDataField< ::capnp::Void>( |
| 4665 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4666 | } |
| 4667 | |
| 4668 | inline bool Declaration::Reader::isInterface() const { |
| 4669 | return which() == Declaration::INTERFACE; |
| 4670 | } |
| 4671 | inline bool Declaration::Builder::isInterface() { |
| 4672 | return which() == Declaration::INTERFACE; |
| 4673 | } |
| 4674 | inline typename Declaration::Interface::Reader Declaration::Reader::getInterface() const { |
| 4675 | KJ_IREQUIRE((which() == Declaration::INTERFACE), |
| 4676 | "Must check which() before get()ing a union member." ); |
| 4677 | return typename Declaration::Interface::Reader(_reader); |
| 4678 | } |
| 4679 | inline typename Declaration::Interface::Builder Declaration::Builder::getInterface() { |
| 4680 | KJ_IREQUIRE((which() == Declaration::INTERFACE), |
| 4681 | "Must check which() before get()ing a union member." ); |
| 4682 | return typename Declaration::Interface::Builder(_builder); |
| 4683 | } |
| 4684 | inline typename Declaration::Interface::Builder Declaration::Builder::initInterface() { |
| 4685 | _builder.setDataField<Declaration::Which>( |
| 4686 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::INTERFACE); |
| 4687 | _builder.getPointerField(::capnp::bounded<5>() * ::capnp::POINTERS).clear(); |
| 4688 | return typename Declaration::Interface::Builder(_builder); |
| 4689 | } |
| 4690 | inline bool Declaration::Reader::isMethod() const { |
| 4691 | return which() == Declaration::METHOD; |
| 4692 | } |
| 4693 | inline bool Declaration::Builder::isMethod() { |
| 4694 | return which() == Declaration::METHOD; |
| 4695 | } |
| 4696 | inline typename Declaration::Method::Reader Declaration::Reader::getMethod() const { |
| 4697 | KJ_IREQUIRE((which() == Declaration::METHOD), |
| 4698 | "Must check which() before get()ing a union member." ); |
| 4699 | return typename Declaration::Method::Reader(_reader); |
| 4700 | } |
| 4701 | inline typename Declaration::Method::Builder Declaration::Builder::getMethod() { |
| 4702 | KJ_IREQUIRE((which() == Declaration::METHOD), |
| 4703 | "Must check which() before get()ing a union member." ); |
| 4704 | return typename Declaration::Method::Builder(_builder); |
| 4705 | } |
| 4706 | inline typename Declaration::Method::Builder Declaration::Builder::initMethod() { |
| 4707 | _builder.setDataField<Declaration::Which>( |
| 4708 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::METHOD); |
| 4709 | _builder.setDataField< ::uint16_t>(::capnp::bounded<6>() * ::capnp::ELEMENTS, 0); |
| 4710 | _builder.getPointerField(::capnp::bounded<5>() * ::capnp::POINTERS).clear(); |
| 4711 | _builder.getPointerField(::capnp::bounded<6>() * ::capnp::POINTERS).clear(); |
| 4712 | return typename Declaration::Method::Builder(_builder); |
| 4713 | } |
| 4714 | inline bool Declaration::Reader::isAnnotation() const { |
| 4715 | return which() == Declaration::ANNOTATION; |
| 4716 | } |
| 4717 | inline bool Declaration::Builder::isAnnotation() { |
| 4718 | return which() == Declaration::ANNOTATION; |
| 4719 | } |
| 4720 | inline typename Declaration::Annotation::Reader Declaration::Reader::getAnnotation() const { |
| 4721 | KJ_IREQUIRE((which() == Declaration::ANNOTATION), |
| 4722 | "Must check which() before get()ing a union member." ); |
| 4723 | return typename Declaration::Annotation::Reader(_reader); |
| 4724 | } |
| 4725 | inline typename Declaration::Annotation::Builder Declaration::Builder::getAnnotation() { |
| 4726 | KJ_IREQUIRE((which() == Declaration::ANNOTATION), |
| 4727 | "Must check which() before get()ing a union member." ); |
| 4728 | return typename Declaration::Annotation::Builder(_builder); |
| 4729 | } |
| 4730 | inline typename Declaration::Annotation::Builder Declaration::Builder::initAnnotation() { |
| 4731 | _builder.setDataField<Declaration::Which>( |
| 4732 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::ANNOTATION); |
| 4733 | _builder.setDataField<bool>(::capnp::bounded<96>() * ::capnp::ELEMENTS, 0); |
| 4734 | _builder.setDataField<bool>(::capnp::bounded<97>() * ::capnp::ELEMENTS, 0); |
| 4735 | _builder.setDataField<bool>(::capnp::bounded<98>() * ::capnp::ELEMENTS, 0); |
| 4736 | _builder.setDataField<bool>(::capnp::bounded<99>() * ::capnp::ELEMENTS, 0); |
| 4737 | _builder.setDataField<bool>(::capnp::bounded<100>() * ::capnp::ELEMENTS, 0); |
| 4738 | _builder.setDataField<bool>(::capnp::bounded<101>() * ::capnp::ELEMENTS, 0); |
| 4739 | _builder.setDataField<bool>(::capnp::bounded<102>() * ::capnp::ELEMENTS, 0); |
| 4740 | _builder.setDataField<bool>(::capnp::bounded<103>() * ::capnp::ELEMENTS, 0); |
| 4741 | _builder.setDataField<bool>(::capnp::bounded<104>() * ::capnp::ELEMENTS, 0); |
| 4742 | _builder.setDataField<bool>(::capnp::bounded<105>() * ::capnp::ELEMENTS, 0); |
| 4743 | _builder.setDataField<bool>(::capnp::bounded<106>() * ::capnp::ELEMENTS, 0); |
| 4744 | _builder.setDataField<bool>(::capnp::bounded<107>() * ::capnp::ELEMENTS, 0); |
| 4745 | _builder.getPointerField(::capnp::bounded<5>() * ::capnp::POINTERS).clear(); |
| 4746 | return typename Declaration::Annotation::Builder(_builder); |
| 4747 | } |
| 4748 | inline bool Declaration::Reader::isNakedId() const { |
| 4749 | return which() == Declaration::NAKED_ID; |
| 4750 | } |
| 4751 | inline bool Declaration::Builder::isNakedId() { |
| 4752 | return which() == Declaration::NAKED_ID; |
| 4753 | } |
| 4754 | inline bool Declaration::Reader::hasNakedId() const { |
| 4755 | if (which() != Declaration::NAKED_ID) return false; |
| 4756 | return !_reader.getPointerField( |
| 4757 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 4758 | } |
| 4759 | inline bool Declaration::Builder::hasNakedId() { |
| 4760 | if (which() != Declaration::NAKED_ID) return false; |
| 4761 | return !_builder.getPointerField( |
| 4762 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 4763 | } |
| 4764 | inline ::capnp::compiler::LocatedInteger::Reader Declaration::Reader::getNakedId() const { |
| 4765 | KJ_IREQUIRE((which() == Declaration::NAKED_ID), |
| 4766 | "Must check which() before get()ing a union member." ); |
| 4767 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(_reader.getPointerField( |
| 4768 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4769 | } |
| 4770 | inline ::capnp::compiler::LocatedInteger::Builder Declaration::Builder::getNakedId() { |
| 4771 | KJ_IREQUIRE((which() == Declaration::NAKED_ID), |
| 4772 | "Must check which() before get()ing a union member." ); |
| 4773 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(_builder.getPointerField( |
| 4774 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4775 | } |
| 4776 | inline void Declaration::Builder::setNakedId( ::capnp::compiler::LocatedInteger::Reader value) { |
| 4777 | _builder.setDataField<Declaration::Which>( |
| 4778 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::NAKED_ID); |
| 4779 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::set(_builder.getPointerField( |
| 4780 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 4781 | } |
| 4782 | inline ::capnp::compiler::LocatedInteger::Builder Declaration::Builder::initNakedId() { |
| 4783 | _builder.setDataField<Declaration::Which>( |
| 4784 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::NAKED_ID); |
| 4785 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::init(_builder.getPointerField( |
| 4786 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4787 | } |
| 4788 | inline void Declaration::Builder::adoptNakedId( |
| 4789 | ::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value) { |
| 4790 | _builder.setDataField<Declaration::Which>( |
| 4791 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::NAKED_ID); |
| 4792 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::adopt(_builder.getPointerField( |
| 4793 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 4794 | } |
| 4795 | inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> Declaration::Builder::disownNakedId() { |
| 4796 | KJ_IREQUIRE((which() == Declaration::NAKED_ID), |
| 4797 | "Must check which() before get()ing a union member." ); |
| 4798 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::disown(_builder.getPointerField( |
| 4799 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4800 | } |
| 4801 | |
| 4802 | inline bool Declaration::Reader::isNakedAnnotation() const { |
| 4803 | return which() == Declaration::NAKED_ANNOTATION; |
| 4804 | } |
| 4805 | inline bool Declaration::Builder::isNakedAnnotation() { |
| 4806 | return which() == Declaration::NAKED_ANNOTATION; |
| 4807 | } |
| 4808 | inline bool Declaration::Reader::hasNakedAnnotation() const { |
| 4809 | if (which() != Declaration::NAKED_ANNOTATION) return false; |
| 4810 | return !_reader.getPointerField( |
| 4811 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 4812 | } |
| 4813 | inline bool Declaration::Builder::hasNakedAnnotation() { |
| 4814 | if (which() != Declaration::NAKED_ANNOTATION) return false; |
| 4815 | return !_builder.getPointerField( |
| 4816 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 4817 | } |
| 4818 | inline ::capnp::compiler::Declaration::AnnotationApplication::Reader Declaration::Reader::getNakedAnnotation() const { |
| 4819 | KJ_IREQUIRE((which() == Declaration::NAKED_ANNOTATION), |
| 4820 | "Must check which() before get()ing a union member." ); |
| 4821 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::get(_reader.getPointerField( |
| 4822 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4823 | } |
| 4824 | inline ::capnp::compiler::Declaration::AnnotationApplication::Builder Declaration::Builder::getNakedAnnotation() { |
| 4825 | KJ_IREQUIRE((which() == Declaration::NAKED_ANNOTATION), |
| 4826 | "Must check which() before get()ing a union member." ); |
| 4827 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::get(_builder.getPointerField( |
| 4828 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4829 | } |
| 4830 | inline void Declaration::Builder::setNakedAnnotation( ::capnp::compiler::Declaration::AnnotationApplication::Reader value) { |
| 4831 | _builder.setDataField<Declaration::Which>( |
| 4832 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::NAKED_ANNOTATION); |
| 4833 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::set(_builder.getPointerField( |
| 4834 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 4835 | } |
| 4836 | inline ::capnp::compiler::Declaration::AnnotationApplication::Builder Declaration::Builder::initNakedAnnotation() { |
| 4837 | _builder.setDataField<Declaration::Which>( |
| 4838 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::NAKED_ANNOTATION); |
| 4839 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::init(_builder.getPointerField( |
| 4840 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4841 | } |
| 4842 | inline void Declaration::Builder::adoptNakedAnnotation( |
| 4843 | ::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication>&& value) { |
| 4844 | _builder.setDataField<Declaration::Which>( |
| 4845 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::NAKED_ANNOTATION); |
| 4846 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::adopt(_builder.getPointerField( |
| 4847 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 4848 | } |
| 4849 | inline ::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication> Declaration::Builder::disownNakedAnnotation() { |
| 4850 | KJ_IREQUIRE((which() == Declaration::NAKED_ANNOTATION), |
| 4851 | "Must check which() before get()ing a union member." ); |
| 4852 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::disown(_builder.getPointerField( |
| 4853 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 4854 | } |
| 4855 | |
| 4856 | inline bool Declaration::Reader::isBuiltinVoid() const { |
| 4857 | return which() == Declaration::BUILTIN_VOID; |
| 4858 | } |
| 4859 | inline bool Declaration::Builder::isBuiltinVoid() { |
| 4860 | return which() == Declaration::BUILTIN_VOID; |
| 4861 | } |
| 4862 | inline ::capnp::Void Declaration::Reader::getBuiltinVoid() const { |
| 4863 | KJ_IREQUIRE((which() == Declaration::BUILTIN_VOID), |
| 4864 | "Must check which() before get()ing a union member." ); |
| 4865 | return _reader.getDataField< ::capnp::Void>( |
| 4866 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4867 | } |
| 4868 | |
| 4869 | inline ::capnp::Void Declaration::Builder::getBuiltinVoid() { |
| 4870 | KJ_IREQUIRE((which() == Declaration::BUILTIN_VOID), |
| 4871 | "Must check which() before get()ing a union member." ); |
| 4872 | return _builder.getDataField< ::capnp::Void>( |
| 4873 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4874 | } |
| 4875 | inline void Declaration::Builder::setBuiltinVoid( ::capnp::Void value) { |
| 4876 | _builder.setDataField<Declaration::Which>( |
| 4877 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_VOID); |
| 4878 | _builder.setDataField< ::capnp::Void>( |
| 4879 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4880 | } |
| 4881 | |
| 4882 | inline bool Declaration::Reader::isBuiltinBool() const { |
| 4883 | return which() == Declaration::BUILTIN_BOOL; |
| 4884 | } |
| 4885 | inline bool Declaration::Builder::isBuiltinBool() { |
| 4886 | return which() == Declaration::BUILTIN_BOOL; |
| 4887 | } |
| 4888 | inline ::capnp::Void Declaration::Reader::getBuiltinBool() const { |
| 4889 | KJ_IREQUIRE((which() == Declaration::BUILTIN_BOOL), |
| 4890 | "Must check which() before get()ing a union member." ); |
| 4891 | return _reader.getDataField< ::capnp::Void>( |
| 4892 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4893 | } |
| 4894 | |
| 4895 | inline ::capnp::Void Declaration::Builder::getBuiltinBool() { |
| 4896 | KJ_IREQUIRE((which() == Declaration::BUILTIN_BOOL), |
| 4897 | "Must check which() before get()ing a union member." ); |
| 4898 | return _builder.getDataField< ::capnp::Void>( |
| 4899 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4900 | } |
| 4901 | inline void Declaration::Builder::setBuiltinBool( ::capnp::Void value) { |
| 4902 | _builder.setDataField<Declaration::Which>( |
| 4903 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_BOOL); |
| 4904 | _builder.setDataField< ::capnp::Void>( |
| 4905 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4906 | } |
| 4907 | |
| 4908 | inline bool Declaration::Reader::isBuiltinInt8() const { |
| 4909 | return which() == Declaration::BUILTIN_INT8; |
| 4910 | } |
| 4911 | inline bool Declaration::Builder::isBuiltinInt8() { |
| 4912 | return which() == Declaration::BUILTIN_INT8; |
| 4913 | } |
| 4914 | inline ::capnp::Void Declaration::Reader::getBuiltinInt8() const { |
| 4915 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT8), |
| 4916 | "Must check which() before get()ing a union member." ); |
| 4917 | return _reader.getDataField< ::capnp::Void>( |
| 4918 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4919 | } |
| 4920 | |
| 4921 | inline ::capnp::Void Declaration::Builder::getBuiltinInt8() { |
| 4922 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT8), |
| 4923 | "Must check which() before get()ing a union member." ); |
| 4924 | return _builder.getDataField< ::capnp::Void>( |
| 4925 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4926 | } |
| 4927 | inline void Declaration::Builder::setBuiltinInt8( ::capnp::Void value) { |
| 4928 | _builder.setDataField<Declaration::Which>( |
| 4929 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_INT8); |
| 4930 | _builder.setDataField< ::capnp::Void>( |
| 4931 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4932 | } |
| 4933 | |
| 4934 | inline bool Declaration::Reader::isBuiltinInt16() const { |
| 4935 | return which() == Declaration::BUILTIN_INT16; |
| 4936 | } |
| 4937 | inline bool Declaration::Builder::isBuiltinInt16() { |
| 4938 | return which() == Declaration::BUILTIN_INT16; |
| 4939 | } |
| 4940 | inline ::capnp::Void Declaration::Reader::getBuiltinInt16() const { |
| 4941 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT16), |
| 4942 | "Must check which() before get()ing a union member." ); |
| 4943 | return _reader.getDataField< ::capnp::Void>( |
| 4944 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4945 | } |
| 4946 | |
| 4947 | inline ::capnp::Void Declaration::Builder::getBuiltinInt16() { |
| 4948 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT16), |
| 4949 | "Must check which() before get()ing a union member." ); |
| 4950 | return _builder.getDataField< ::capnp::Void>( |
| 4951 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4952 | } |
| 4953 | inline void Declaration::Builder::setBuiltinInt16( ::capnp::Void value) { |
| 4954 | _builder.setDataField<Declaration::Which>( |
| 4955 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_INT16); |
| 4956 | _builder.setDataField< ::capnp::Void>( |
| 4957 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4958 | } |
| 4959 | |
| 4960 | inline bool Declaration::Reader::isBuiltinInt32() const { |
| 4961 | return which() == Declaration::BUILTIN_INT32; |
| 4962 | } |
| 4963 | inline bool Declaration::Builder::isBuiltinInt32() { |
| 4964 | return which() == Declaration::BUILTIN_INT32; |
| 4965 | } |
| 4966 | inline ::capnp::Void Declaration::Reader::getBuiltinInt32() const { |
| 4967 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT32), |
| 4968 | "Must check which() before get()ing a union member." ); |
| 4969 | return _reader.getDataField< ::capnp::Void>( |
| 4970 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4971 | } |
| 4972 | |
| 4973 | inline ::capnp::Void Declaration::Builder::getBuiltinInt32() { |
| 4974 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT32), |
| 4975 | "Must check which() before get()ing a union member." ); |
| 4976 | return _builder.getDataField< ::capnp::Void>( |
| 4977 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4978 | } |
| 4979 | inline void Declaration::Builder::setBuiltinInt32( ::capnp::Void value) { |
| 4980 | _builder.setDataField<Declaration::Which>( |
| 4981 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_INT32); |
| 4982 | _builder.setDataField< ::capnp::Void>( |
| 4983 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 4984 | } |
| 4985 | |
| 4986 | inline bool Declaration::Reader::isBuiltinInt64() const { |
| 4987 | return which() == Declaration::BUILTIN_INT64; |
| 4988 | } |
| 4989 | inline bool Declaration::Builder::isBuiltinInt64() { |
| 4990 | return which() == Declaration::BUILTIN_INT64; |
| 4991 | } |
| 4992 | inline ::capnp::Void Declaration::Reader::getBuiltinInt64() const { |
| 4993 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT64), |
| 4994 | "Must check which() before get()ing a union member." ); |
| 4995 | return _reader.getDataField< ::capnp::Void>( |
| 4996 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 4997 | } |
| 4998 | |
| 4999 | inline ::capnp::Void Declaration::Builder::getBuiltinInt64() { |
| 5000 | KJ_IREQUIRE((which() == Declaration::BUILTIN_INT64), |
| 5001 | "Must check which() before get()ing a union member." ); |
| 5002 | return _builder.getDataField< ::capnp::Void>( |
| 5003 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5004 | } |
| 5005 | inline void Declaration::Builder::setBuiltinInt64( ::capnp::Void value) { |
| 5006 | _builder.setDataField<Declaration::Which>( |
| 5007 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_INT64); |
| 5008 | _builder.setDataField< ::capnp::Void>( |
| 5009 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5010 | } |
| 5011 | |
| 5012 | inline bool Declaration::Reader::isBuiltinUInt8() const { |
| 5013 | return which() == Declaration::BUILTIN_U_INT8; |
| 5014 | } |
| 5015 | inline bool Declaration::Builder::isBuiltinUInt8() { |
| 5016 | return which() == Declaration::BUILTIN_U_INT8; |
| 5017 | } |
| 5018 | inline ::capnp::Void Declaration::Reader::getBuiltinUInt8() const { |
| 5019 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT8), |
| 5020 | "Must check which() before get()ing a union member." ); |
| 5021 | return _reader.getDataField< ::capnp::Void>( |
| 5022 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5023 | } |
| 5024 | |
| 5025 | inline ::capnp::Void Declaration::Builder::getBuiltinUInt8() { |
| 5026 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT8), |
| 5027 | "Must check which() before get()ing a union member." ); |
| 5028 | return _builder.getDataField< ::capnp::Void>( |
| 5029 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5030 | } |
| 5031 | inline void Declaration::Builder::setBuiltinUInt8( ::capnp::Void value) { |
| 5032 | _builder.setDataField<Declaration::Which>( |
| 5033 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_U_INT8); |
| 5034 | _builder.setDataField< ::capnp::Void>( |
| 5035 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5036 | } |
| 5037 | |
| 5038 | inline bool Declaration::Reader::isBuiltinUInt16() const { |
| 5039 | return which() == Declaration::BUILTIN_U_INT16; |
| 5040 | } |
| 5041 | inline bool Declaration::Builder::isBuiltinUInt16() { |
| 5042 | return which() == Declaration::BUILTIN_U_INT16; |
| 5043 | } |
| 5044 | inline ::capnp::Void Declaration::Reader::getBuiltinUInt16() const { |
| 5045 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT16), |
| 5046 | "Must check which() before get()ing a union member." ); |
| 5047 | return _reader.getDataField< ::capnp::Void>( |
| 5048 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5049 | } |
| 5050 | |
| 5051 | inline ::capnp::Void Declaration::Builder::getBuiltinUInt16() { |
| 5052 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT16), |
| 5053 | "Must check which() before get()ing a union member." ); |
| 5054 | return _builder.getDataField< ::capnp::Void>( |
| 5055 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5056 | } |
| 5057 | inline void Declaration::Builder::setBuiltinUInt16( ::capnp::Void value) { |
| 5058 | _builder.setDataField<Declaration::Which>( |
| 5059 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_U_INT16); |
| 5060 | _builder.setDataField< ::capnp::Void>( |
| 5061 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5062 | } |
| 5063 | |
| 5064 | inline bool Declaration::Reader::isBuiltinUInt32() const { |
| 5065 | return which() == Declaration::BUILTIN_U_INT32; |
| 5066 | } |
| 5067 | inline bool Declaration::Builder::isBuiltinUInt32() { |
| 5068 | return which() == Declaration::BUILTIN_U_INT32; |
| 5069 | } |
| 5070 | inline ::capnp::Void Declaration::Reader::getBuiltinUInt32() const { |
| 5071 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT32), |
| 5072 | "Must check which() before get()ing a union member." ); |
| 5073 | return _reader.getDataField< ::capnp::Void>( |
| 5074 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5075 | } |
| 5076 | |
| 5077 | inline ::capnp::Void Declaration::Builder::getBuiltinUInt32() { |
| 5078 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT32), |
| 5079 | "Must check which() before get()ing a union member." ); |
| 5080 | return _builder.getDataField< ::capnp::Void>( |
| 5081 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5082 | } |
| 5083 | inline void Declaration::Builder::setBuiltinUInt32( ::capnp::Void value) { |
| 5084 | _builder.setDataField<Declaration::Which>( |
| 5085 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_U_INT32); |
| 5086 | _builder.setDataField< ::capnp::Void>( |
| 5087 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5088 | } |
| 5089 | |
| 5090 | inline bool Declaration::Reader::isBuiltinUInt64() const { |
| 5091 | return which() == Declaration::BUILTIN_U_INT64; |
| 5092 | } |
| 5093 | inline bool Declaration::Builder::isBuiltinUInt64() { |
| 5094 | return which() == Declaration::BUILTIN_U_INT64; |
| 5095 | } |
| 5096 | inline ::capnp::Void Declaration::Reader::getBuiltinUInt64() const { |
| 5097 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT64), |
| 5098 | "Must check which() before get()ing a union member." ); |
| 5099 | return _reader.getDataField< ::capnp::Void>( |
| 5100 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5101 | } |
| 5102 | |
| 5103 | inline ::capnp::Void Declaration::Builder::getBuiltinUInt64() { |
| 5104 | KJ_IREQUIRE((which() == Declaration::BUILTIN_U_INT64), |
| 5105 | "Must check which() before get()ing a union member." ); |
| 5106 | return _builder.getDataField< ::capnp::Void>( |
| 5107 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5108 | } |
| 5109 | inline void Declaration::Builder::setBuiltinUInt64( ::capnp::Void value) { |
| 5110 | _builder.setDataField<Declaration::Which>( |
| 5111 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_U_INT64); |
| 5112 | _builder.setDataField< ::capnp::Void>( |
| 5113 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5114 | } |
| 5115 | |
| 5116 | inline bool Declaration::Reader::isBuiltinFloat32() const { |
| 5117 | return which() == Declaration::BUILTIN_FLOAT32; |
| 5118 | } |
| 5119 | inline bool Declaration::Builder::isBuiltinFloat32() { |
| 5120 | return which() == Declaration::BUILTIN_FLOAT32; |
| 5121 | } |
| 5122 | inline ::capnp::Void Declaration::Reader::getBuiltinFloat32() const { |
| 5123 | KJ_IREQUIRE((which() == Declaration::BUILTIN_FLOAT32), |
| 5124 | "Must check which() before get()ing a union member." ); |
| 5125 | return _reader.getDataField< ::capnp::Void>( |
| 5126 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5127 | } |
| 5128 | |
| 5129 | inline ::capnp::Void Declaration::Builder::getBuiltinFloat32() { |
| 5130 | KJ_IREQUIRE((which() == Declaration::BUILTIN_FLOAT32), |
| 5131 | "Must check which() before get()ing a union member." ); |
| 5132 | return _builder.getDataField< ::capnp::Void>( |
| 5133 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5134 | } |
| 5135 | inline void Declaration::Builder::setBuiltinFloat32( ::capnp::Void value) { |
| 5136 | _builder.setDataField<Declaration::Which>( |
| 5137 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_FLOAT32); |
| 5138 | _builder.setDataField< ::capnp::Void>( |
| 5139 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5140 | } |
| 5141 | |
| 5142 | inline bool Declaration::Reader::isBuiltinFloat64() const { |
| 5143 | return which() == Declaration::BUILTIN_FLOAT64; |
| 5144 | } |
| 5145 | inline bool Declaration::Builder::isBuiltinFloat64() { |
| 5146 | return which() == Declaration::BUILTIN_FLOAT64; |
| 5147 | } |
| 5148 | inline ::capnp::Void Declaration::Reader::getBuiltinFloat64() const { |
| 5149 | KJ_IREQUIRE((which() == Declaration::BUILTIN_FLOAT64), |
| 5150 | "Must check which() before get()ing a union member." ); |
| 5151 | return _reader.getDataField< ::capnp::Void>( |
| 5152 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5153 | } |
| 5154 | |
| 5155 | inline ::capnp::Void Declaration::Builder::getBuiltinFloat64() { |
| 5156 | KJ_IREQUIRE((which() == Declaration::BUILTIN_FLOAT64), |
| 5157 | "Must check which() before get()ing a union member." ); |
| 5158 | return _builder.getDataField< ::capnp::Void>( |
| 5159 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5160 | } |
| 5161 | inline void Declaration::Builder::setBuiltinFloat64( ::capnp::Void value) { |
| 5162 | _builder.setDataField<Declaration::Which>( |
| 5163 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_FLOAT64); |
| 5164 | _builder.setDataField< ::capnp::Void>( |
| 5165 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5166 | } |
| 5167 | |
| 5168 | inline bool Declaration::Reader::isBuiltinText() const { |
| 5169 | return which() == Declaration::BUILTIN_TEXT; |
| 5170 | } |
| 5171 | inline bool Declaration::Builder::isBuiltinText() { |
| 5172 | return which() == Declaration::BUILTIN_TEXT; |
| 5173 | } |
| 5174 | inline ::capnp::Void Declaration::Reader::getBuiltinText() const { |
| 5175 | KJ_IREQUIRE((which() == Declaration::BUILTIN_TEXT), |
| 5176 | "Must check which() before get()ing a union member." ); |
| 5177 | return _reader.getDataField< ::capnp::Void>( |
| 5178 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5179 | } |
| 5180 | |
| 5181 | inline ::capnp::Void Declaration::Builder::getBuiltinText() { |
| 5182 | KJ_IREQUIRE((which() == Declaration::BUILTIN_TEXT), |
| 5183 | "Must check which() before get()ing a union member." ); |
| 5184 | return _builder.getDataField< ::capnp::Void>( |
| 5185 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5186 | } |
| 5187 | inline void Declaration::Builder::setBuiltinText( ::capnp::Void value) { |
| 5188 | _builder.setDataField<Declaration::Which>( |
| 5189 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_TEXT); |
| 5190 | _builder.setDataField< ::capnp::Void>( |
| 5191 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5192 | } |
| 5193 | |
| 5194 | inline bool Declaration::Reader::isBuiltinData() const { |
| 5195 | return which() == Declaration::BUILTIN_DATA; |
| 5196 | } |
| 5197 | inline bool Declaration::Builder::isBuiltinData() { |
| 5198 | return which() == Declaration::BUILTIN_DATA; |
| 5199 | } |
| 5200 | inline ::capnp::Void Declaration::Reader::getBuiltinData() const { |
| 5201 | KJ_IREQUIRE((which() == Declaration::BUILTIN_DATA), |
| 5202 | "Must check which() before get()ing a union member." ); |
| 5203 | return _reader.getDataField< ::capnp::Void>( |
| 5204 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5205 | } |
| 5206 | |
| 5207 | inline ::capnp::Void Declaration::Builder::getBuiltinData() { |
| 5208 | KJ_IREQUIRE((which() == Declaration::BUILTIN_DATA), |
| 5209 | "Must check which() before get()ing a union member." ); |
| 5210 | return _builder.getDataField< ::capnp::Void>( |
| 5211 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5212 | } |
| 5213 | inline void Declaration::Builder::setBuiltinData( ::capnp::Void value) { |
| 5214 | _builder.setDataField<Declaration::Which>( |
| 5215 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_DATA); |
| 5216 | _builder.setDataField< ::capnp::Void>( |
| 5217 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5218 | } |
| 5219 | |
| 5220 | inline bool Declaration::Reader::isBuiltinList() const { |
| 5221 | return which() == Declaration::BUILTIN_LIST; |
| 5222 | } |
| 5223 | inline bool Declaration::Builder::isBuiltinList() { |
| 5224 | return which() == Declaration::BUILTIN_LIST; |
| 5225 | } |
| 5226 | inline ::capnp::Void Declaration::Reader::getBuiltinList() const { |
| 5227 | KJ_IREQUIRE((which() == Declaration::BUILTIN_LIST), |
| 5228 | "Must check which() before get()ing a union member." ); |
| 5229 | return _reader.getDataField< ::capnp::Void>( |
| 5230 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5231 | } |
| 5232 | |
| 5233 | inline ::capnp::Void Declaration::Builder::getBuiltinList() { |
| 5234 | KJ_IREQUIRE((which() == Declaration::BUILTIN_LIST), |
| 5235 | "Must check which() before get()ing a union member." ); |
| 5236 | return _builder.getDataField< ::capnp::Void>( |
| 5237 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5238 | } |
| 5239 | inline void Declaration::Builder::setBuiltinList( ::capnp::Void value) { |
| 5240 | _builder.setDataField<Declaration::Which>( |
| 5241 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_LIST); |
| 5242 | _builder.setDataField< ::capnp::Void>( |
| 5243 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5244 | } |
| 5245 | |
| 5246 | inline bool Declaration::Reader::isBuiltinObject() const { |
| 5247 | return which() == Declaration::BUILTIN_OBJECT; |
| 5248 | } |
| 5249 | inline bool Declaration::Builder::isBuiltinObject() { |
| 5250 | return which() == Declaration::BUILTIN_OBJECT; |
| 5251 | } |
| 5252 | inline ::capnp::Void Declaration::Reader::getBuiltinObject() const { |
| 5253 | KJ_IREQUIRE((which() == Declaration::BUILTIN_OBJECT), |
| 5254 | "Must check which() before get()ing a union member." ); |
| 5255 | return _reader.getDataField< ::capnp::Void>( |
| 5256 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5257 | } |
| 5258 | |
| 5259 | inline ::capnp::Void Declaration::Builder::getBuiltinObject() { |
| 5260 | KJ_IREQUIRE((which() == Declaration::BUILTIN_OBJECT), |
| 5261 | "Must check which() before get()ing a union member." ); |
| 5262 | return _builder.getDataField< ::capnp::Void>( |
| 5263 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5264 | } |
| 5265 | inline void Declaration::Builder::setBuiltinObject( ::capnp::Void value) { |
| 5266 | _builder.setDataField<Declaration::Which>( |
| 5267 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_OBJECT); |
| 5268 | _builder.setDataField< ::capnp::Void>( |
| 5269 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5270 | } |
| 5271 | |
| 5272 | inline bool Declaration::Reader::isBuiltinAnyPointer() const { |
| 5273 | return which() == Declaration::BUILTIN_ANY_POINTER; |
| 5274 | } |
| 5275 | inline bool Declaration::Builder::isBuiltinAnyPointer() { |
| 5276 | return which() == Declaration::BUILTIN_ANY_POINTER; |
| 5277 | } |
| 5278 | inline ::capnp::Void Declaration::Reader::getBuiltinAnyPointer() const { |
| 5279 | KJ_IREQUIRE((which() == Declaration::BUILTIN_ANY_POINTER), |
| 5280 | "Must check which() before get()ing a union member." ); |
| 5281 | return _reader.getDataField< ::capnp::Void>( |
| 5282 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5283 | } |
| 5284 | |
| 5285 | inline ::capnp::Void Declaration::Builder::getBuiltinAnyPointer() { |
| 5286 | KJ_IREQUIRE((which() == Declaration::BUILTIN_ANY_POINTER), |
| 5287 | "Must check which() before get()ing a union member." ); |
| 5288 | return _builder.getDataField< ::capnp::Void>( |
| 5289 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5290 | } |
| 5291 | inline void Declaration::Builder::setBuiltinAnyPointer( ::capnp::Void value) { |
| 5292 | _builder.setDataField<Declaration::Which>( |
| 5293 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_ANY_POINTER); |
| 5294 | _builder.setDataField< ::capnp::Void>( |
| 5295 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5296 | } |
| 5297 | |
| 5298 | inline bool Declaration::Reader::hasParameters() const { |
| 5299 | return !_reader.getPointerField( |
| 5300 | ::capnp::bounded<7>() * ::capnp::POINTERS).isNull(); |
| 5301 | } |
| 5302 | inline bool Declaration::Builder::hasParameters() { |
| 5303 | return !_builder.getPointerField( |
| 5304 | ::capnp::bounded<7>() * ::capnp::POINTERS).isNull(); |
| 5305 | } |
| 5306 | inline ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Reader Declaration::Reader::getParameters() const { |
| 5307 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 5308 | ::capnp::bounded<7>() * ::capnp::POINTERS)); |
| 5309 | } |
| 5310 | inline ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Builder Declaration::Builder::getParameters() { |
| 5311 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 5312 | ::capnp::bounded<7>() * ::capnp::POINTERS)); |
| 5313 | } |
| 5314 | inline void Declaration::Builder::setParameters( ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Reader value) { |
| 5315 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 5316 | ::capnp::bounded<7>() * ::capnp::POINTERS), value); |
| 5317 | } |
| 5318 | inline ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>::Builder Declaration::Builder::initParameters(unsigned int size) { |
| 5319 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 5320 | ::capnp::bounded<7>() * ::capnp::POINTERS), size); |
| 5321 | } |
| 5322 | inline void Declaration::Builder::adoptParameters( |
| 5323 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>&& value) { |
| 5324 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 5325 | ::capnp::bounded<7>() * ::capnp::POINTERS), kj::mv(value)); |
| 5326 | } |
| 5327 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>> Declaration::Builder::disownParameters() { |
| 5328 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::BrandParameter, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 5329 | ::capnp::bounded<7>() * ::capnp::POINTERS)); |
| 5330 | } |
| 5331 | |
| 5332 | inline bool Declaration::Reader::isBuiltinAnyStruct() const { |
| 5333 | return which() == Declaration::BUILTIN_ANY_STRUCT; |
| 5334 | } |
| 5335 | inline bool Declaration::Builder::isBuiltinAnyStruct() { |
| 5336 | return which() == Declaration::BUILTIN_ANY_STRUCT; |
| 5337 | } |
| 5338 | inline ::capnp::Void Declaration::Reader::getBuiltinAnyStruct() const { |
| 5339 | KJ_IREQUIRE((which() == Declaration::BUILTIN_ANY_STRUCT), |
| 5340 | "Must check which() before get()ing a union member." ); |
| 5341 | return _reader.getDataField< ::capnp::Void>( |
| 5342 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5343 | } |
| 5344 | |
| 5345 | inline ::capnp::Void Declaration::Builder::getBuiltinAnyStruct() { |
| 5346 | KJ_IREQUIRE((which() == Declaration::BUILTIN_ANY_STRUCT), |
| 5347 | "Must check which() before get()ing a union member." ); |
| 5348 | return _builder.getDataField< ::capnp::Void>( |
| 5349 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5350 | } |
| 5351 | inline void Declaration::Builder::setBuiltinAnyStruct( ::capnp::Void value) { |
| 5352 | _builder.setDataField<Declaration::Which>( |
| 5353 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_ANY_STRUCT); |
| 5354 | _builder.setDataField< ::capnp::Void>( |
| 5355 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5356 | } |
| 5357 | |
| 5358 | inline bool Declaration::Reader::isBuiltinAnyList() const { |
| 5359 | return which() == Declaration::BUILTIN_ANY_LIST; |
| 5360 | } |
| 5361 | inline bool Declaration::Builder::isBuiltinAnyList() { |
| 5362 | return which() == Declaration::BUILTIN_ANY_LIST; |
| 5363 | } |
| 5364 | inline ::capnp::Void Declaration::Reader::getBuiltinAnyList() const { |
| 5365 | KJ_IREQUIRE((which() == Declaration::BUILTIN_ANY_LIST), |
| 5366 | "Must check which() before get()ing a union member." ); |
| 5367 | return _reader.getDataField< ::capnp::Void>( |
| 5368 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5369 | } |
| 5370 | |
| 5371 | inline ::capnp::Void Declaration::Builder::getBuiltinAnyList() { |
| 5372 | KJ_IREQUIRE((which() == Declaration::BUILTIN_ANY_LIST), |
| 5373 | "Must check which() before get()ing a union member." ); |
| 5374 | return _builder.getDataField< ::capnp::Void>( |
| 5375 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5376 | } |
| 5377 | inline void Declaration::Builder::setBuiltinAnyList( ::capnp::Void value) { |
| 5378 | _builder.setDataField<Declaration::Which>( |
| 5379 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_ANY_LIST); |
| 5380 | _builder.setDataField< ::capnp::Void>( |
| 5381 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5382 | } |
| 5383 | |
| 5384 | inline bool Declaration::Reader::isBuiltinCapability() const { |
| 5385 | return which() == Declaration::BUILTIN_CAPABILITY; |
| 5386 | } |
| 5387 | inline bool Declaration::Builder::isBuiltinCapability() { |
| 5388 | return which() == Declaration::BUILTIN_CAPABILITY; |
| 5389 | } |
| 5390 | inline ::capnp::Void Declaration::Reader::getBuiltinCapability() const { |
| 5391 | KJ_IREQUIRE((which() == Declaration::BUILTIN_CAPABILITY), |
| 5392 | "Must check which() before get()ing a union member." ); |
| 5393 | return _reader.getDataField< ::capnp::Void>( |
| 5394 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5395 | } |
| 5396 | |
| 5397 | inline ::capnp::Void Declaration::Builder::getBuiltinCapability() { |
| 5398 | KJ_IREQUIRE((which() == Declaration::BUILTIN_CAPABILITY), |
| 5399 | "Must check which() before get()ing a union member." ); |
| 5400 | return _builder.getDataField< ::capnp::Void>( |
| 5401 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5402 | } |
| 5403 | inline void Declaration::Builder::setBuiltinCapability( ::capnp::Void value) { |
| 5404 | _builder.setDataField<Declaration::Which>( |
| 5405 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, Declaration::BUILTIN_CAPABILITY); |
| 5406 | _builder.setDataField< ::capnp::Void>( |
| 5407 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5408 | } |
| 5409 | |
| 5410 | inline bool Declaration::BrandParameter::Reader::hasName() const { |
| 5411 | return !_reader.getPointerField( |
| 5412 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5413 | } |
| 5414 | inline bool Declaration::BrandParameter::Builder::hasName() { |
| 5415 | return !_builder.getPointerField( |
| 5416 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5417 | } |
| 5418 | inline ::capnp::Text::Reader Declaration::BrandParameter::Reader::getName() const { |
| 5419 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( |
| 5420 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5421 | } |
| 5422 | inline ::capnp::Text::Builder Declaration::BrandParameter::Builder::getName() { |
| 5423 | return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( |
| 5424 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5425 | } |
| 5426 | inline void Declaration::BrandParameter::Builder::setName( ::capnp::Text::Reader value) { |
| 5427 | ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( |
| 5428 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 5429 | } |
| 5430 | inline ::capnp::Text::Builder Declaration::BrandParameter::Builder::initName(unsigned int size) { |
| 5431 | return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( |
| 5432 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
| 5433 | } |
| 5434 | inline void Declaration::BrandParameter::Builder::adoptName( |
| 5435 | ::capnp::Orphan< ::capnp::Text>&& value) { |
| 5436 | ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( |
| 5437 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 5438 | } |
| 5439 | inline ::capnp::Orphan< ::capnp::Text> Declaration::BrandParameter::Builder::disownName() { |
| 5440 | return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( |
| 5441 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5442 | } |
| 5443 | |
| 5444 | inline ::uint32_t Declaration::BrandParameter::Reader::getStartByte() const { |
| 5445 | return _reader.getDataField< ::uint32_t>( |
| 5446 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5447 | } |
| 5448 | |
| 5449 | inline ::uint32_t Declaration::BrandParameter::Builder::getStartByte() { |
| 5450 | return _builder.getDataField< ::uint32_t>( |
| 5451 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5452 | } |
| 5453 | inline void Declaration::BrandParameter::Builder::setStartByte( ::uint32_t value) { |
| 5454 | _builder.setDataField< ::uint32_t>( |
| 5455 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5456 | } |
| 5457 | |
| 5458 | inline ::uint32_t Declaration::BrandParameter::Reader::getEndByte() const { |
| 5459 | return _reader.getDataField< ::uint32_t>( |
| 5460 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 5461 | } |
| 5462 | |
| 5463 | inline ::uint32_t Declaration::BrandParameter::Builder::getEndByte() { |
| 5464 | return _builder.getDataField< ::uint32_t>( |
| 5465 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 5466 | } |
| 5467 | inline void Declaration::BrandParameter::Builder::setEndByte( ::uint32_t value) { |
| 5468 | _builder.setDataField< ::uint32_t>( |
| 5469 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 5470 | } |
| 5471 | |
| 5472 | inline bool Declaration::AnnotationApplication::Reader::hasName() const { |
| 5473 | return !_reader.getPointerField( |
| 5474 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5475 | } |
| 5476 | inline bool Declaration::AnnotationApplication::Builder::hasName() { |
| 5477 | return !_builder.getPointerField( |
| 5478 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5479 | } |
| 5480 | inline ::capnp::compiler::Expression::Reader Declaration::AnnotationApplication::Reader::getName() const { |
| 5481 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 5482 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5483 | } |
| 5484 | inline ::capnp::compiler::Expression::Builder Declaration::AnnotationApplication::Builder::getName() { |
| 5485 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 5486 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5487 | } |
| 5488 | #if !CAPNP_LITE |
| 5489 | inline ::capnp::compiler::Expression::Pipeline Declaration::AnnotationApplication::Pipeline::getName() { |
| 5490 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(0)); |
| 5491 | } |
| 5492 | #endif // !CAPNP_LITE |
| 5493 | inline void Declaration::AnnotationApplication::Builder::setName( ::capnp::compiler::Expression::Reader value) { |
| 5494 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 5495 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 5496 | } |
| 5497 | inline ::capnp::compiler::Expression::Builder Declaration::AnnotationApplication::Builder::initName() { |
| 5498 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 5499 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5500 | } |
| 5501 | inline void Declaration::AnnotationApplication::Builder::adoptName( |
| 5502 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 5503 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 5504 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 5505 | } |
| 5506 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::AnnotationApplication::Builder::disownName() { |
| 5507 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 5508 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5509 | } |
| 5510 | |
| 5511 | inline typename Declaration::AnnotationApplication::Value::Reader Declaration::AnnotationApplication::Reader::getValue() const { |
| 5512 | return typename Declaration::AnnotationApplication::Value::Reader(_reader); |
| 5513 | } |
| 5514 | inline typename Declaration::AnnotationApplication::Value::Builder Declaration::AnnotationApplication::Builder::getValue() { |
| 5515 | return typename Declaration::AnnotationApplication::Value::Builder(_builder); |
| 5516 | } |
| 5517 | #if !CAPNP_LITE |
| 5518 | inline typename Declaration::AnnotationApplication::Value::Pipeline Declaration::AnnotationApplication::Pipeline::getValue() { |
| 5519 | return typename Declaration::AnnotationApplication::Value::Pipeline(_typeless.noop()); |
| 5520 | } |
| 5521 | #endif // !CAPNP_LITE |
| 5522 | inline typename Declaration::AnnotationApplication::Value::Builder Declaration::AnnotationApplication::Builder::initValue() { |
| 5523 | _builder.setDataField< ::uint16_t>(::capnp::bounded<0>() * ::capnp::ELEMENTS, 0); |
| 5524 | _builder.getPointerField(::capnp::bounded<1>() * ::capnp::POINTERS).clear(); |
| 5525 | return typename Declaration::AnnotationApplication::Value::Builder(_builder); |
| 5526 | } |
| 5527 | inline ::capnp::compiler::Declaration::AnnotationApplication::Value::Which Declaration::AnnotationApplication::Value::Reader::which() const { |
| 5528 | return _reader.getDataField<Which>( |
| 5529 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5530 | } |
| 5531 | inline ::capnp::compiler::Declaration::AnnotationApplication::Value::Which Declaration::AnnotationApplication::Value::Builder::which() { |
| 5532 | return _builder.getDataField<Which>( |
| 5533 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5534 | } |
| 5535 | |
| 5536 | inline bool Declaration::AnnotationApplication::Value::Reader::isNone() const { |
| 5537 | return which() == Declaration::AnnotationApplication::Value::NONE; |
| 5538 | } |
| 5539 | inline bool Declaration::AnnotationApplication::Value::Builder::isNone() { |
| 5540 | return which() == Declaration::AnnotationApplication::Value::NONE; |
| 5541 | } |
| 5542 | inline ::capnp::Void Declaration::AnnotationApplication::Value::Reader::getNone() const { |
| 5543 | KJ_IREQUIRE((which() == Declaration::AnnotationApplication::Value::NONE), |
| 5544 | "Must check which() before get()ing a union member." ); |
| 5545 | return _reader.getDataField< ::capnp::Void>( |
| 5546 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5547 | } |
| 5548 | |
| 5549 | inline ::capnp::Void Declaration::AnnotationApplication::Value::Builder::getNone() { |
| 5550 | KJ_IREQUIRE((which() == Declaration::AnnotationApplication::Value::NONE), |
| 5551 | "Must check which() before get()ing a union member." ); |
| 5552 | return _builder.getDataField< ::capnp::Void>( |
| 5553 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5554 | } |
| 5555 | inline void Declaration::AnnotationApplication::Value::Builder::setNone( ::capnp::Void value) { |
| 5556 | _builder.setDataField<Declaration::AnnotationApplication::Value::Which>( |
| 5557 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::AnnotationApplication::Value::NONE); |
| 5558 | _builder.setDataField< ::capnp::Void>( |
| 5559 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5560 | } |
| 5561 | |
| 5562 | inline bool Declaration::AnnotationApplication::Value::Reader::isExpression() const { |
| 5563 | return which() == Declaration::AnnotationApplication::Value::EXPRESSION; |
| 5564 | } |
| 5565 | inline bool Declaration::AnnotationApplication::Value::Builder::isExpression() { |
| 5566 | return which() == Declaration::AnnotationApplication::Value::EXPRESSION; |
| 5567 | } |
| 5568 | inline bool Declaration::AnnotationApplication::Value::Reader::hasExpression() const { |
| 5569 | if (which() != Declaration::AnnotationApplication::Value::EXPRESSION) return false; |
| 5570 | return !_reader.getPointerField( |
| 5571 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 5572 | } |
| 5573 | inline bool Declaration::AnnotationApplication::Value::Builder::hasExpression() { |
| 5574 | if (which() != Declaration::AnnotationApplication::Value::EXPRESSION) return false; |
| 5575 | return !_builder.getPointerField( |
| 5576 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 5577 | } |
| 5578 | inline ::capnp::compiler::Expression::Reader Declaration::AnnotationApplication::Value::Reader::getExpression() const { |
| 5579 | KJ_IREQUIRE((which() == Declaration::AnnotationApplication::Value::EXPRESSION), |
| 5580 | "Must check which() before get()ing a union member." ); |
| 5581 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 5582 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5583 | } |
| 5584 | inline ::capnp::compiler::Expression::Builder Declaration::AnnotationApplication::Value::Builder::getExpression() { |
| 5585 | KJ_IREQUIRE((which() == Declaration::AnnotationApplication::Value::EXPRESSION), |
| 5586 | "Must check which() before get()ing a union member." ); |
| 5587 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 5588 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5589 | } |
| 5590 | inline void Declaration::AnnotationApplication::Value::Builder::setExpression( ::capnp::compiler::Expression::Reader value) { |
| 5591 | _builder.setDataField<Declaration::AnnotationApplication::Value::Which>( |
| 5592 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::AnnotationApplication::Value::EXPRESSION); |
| 5593 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 5594 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
| 5595 | } |
| 5596 | inline ::capnp::compiler::Expression::Builder Declaration::AnnotationApplication::Value::Builder::initExpression() { |
| 5597 | _builder.setDataField<Declaration::AnnotationApplication::Value::Which>( |
| 5598 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::AnnotationApplication::Value::EXPRESSION); |
| 5599 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 5600 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5601 | } |
| 5602 | inline void Declaration::AnnotationApplication::Value::Builder::adoptExpression( |
| 5603 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 5604 | _builder.setDataField<Declaration::AnnotationApplication::Value::Which>( |
| 5605 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::AnnotationApplication::Value::EXPRESSION); |
| 5606 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 5607 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
| 5608 | } |
| 5609 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::AnnotationApplication::Value::Builder::disownExpression() { |
| 5610 | KJ_IREQUIRE((which() == Declaration::AnnotationApplication::Value::EXPRESSION), |
| 5611 | "Must check which() before get()ing a union member." ); |
| 5612 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 5613 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5614 | } |
| 5615 | |
| 5616 | inline ::capnp::compiler::Declaration::ParamList::Which Declaration::ParamList::Reader::which() const { |
| 5617 | return _reader.getDataField<Which>( |
| 5618 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5619 | } |
| 5620 | inline ::capnp::compiler::Declaration::ParamList::Which Declaration::ParamList::Builder::which() { |
| 5621 | return _builder.getDataField<Which>( |
| 5622 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5623 | } |
| 5624 | |
| 5625 | inline bool Declaration::ParamList::Reader::isNamedList() const { |
| 5626 | return which() == Declaration::ParamList::NAMED_LIST; |
| 5627 | } |
| 5628 | inline bool Declaration::ParamList::Builder::isNamedList() { |
| 5629 | return which() == Declaration::ParamList::NAMED_LIST; |
| 5630 | } |
| 5631 | inline bool Declaration::ParamList::Reader::hasNamedList() const { |
| 5632 | if (which() != Declaration::ParamList::NAMED_LIST) return false; |
| 5633 | return !_reader.getPointerField( |
| 5634 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5635 | } |
| 5636 | inline bool Declaration::ParamList::Builder::hasNamedList() { |
| 5637 | if (which() != Declaration::ParamList::NAMED_LIST) return false; |
| 5638 | return !_builder.getPointerField( |
| 5639 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5640 | } |
| 5641 | inline ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Reader Declaration::ParamList::Reader::getNamedList() const { |
| 5642 | KJ_IREQUIRE((which() == Declaration::ParamList::NAMED_LIST), |
| 5643 | "Must check which() before get()ing a union member." ); |
| 5644 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 5645 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5646 | } |
| 5647 | inline ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Builder Declaration::ParamList::Builder::getNamedList() { |
| 5648 | KJ_IREQUIRE((which() == Declaration::ParamList::NAMED_LIST), |
| 5649 | "Must check which() before get()ing a union member." ); |
| 5650 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 5651 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5652 | } |
| 5653 | inline void Declaration::ParamList::Builder::setNamedList( ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Reader value) { |
| 5654 | _builder.setDataField<Declaration::ParamList::Which>( |
| 5655 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::ParamList::NAMED_LIST); |
| 5656 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 5657 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 5658 | } |
| 5659 | inline ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>::Builder Declaration::ParamList::Builder::initNamedList(unsigned int size) { |
| 5660 | _builder.setDataField<Declaration::ParamList::Which>( |
| 5661 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::ParamList::NAMED_LIST); |
| 5662 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 5663 | ::capnp::bounded<0>() * ::capnp::POINTERS), size); |
| 5664 | } |
| 5665 | inline void Declaration::ParamList::Builder::adoptNamedList( |
| 5666 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>&& value) { |
| 5667 | _builder.setDataField<Declaration::ParamList::Which>( |
| 5668 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::ParamList::NAMED_LIST); |
| 5669 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 5670 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 5671 | } |
| 5672 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>> Declaration::ParamList::Builder::disownNamedList() { |
| 5673 | KJ_IREQUIRE((which() == Declaration::ParamList::NAMED_LIST), |
| 5674 | "Must check which() before get()ing a union member." ); |
| 5675 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Param, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 5676 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5677 | } |
| 5678 | |
| 5679 | inline bool Declaration::ParamList::Reader::isType() const { |
| 5680 | return which() == Declaration::ParamList::TYPE; |
| 5681 | } |
| 5682 | inline bool Declaration::ParamList::Builder::isType() { |
| 5683 | return which() == Declaration::ParamList::TYPE; |
| 5684 | } |
| 5685 | inline bool Declaration::ParamList::Reader::hasType() const { |
| 5686 | if (which() != Declaration::ParamList::TYPE) return false; |
| 5687 | return !_reader.getPointerField( |
| 5688 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5689 | } |
| 5690 | inline bool Declaration::ParamList::Builder::hasType() { |
| 5691 | if (which() != Declaration::ParamList::TYPE) return false; |
| 5692 | return !_builder.getPointerField( |
| 5693 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5694 | } |
| 5695 | inline ::capnp::compiler::Expression::Reader Declaration::ParamList::Reader::getType() const { |
| 5696 | KJ_IREQUIRE((which() == Declaration::ParamList::TYPE), |
| 5697 | "Must check which() before get()ing a union member." ); |
| 5698 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 5699 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5700 | } |
| 5701 | inline ::capnp::compiler::Expression::Builder Declaration::ParamList::Builder::getType() { |
| 5702 | KJ_IREQUIRE((which() == Declaration::ParamList::TYPE), |
| 5703 | "Must check which() before get()ing a union member." ); |
| 5704 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 5705 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5706 | } |
| 5707 | inline void Declaration::ParamList::Builder::setType( ::capnp::compiler::Expression::Reader value) { |
| 5708 | _builder.setDataField<Declaration::ParamList::Which>( |
| 5709 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::ParamList::TYPE); |
| 5710 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 5711 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 5712 | } |
| 5713 | inline ::capnp::compiler::Expression::Builder Declaration::ParamList::Builder::initType() { |
| 5714 | _builder.setDataField<Declaration::ParamList::Which>( |
| 5715 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::ParamList::TYPE); |
| 5716 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 5717 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5718 | } |
| 5719 | inline void Declaration::ParamList::Builder::adoptType( |
| 5720 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 5721 | _builder.setDataField<Declaration::ParamList::Which>( |
| 5722 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::ParamList::TYPE); |
| 5723 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 5724 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 5725 | } |
| 5726 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::ParamList::Builder::disownType() { |
| 5727 | KJ_IREQUIRE((which() == Declaration::ParamList::TYPE), |
| 5728 | "Must check which() before get()ing a union member." ); |
| 5729 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 5730 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5731 | } |
| 5732 | |
| 5733 | inline ::uint32_t Declaration::ParamList::Reader::getStartByte() const { |
| 5734 | return _reader.getDataField< ::uint32_t>( |
| 5735 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 5736 | } |
| 5737 | |
| 5738 | inline ::uint32_t Declaration::ParamList::Builder::getStartByte() { |
| 5739 | return _builder.getDataField< ::uint32_t>( |
| 5740 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 5741 | } |
| 5742 | inline void Declaration::ParamList::Builder::setStartByte( ::uint32_t value) { |
| 5743 | _builder.setDataField< ::uint32_t>( |
| 5744 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 5745 | } |
| 5746 | |
| 5747 | inline ::uint32_t Declaration::ParamList::Reader::getEndByte() const { |
| 5748 | return _reader.getDataField< ::uint32_t>( |
| 5749 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 5750 | } |
| 5751 | |
| 5752 | inline ::uint32_t Declaration::ParamList::Builder::getEndByte() { |
| 5753 | return _builder.getDataField< ::uint32_t>( |
| 5754 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 5755 | } |
| 5756 | inline void Declaration::ParamList::Builder::setEndByte( ::uint32_t value) { |
| 5757 | _builder.setDataField< ::uint32_t>( |
| 5758 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
| 5759 | } |
| 5760 | |
| 5761 | inline bool Declaration::Param::Reader::hasName() const { |
| 5762 | return !_reader.getPointerField( |
| 5763 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5764 | } |
| 5765 | inline bool Declaration::Param::Builder::hasName() { |
| 5766 | return !_builder.getPointerField( |
| 5767 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 5768 | } |
| 5769 | inline ::capnp::compiler::LocatedText::Reader Declaration::Param::Reader::getName() const { |
| 5770 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_reader.getPointerField( |
| 5771 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5772 | } |
| 5773 | inline ::capnp::compiler::LocatedText::Builder Declaration::Param::Builder::getName() { |
| 5774 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(_builder.getPointerField( |
| 5775 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5776 | } |
| 5777 | #if !CAPNP_LITE |
| 5778 | inline ::capnp::compiler::LocatedText::Pipeline Declaration::Param::Pipeline::getName() { |
| 5779 | return ::capnp::compiler::LocatedText::Pipeline(_typeless.getPointerField(0)); |
| 5780 | } |
| 5781 | #endif // !CAPNP_LITE |
| 5782 | inline void Declaration::Param::Builder::setName( ::capnp::compiler::LocatedText::Reader value) { |
| 5783 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(_builder.getPointerField( |
| 5784 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 5785 | } |
| 5786 | inline ::capnp::compiler::LocatedText::Builder Declaration::Param::Builder::initName() { |
| 5787 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(_builder.getPointerField( |
| 5788 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5789 | } |
| 5790 | inline void Declaration::Param::Builder::adoptName( |
| 5791 | ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) { |
| 5792 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(_builder.getPointerField( |
| 5793 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 5794 | } |
| 5795 | inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Declaration::Param::Builder::disownName() { |
| 5796 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(_builder.getPointerField( |
| 5797 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 5798 | } |
| 5799 | |
| 5800 | inline bool Declaration::Param::Reader::hasType() const { |
| 5801 | return !_reader.getPointerField( |
| 5802 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 5803 | } |
| 5804 | inline bool Declaration::Param::Builder::hasType() { |
| 5805 | return !_builder.getPointerField( |
| 5806 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 5807 | } |
| 5808 | inline ::capnp::compiler::Expression::Reader Declaration::Param::Reader::getType() const { |
| 5809 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 5810 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5811 | } |
| 5812 | inline ::capnp::compiler::Expression::Builder Declaration::Param::Builder::getType() { |
| 5813 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 5814 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5815 | } |
| 5816 | #if !CAPNP_LITE |
| 5817 | inline ::capnp::compiler::Expression::Pipeline Declaration::Param::Pipeline::getType() { |
| 5818 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(1)); |
| 5819 | } |
| 5820 | #endif // !CAPNP_LITE |
| 5821 | inline void Declaration::Param::Builder::setType( ::capnp::compiler::Expression::Reader value) { |
| 5822 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 5823 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
| 5824 | } |
| 5825 | inline ::capnp::compiler::Expression::Builder Declaration::Param::Builder::initType() { |
| 5826 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 5827 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5828 | } |
| 5829 | inline void Declaration::Param::Builder::adoptType( |
| 5830 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 5831 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 5832 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
| 5833 | } |
| 5834 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Param::Builder::disownType() { |
| 5835 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 5836 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 5837 | } |
| 5838 | |
| 5839 | inline bool Declaration::Param::Reader::hasAnnotations() const { |
| 5840 | return !_reader.getPointerField( |
| 5841 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
| 5842 | } |
| 5843 | inline bool Declaration::Param::Builder::hasAnnotations() { |
| 5844 | return !_builder.getPointerField( |
| 5845 | ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); |
| 5846 | } |
| 5847 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader Declaration::Param::Reader::getAnnotations() const { |
| 5848 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 5849 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
| 5850 | } |
| 5851 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder Declaration::Param::Builder::getAnnotations() { |
| 5852 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 5853 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
| 5854 | } |
| 5855 | inline void Declaration::Param::Builder::setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Reader value) { |
| 5856 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 5857 | ::capnp::bounded<2>() * ::capnp::POINTERS), value); |
| 5858 | } |
| 5859 | inline ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>::Builder Declaration::Param::Builder::initAnnotations(unsigned int size) { |
| 5860 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 5861 | ::capnp::bounded<2>() * ::capnp::POINTERS), size); |
| 5862 | } |
| 5863 | inline void Declaration::Param::Builder::adoptAnnotations( |
| 5864 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>&& value) { |
| 5865 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 5866 | ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); |
| 5867 | } |
| 5868 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>> Declaration::Param::Builder::disownAnnotations() { |
| 5869 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 5870 | ::capnp::bounded<2>() * ::capnp::POINTERS)); |
| 5871 | } |
| 5872 | |
| 5873 | inline typename Declaration::Param::DefaultValue::Reader Declaration::Param::Reader::getDefaultValue() const { |
| 5874 | return typename Declaration::Param::DefaultValue::Reader(_reader); |
| 5875 | } |
| 5876 | inline typename Declaration::Param::DefaultValue::Builder Declaration::Param::Builder::getDefaultValue() { |
| 5877 | return typename Declaration::Param::DefaultValue::Builder(_builder); |
| 5878 | } |
| 5879 | #if !CAPNP_LITE |
| 5880 | inline typename Declaration::Param::DefaultValue::Pipeline Declaration::Param::Pipeline::getDefaultValue() { |
| 5881 | return typename Declaration::Param::DefaultValue::Pipeline(_typeless.noop()); |
| 5882 | } |
| 5883 | #endif // !CAPNP_LITE |
| 5884 | inline typename Declaration::Param::DefaultValue::Builder Declaration::Param::Builder::initDefaultValue() { |
| 5885 | _builder.setDataField< ::uint16_t>(::capnp::bounded<0>() * ::capnp::ELEMENTS, 0); |
| 5886 | _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); |
| 5887 | return typename Declaration::Param::DefaultValue::Builder(_builder); |
| 5888 | } |
| 5889 | inline ::uint32_t Declaration::Param::Reader::getStartByte() const { |
| 5890 | return _reader.getDataField< ::uint32_t>( |
| 5891 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 5892 | } |
| 5893 | |
| 5894 | inline ::uint32_t Declaration::Param::Builder::getStartByte() { |
| 5895 | return _builder.getDataField< ::uint32_t>( |
| 5896 | ::capnp::bounded<1>() * ::capnp::ELEMENTS); |
| 5897 | } |
| 5898 | inline void Declaration::Param::Builder::setStartByte( ::uint32_t value) { |
| 5899 | _builder.setDataField< ::uint32_t>( |
| 5900 | ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); |
| 5901 | } |
| 5902 | |
| 5903 | inline ::uint32_t Declaration::Param::Reader::getEndByte() const { |
| 5904 | return _reader.getDataField< ::uint32_t>( |
| 5905 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 5906 | } |
| 5907 | |
| 5908 | inline ::uint32_t Declaration::Param::Builder::getEndByte() { |
| 5909 | return _builder.getDataField< ::uint32_t>( |
| 5910 | ::capnp::bounded<2>() * ::capnp::ELEMENTS); |
| 5911 | } |
| 5912 | inline void Declaration::Param::Builder::setEndByte( ::uint32_t value) { |
| 5913 | _builder.setDataField< ::uint32_t>( |
| 5914 | ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); |
| 5915 | } |
| 5916 | |
| 5917 | inline ::capnp::compiler::Declaration::Param::DefaultValue::Which Declaration::Param::DefaultValue::Reader::which() const { |
| 5918 | return _reader.getDataField<Which>( |
| 5919 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5920 | } |
| 5921 | inline ::capnp::compiler::Declaration::Param::DefaultValue::Which Declaration::Param::DefaultValue::Builder::which() { |
| 5922 | return _builder.getDataField<Which>( |
| 5923 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5924 | } |
| 5925 | |
| 5926 | inline bool Declaration::Param::DefaultValue::Reader::isNone() const { |
| 5927 | return which() == Declaration::Param::DefaultValue::NONE; |
| 5928 | } |
| 5929 | inline bool Declaration::Param::DefaultValue::Builder::isNone() { |
| 5930 | return which() == Declaration::Param::DefaultValue::NONE; |
| 5931 | } |
| 5932 | inline ::capnp::Void Declaration::Param::DefaultValue::Reader::getNone() const { |
| 5933 | KJ_IREQUIRE((which() == Declaration::Param::DefaultValue::NONE), |
| 5934 | "Must check which() before get()ing a union member." ); |
| 5935 | return _reader.getDataField< ::capnp::Void>( |
| 5936 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5937 | } |
| 5938 | |
| 5939 | inline ::capnp::Void Declaration::Param::DefaultValue::Builder::getNone() { |
| 5940 | KJ_IREQUIRE((which() == Declaration::Param::DefaultValue::NONE), |
| 5941 | "Must check which() before get()ing a union member." ); |
| 5942 | return _builder.getDataField< ::capnp::Void>( |
| 5943 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 5944 | } |
| 5945 | inline void Declaration::Param::DefaultValue::Builder::setNone( ::capnp::Void value) { |
| 5946 | _builder.setDataField<Declaration::Param::DefaultValue::Which>( |
| 5947 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Param::DefaultValue::NONE); |
| 5948 | _builder.setDataField< ::capnp::Void>( |
| 5949 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 5950 | } |
| 5951 | |
| 5952 | inline bool Declaration::Param::DefaultValue::Reader::isValue() const { |
| 5953 | return which() == Declaration::Param::DefaultValue::VALUE; |
| 5954 | } |
| 5955 | inline bool Declaration::Param::DefaultValue::Builder::isValue() { |
| 5956 | return which() == Declaration::Param::DefaultValue::VALUE; |
| 5957 | } |
| 5958 | inline bool Declaration::Param::DefaultValue::Reader::hasValue() const { |
| 5959 | if (which() != Declaration::Param::DefaultValue::VALUE) return false; |
| 5960 | return !_reader.getPointerField( |
| 5961 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
| 5962 | } |
| 5963 | inline bool Declaration::Param::DefaultValue::Builder::hasValue() { |
| 5964 | if (which() != Declaration::Param::DefaultValue::VALUE) return false; |
| 5965 | return !_builder.getPointerField( |
| 5966 | ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); |
| 5967 | } |
| 5968 | inline ::capnp::compiler::Expression::Reader Declaration::Param::DefaultValue::Reader::getValue() const { |
| 5969 | KJ_IREQUIRE((which() == Declaration::Param::DefaultValue::VALUE), |
| 5970 | "Must check which() before get()ing a union member." ); |
| 5971 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 5972 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
| 5973 | } |
| 5974 | inline ::capnp::compiler::Expression::Builder Declaration::Param::DefaultValue::Builder::getValue() { |
| 5975 | KJ_IREQUIRE((which() == Declaration::Param::DefaultValue::VALUE), |
| 5976 | "Must check which() before get()ing a union member." ); |
| 5977 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 5978 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
| 5979 | } |
| 5980 | inline void Declaration::Param::DefaultValue::Builder::setValue( ::capnp::compiler::Expression::Reader value) { |
| 5981 | _builder.setDataField<Declaration::Param::DefaultValue::Which>( |
| 5982 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Param::DefaultValue::VALUE); |
| 5983 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 5984 | ::capnp::bounded<3>() * ::capnp::POINTERS), value); |
| 5985 | } |
| 5986 | inline ::capnp::compiler::Expression::Builder Declaration::Param::DefaultValue::Builder::initValue() { |
| 5987 | _builder.setDataField<Declaration::Param::DefaultValue::Which>( |
| 5988 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Param::DefaultValue::VALUE); |
| 5989 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 5990 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
| 5991 | } |
| 5992 | inline void Declaration::Param::DefaultValue::Builder::adoptValue( |
| 5993 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 5994 | _builder.setDataField<Declaration::Param::DefaultValue::Which>( |
| 5995 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Param::DefaultValue::VALUE); |
| 5996 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 5997 | ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); |
| 5998 | } |
| 5999 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Param::DefaultValue::Builder::disownValue() { |
| 6000 | KJ_IREQUIRE((which() == Declaration::Param::DefaultValue::VALUE), |
| 6001 | "Must check which() before get()ing a union member." ); |
| 6002 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 6003 | ::capnp::bounded<3>() * ::capnp::POINTERS)); |
| 6004 | } |
| 6005 | |
| 6006 | inline ::capnp::compiler::Declaration::Id::Which Declaration::Id::Reader::which() const { |
| 6007 | return _reader.getDataField<Which>( |
| 6008 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6009 | } |
| 6010 | inline ::capnp::compiler::Declaration::Id::Which Declaration::Id::Builder::which() { |
| 6011 | return _builder.getDataField<Which>( |
| 6012 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6013 | } |
| 6014 | |
| 6015 | inline bool Declaration::Id::Reader::isUnspecified() const { |
| 6016 | return which() == Declaration::Id::UNSPECIFIED; |
| 6017 | } |
| 6018 | inline bool Declaration::Id::Builder::isUnspecified() { |
| 6019 | return which() == Declaration::Id::UNSPECIFIED; |
| 6020 | } |
| 6021 | inline ::capnp::Void Declaration::Id::Reader::getUnspecified() const { |
| 6022 | KJ_IREQUIRE((which() == Declaration::Id::UNSPECIFIED), |
| 6023 | "Must check which() before get()ing a union member." ); |
| 6024 | return _reader.getDataField< ::capnp::Void>( |
| 6025 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6026 | } |
| 6027 | |
| 6028 | inline ::capnp::Void Declaration::Id::Builder::getUnspecified() { |
| 6029 | KJ_IREQUIRE((which() == Declaration::Id::UNSPECIFIED), |
| 6030 | "Must check which() before get()ing a union member." ); |
| 6031 | return _builder.getDataField< ::capnp::Void>( |
| 6032 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6033 | } |
| 6034 | inline void Declaration::Id::Builder::setUnspecified( ::capnp::Void value) { |
| 6035 | _builder.setDataField<Declaration::Id::Which>( |
| 6036 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Id::UNSPECIFIED); |
| 6037 | _builder.setDataField< ::capnp::Void>( |
| 6038 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 6039 | } |
| 6040 | |
| 6041 | inline bool Declaration::Id::Reader::isUid() const { |
| 6042 | return which() == Declaration::Id::UID; |
| 6043 | } |
| 6044 | inline bool Declaration::Id::Builder::isUid() { |
| 6045 | return which() == Declaration::Id::UID; |
| 6046 | } |
| 6047 | inline bool Declaration::Id::Reader::hasUid() const { |
| 6048 | if (which() != Declaration::Id::UID) return false; |
| 6049 | return !_reader.getPointerField( |
| 6050 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 6051 | } |
| 6052 | inline bool Declaration::Id::Builder::hasUid() { |
| 6053 | if (which() != Declaration::Id::UID) return false; |
| 6054 | return !_builder.getPointerField( |
| 6055 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 6056 | } |
| 6057 | inline ::capnp::compiler::LocatedInteger::Reader Declaration::Id::Reader::getUid() const { |
| 6058 | KJ_IREQUIRE((which() == Declaration::Id::UID), |
| 6059 | "Must check which() before get()ing a union member." ); |
| 6060 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(_reader.getPointerField( |
| 6061 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6062 | } |
| 6063 | inline ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::getUid() { |
| 6064 | KJ_IREQUIRE((which() == Declaration::Id::UID), |
| 6065 | "Must check which() before get()ing a union member." ); |
| 6066 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(_builder.getPointerField( |
| 6067 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6068 | } |
| 6069 | inline void Declaration::Id::Builder::setUid( ::capnp::compiler::LocatedInteger::Reader value) { |
| 6070 | _builder.setDataField<Declaration::Id::Which>( |
| 6071 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Id::UID); |
| 6072 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::set(_builder.getPointerField( |
| 6073 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
| 6074 | } |
| 6075 | inline ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::initUid() { |
| 6076 | _builder.setDataField<Declaration::Id::Which>( |
| 6077 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Id::UID); |
| 6078 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::init(_builder.getPointerField( |
| 6079 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6080 | } |
| 6081 | inline void Declaration::Id::Builder::adoptUid( |
| 6082 | ::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value) { |
| 6083 | _builder.setDataField<Declaration::Id::Which>( |
| 6084 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Id::UID); |
| 6085 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::adopt(_builder.getPointerField( |
| 6086 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
| 6087 | } |
| 6088 | inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> Declaration::Id::Builder::disownUid() { |
| 6089 | KJ_IREQUIRE((which() == Declaration::Id::UID), |
| 6090 | "Must check which() before get()ing a union member." ); |
| 6091 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::disown(_builder.getPointerField( |
| 6092 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6093 | } |
| 6094 | |
| 6095 | inline bool Declaration::Id::Reader::isOrdinal() const { |
| 6096 | return which() == Declaration::Id::ORDINAL; |
| 6097 | } |
| 6098 | inline bool Declaration::Id::Builder::isOrdinal() { |
| 6099 | return which() == Declaration::Id::ORDINAL; |
| 6100 | } |
| 6101 | inline bool Declaration::Id::Reader::hasOrdinal() const { |
| 6102 | if (which() != Declaration::Id::ORDINAL) return false; |
| 6103 | return !_reader.getPointerField( |
| 6104 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 6105 | } |
| 6106 | inline bool Declaration::Id::Builder::hasOrdinal() { |
| 6107 | if (which() != Declaration::Id::ORDINAL) return false; |
| 6108 | return !_builder.getPointerField( |
| 6109 | ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); |
| 6110 | } |
| 6111 | inline ::capnp::compiler::LocatedInteger::Reader Declaration::Id::Reader::getOrdinal() const { |
| 6112 | KJ_IREQUIRE((which() == Declaration::Id::ORDINAL), |
| 6113 | "Must check which() before get()ing a union member." ); |
| 6114 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(_reader.getPointerField( |
| 6115 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6116 | } |
| 6117 | inline ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::getOrdinal() { |
| 6118 | KJ_IREQUIRE((which() == Declaration::Id::ORDINAL), |
| 6119 | "Must check which() before get()ing a union member." ); |
| 6120 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(_builder.getPointerField( |
| 6121 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6122 | } |
| 6123 | inline void Declaration::Id::Builder::setOrdinal( ::capnp::compiler::LocatedInteger::Reader value) { |
| 6124 | _builder.setDataField<Declaration::Id::Which>( |
| 6125 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Id::ORDINAL); |
| 6126 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::set(_builder.getPointerField( |
| 6127 | ::capnp::bounded<1>() * ::capnp::POINTERS), value); |
| 6128 | } |
| 6129 | inline ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::initOrdinal() { |
| 6130 | _builder.setDataField<Declaration::Id::Which>( |
| 6131 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Id::ORDINAL); |
| 6132 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::init(_builder.getPointerField( |
| 6133 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6134 | } |
| 6135 | inline void Declaration::Id::Builder::adoptOrdinal( |
| 6136 | ::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value) { |
| 6137 | _builder.setDataField<Declaration::Id::Which>( |
| 6138 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, Declaration::Id::ORDINAL); |
| 6139 | ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::adopt(_builder.getPointerField( |
| 6140 | ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); |
| 6141 | } |
| 6142 | inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> Declaration::Id::Builder::disownOrdinal() { |
| 6143 | KJ_IREQUIRE((which() == Declaration::Id::ORDINAL), |
| 6144 | "Must check which() before get()ing a union member." ); |
| 6145 | return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::disown(_builder.getPointerField( |
| 6146 | ::capnp::bounded<1>() * ::capnp::POINTERS)); |
| 6147 | } |
| 6148 | |
| 6149 | inline bool Declaration::Using::Reader::hasTarget() const { |
| 6150 | return !_reader.getPointerField( |
| 6151 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6152 | } |
| 6153 | inline bool Declaration::Using::Builder::hasTarget() { |
| 6154 | return !_builder.getPointerField( |
| 6155 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6156 | } |
| 6157 | inline ::capnp::compiler::Expression::Reader Declaration::Using::Reader::getTarget() const { |
| 6158 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 6159 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6160 | } |
| 6161 | inline ::capnp::compiler::Expression::Builder Declaration::Using::Builder::getTarget() { |
| 6162 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 6163 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6164 | } |
| 6165 | #if !CAPNP_LITE |
| 6166 | inline ::capnp::compiler::Expression::Pipeline Declaration::Using::Pipeline::getTarget() { |
| 6167 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(5)); |
| 6168 | } |
| 6169 | #endif // !CAPNP_LITE |
| 6170 | inline void Declaration::Using::Builder::setTarget( ::capnp::compiler::Expression::Reader value) { |
| 6171 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 6172 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 6173 | } |
| 6174 | inline ::capnp::compiler::Expression::Builder Declaration::Using::Builder::initTarget() { |
| 6175 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 6176 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6177 | } |
| 6178 | inline void Declaration::Using::Builder::adoptTarget( |
| 6179 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 6180 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 6181 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 6182 | } |
| 6183 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Using::Builder::disownTarget() { |
| 6184 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 6185 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6186 | } |
| 6187 | |
| 6188 | inline bool Declaration::Const::Reader::hasType() const { |
| 6189 | return !_reader.getPointerField( |
| 6190 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6191 | } |
| 6192 | inline bool Declaration::Const::Builder::hasType() { |
| 6193 | return !_builder.getPointerField( |
| 6194 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6195 | } |
| 6196 | inline ::capnp::compiler::Expression::Reader Declaration::Const::Reader::getType() const { |
| 6197 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 6198 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6199 | } |
| 6200 | inline ::capnp::compiler::Expression::Builder Declaration::Const::Builder::getType() { |
| 6201 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 6202 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6203 | } |
| 6204 | #if !CAPNP_LITE |
| 6205 | inline ::capnp::compiler::Expression::Pipeline Declaration::Const::Pipeline::getType() { |
| 6206 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(5)); |
| 6207 | } |
| 6208 | #endif // !CAPNP_LITE |
| 6209 | inline void Declaration::Const::Builder::setType( ::capnp::compiler::Expression::Reader value) { |
| 6210 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 6211 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 6212 | } |
| 6213 | inline ::capnp::compiler::Expression::Builder Declaration::Const::Builder::initType() { |
| 6214 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 6215 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6216 | } |
| 6217 | inline void Declaration::Const::Builder::adoptType( |
| 6218 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 6219 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 6220 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 6221 | } |
| 6222 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Const::Builder::disownType() { |
| 6223 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 6224 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6225 | } |
| 6226 | |
| 6227 | inline bool Declaration::Const::Reader::hasValue() const { |
| 6228 | return !_reader.getPointerField( |
| 6229 | ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); |
| 6230 | } |
| 6231 | inline bool Declaration::Const::Builder::hasValue() { |
| 6232 | return !_builder.getPointerField( |
| 6233 | ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); |
| 6234 | } |
| 6235 | inline ::capnp::compiler::Expression::Reader Declaration::Const::Reader::getValue() const { |
| 6236 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 6237 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6238 | } |
| 6239 | inline ::capnp::compiler::Expression::Builder Declaration::Const::Builder::getValue() { |
| 6240 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 6241 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6242 | } |
| 6243 | #if !CAPNP_LITE |
| 6244 | inline ::capnp::compiler::Expression::Pipeline Declaration::Const::Pipeline::getValue() { |
| 6245 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(6)); |
| 6246 | } |
| 6247 | #endif // !CAPNP_LITE |
| 6248 | inline void Declaration::Const::Builder::setValue( ::capnp::compiler::Expression::Reader value) { |
| 6249 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 6250 | ::capnp::bounded<6>() * ::capnp::POINTERS), value); |
| 6251 | } |
| 6252 | inline ::capnp::compiler::Expression::Builder Declaration::Const::Builder::initValue() { |
| 6253 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 6254 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6255 | } |
| 6256 | inline void Declaration::Const::Builder::adoptValue( |
| 6257 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 6258 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 6259 | ::capnp::bounded<6>() * ::capnp::POINTERS), kj::mv(value)); |
| 6260 | } |
| 6261 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Const::Builder::disownValue() { |
| 6262 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 6263 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6264 | } |
| 6265 | |
| 6266 | inline bool Declaration::Field::Reader::hasType() const { |
| 6267 | return !_reader.getPointerField( |
| 6268 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6269 | } |
| 6270 | inline bool Declaration::Field::Builder::hasType() { |
| 6271 | return !_builder.getPointerField( |
| 6272 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6273 | } |
| 6274 | inline ::capnp::compiler::Expression::Reader Declaration::Field::Reader::getType() const { |
| 6275 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 6276 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6277 | } |
| 6278 | inline ::capnp::compiler::Expression::Builder Declaration::Field::Builder::getType() { |
| 6279 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 6280 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6281 | } |
| 6282 | #if !CAPNP_LITE |
| 6283 | inline ::capnp::compiler::Expression::Pipeline Declaration::Field::Pipeline::getType() { |
| 6284 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(5)); |
| 6285 | } |
| 6286 | #endif // !CAPNP_LITE |
| 6287 | inline void Declaration::Field::Builder::setType( ::capnp::compiler::Expression::Reader value) { |
| 6288 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 6289 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 6290 | } |
| 6291 | inline ::capnp::compiler::Expression::Builder Declaration::Field::Builder::initType() { |
| 6292 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 6293 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6294 | } |
| 6295 | inline void Declaration::Field::Builder::adoptType( |
| 6296 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 6297 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 6298 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 6299 | } |
| 6300 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Field::Builder::disownType() { |
| 6301 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 6302 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6303 | } |
| 6304 | |
| 6305 | inline typename Declaration::Field::DefaultValue::Reader Declaration::Field::Reader::getDefaultValue() const { |
| 6306 | return typename Declaration::Field::DefaultValue::Reader(_reader); |
| 6307 | } |
| 6308 | inline typename Declaration::Field::DefaultValue::Builder Declaration::Field::Builder::getDefaultValue() { |
| 6309 | return typename Declaration::Field::DefaultValue::Builder(_builder); |
| 6310 | } |
| 6311 | #if !CAPNP_LITE |
| 6312 | inline typename Declaration::Field::DefaultValue::Pipeline Declaration::Field::Pipeline::getDefaultValue() { |
| 6313 | return typename Declaration::Field::DefaultValue::Pipeline(_typeless.noop()); |
| 6314 | } |
| 6315 | #endif // !CAPNP_LITE |
| 6316 | inline typename Declaration::Field::DefaultValue::Builder Declaration::Field::Builder::initDefaultValue() { |
| 6317 | _builder.setDataField< ::uint16_t>(::capnp::bounded<6>() * ::capnp::ELEMENTS, 0); |
| 6318 | _builder.getPointerField(::capnp::bounded<6>() * ::capnp::POINTERS).clear(); |
| 6319 | return typename Declaration::Field::DefaultValue::Builder(_builder); |
| 6320 | } |
| 6321 | inline ::capnp::compiler::Declaration::Field::DefaultValue::Which Declaration::Field::DefaultValue::Reader::which() const { |
| 6322 | return _reader.getDataField<Which>( |
| 6323 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
| 6324 | } |
| 6325 | inline ::capnp::compiler::Declaration::Field::DefaultValue::Which Declaration::Field::DefaultValue::Builder::which() { |
| 6326 | return _builder.getDataField<Which>( |
| 6327 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
| 6328 | } |
| 6329 | |
| 6330 | inline bool Declaration::Field::DefaultValue::Reader::isNone() const { |
| 6331 | return which() == Declaration::Field::DefaultValue::NONE; |
| 6332 | } |
| 6333 | inline bool Declaration::Field::DefaultValue::Builder::isNone() { |
| 6334 | return which() == Declaration::Field::DefaultValue::NONE; |
| 6335 | } |
| 6336 | inline ::capnp::Void Declaration::Field::DefaultValue::Reader::getNone() const { |
| 6337 | KJ_IREQUIRE((which() == Declaration::Field::DefaultValue::NONE), |
| 6338 | "Must check which() before get()ing a union member." ); |
| 6339 | return _reader.getDataField< ::capnp::Void>( |
| 6340 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6341 | } |
| 6342 | |
| 6343 | inline ::capnp::Void Declaration::Field::DefaultValue::Builder::getNone() { |
| 6344 | KJ_IREQUIRE((which() == Declaration::Field::DefaultValue::NONE), |
| 6345 | "Must check which() before get()ing a union member." ); |
| 6346 | return _builder.getDataField< ::capnp::Void>( |
| 6347 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6348 | } |
| 6349 | inline void Declaration::Field::DefaultValue::Builder::setNone( ::capnp::Void value) { |
| 6350 | _builder.setDataField<Declaration::Field::DefaultValue::Which>( |
| 6351 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Field::DefaultValue::NONE); |
| 6352 | _builder.setDataField< ::capnp::Void>( |
| 6353 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 6354 | } |
| 6355 | |
| 6356 | inline bool Declaration::Field::DefaultValue::Reader::isValue() const { |
| 6357 | return which() == Declaration::Field::DefaultValue::VALUE; |
| 6358 | } |
| 6359 | inline bool Declaration::Field::DefaultValue::Builder::isValue() { |
| 6360 | return which() == Declaration::Field::DefaultValue::VALUE; |
| 6361 | } |
| 6362 | inline bool Declaration::Field::DefaultValue::Reader::hasValue() const { |
| 6363 | if (which() != Declaration::Field::DefaultValue::VALUE) return false; |
| 6364 | return !_reader.getPointerField( |
| 6365 | ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); |
| 6366 | } |
| 6367 | inline bool Declaration::Field::DefaultValue::Builder::hasValue() { |
| 6368 | if (which() != Declaration::Field::DefaultValue::VALUE) return false; |
| 6369 | return !_builder.getPointerField( |
| 6370 | ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); |
| 6371 | } |
| 6372 | inline ::capnp::compiler::Expression::Reader Declaration::Field::DefaultValue::Reader::getValue() const { |
| 6373 | KJ_IREQUIRE((which() == Declaration::Field::DefaultValue::VALUE), |
| 6374 | "Must check which() before get()ing a union member." ); |
| 6375 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 6376 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6377 | } |
| 6378 | inline ::capnp::compiler::Expression::Builder Declaration::Field::DefaultValue::Builder::getValue() { |
| 6379 | KJ_IREQUIRE((which() == Declaration::Field::DefaultValue::VALUE), |
| 6380 | "Must check which() before get()ing a union member." ); |
| 6381 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 6382 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6383 | } |
| 6384 | inline void Declaration::Field::DefaultValue::Builder::setValue( ::capnp::compiler::Expression::Reader value) { |
| 6385 | _builder.setDataField<Declaration::Field::DefaultValue::Which>( |
| 6386 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Field::DefaultValue::VALUE); |
| 6387 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 6388 | ::capnp::bounded<6>() * ::capnp::POINTERS), value); |
| 6389 | } |
| 6390 | inline ::capnp::compiler::Expression::Builder Declaration::Field::DefaultValue::Builder::initValue() { |
| 6391 | _builder.setDataField<Declaration::Field::DefaultValue::Which>( |
| 6392 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Field::DefaultValue::VALUE); |
| 6393 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 6394 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6395 | } |
| 6396 | inline void Declaration::Field::DefaultValue::Builder::adoptValue( |
| 6397 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 6398 | _builder.setDataField<Declaration::Field::DefaultValue::Which>( |
| 6399 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Field::DefaultValue::VALUE); |
| 6400 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 6401 | ::capnp::bounded<6>() * ::capnp::POINTERS), kj::mv(value)); |
| 6402 | } |
| 6403 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Field::DefaultValue::Builder::disownValue() { |
| 6404 | KJ_IREQUIRE((which() == Declaration::Field::DefaultValue::VALUE), |
| 6405 | "Must check which() before get()ing a union member." ); |
| 6406 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 6407 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6408 | } |
| 6409 | |
| 6410 | inline bool Declaration::Interface::Reader::hasSuperclasses() const { |
| 6411 | return !_reader.getPointerField( |
| 6412 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6413 | } |
| 6414 | inline bool Declaration::Interface::Builder::hasSuperclasses() { |
| 6415 | return !_builder.getPointerField( |
| 6416 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6417 | } |
| 6418 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader Declaration::Interface::Reader::getSuperclasses() const { |
| 6419 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( |
| 6420 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6421 | } |
| 6422 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder Declaration::Interface::Builder::getSuperclasses() { |
| 6423 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( |
| 6424 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6425 | } |
| 6426 | inline void Declaration::Interface::Builder::setSuperclasses( ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Reader value) { |
| 6427 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( |
| 6428 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 6429 | } |
| 6430 | inline ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>::Builder Declaration::Interface::Builder::initSuperclasses(unsigned int size) { |
| 6431 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( |
| 6432 | ::capnp::bounded<5>() * ::capnp::POINTERS), size); |
| 6433 | } |
| 6434 | inline void Declaration::Interface::Builder::adoptSuperclasses( |
| 6435 | ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>&& value) { |
| 6436 | ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( |
| 6437 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 6438 | } |
| 6439 | inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>> Declaration::Interface::Builder::disownSuperclasses() { |
| 6440 | return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Expression, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( |
| 6441 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6442 | } |
| 6443 | |
| 6444 | inline bool Declaration::Method::Reader::hasParams() const { |
| 6445 | return !_reader.getPointerField( |
| 6446 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6447 | } |
| 6448 | inline bool Declaration::Method::Builder::hasParams() { |
| 6449 | return !_builder.getPointerField( |
| 6450 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6451 | } |
| 6452 | inline ::capnp::compiler::Declaration::ParamList::Reader Declaration::Method::Reader::getParams() const { |
| 6453 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::get(_reader.getPointerField( |
| 6454 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6455 | } |
| 6456 | inline ::capnp::compiler::Declaration::ParamList::Builder Declaration::Method::Builder::getParams() { |
| 6457 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::get(_builder.getPointerField( |
| 6458 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6459 | } |
| 6460 | #if !CAPNP_LITE |
| 6461 | inline ::capnp::compiler::Declaration::ParamList::Pipeline Declaration::Method::Pipeline::getParams() { |
| 6462 | return ::capnp::compiler::Declaration::ParamList::Pipeline(_typeless.getPointerField(5)); |
| 6463 | } |
| 6464 | #endif // !CAPNP_LITE |
| 6465 | inline void Declaration::Method::Builder::setParams( ::capnp::compiler::Declaration::ParamList::Reader value) { |
| 6466 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::set(_builder.getPointerField( |
| 6467 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 6468 | } |
| 6469 | inline ::capnp::compiler::Declaration::ParamList::Builder Declaration::Method::Builder::initParams() { |
| 6470 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::init(_builder.getPointerField( |
| 6471 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6472 | } |
| 6473 | inline void Declaration::Method::Builder::adoptParams( |
| 6474 | ::capnp::Orphan< ::capnp::compiler::Declaration::ParamList>&& value) { |
| 6475 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::adopt(_builder.getPointerField( |
| 6476 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 6477 | } |
| 6478 | inline ::capnp::Orphan< ::capnp::compiler::Declaration::ParamList> Declaration::Method::Builder::disownParams() { |
| 6479 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::disown(_builder.getPointerField( |
| 6480 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6481 | } |
| 6482 | |
| 6483 | inline typename Declaration::Method::Results::Reader Declaration::Method::Reader::getResults() const { |
| 6484 | return typename Declaration::Method::Results::Reader(_reader); |
| 6485 | } |
| 6486 | inline typename Declaration::Method::Results::Builder Declaration::Method::Builder::getResults() { |
| 6487 | return typename Declaration::Method::Results::Builder(_builder); |
| 6488 | } |
| 6489 | #if !CAPNP_LITE |
| 6490 | inline typename Declaration::Method::Results::Pipeline Declaration::Method::Pipeline::getResults() { |
| 6491 | return typename Declaration::Method::Results::Pipeline(_typeless.noop()); |
| 6492 | } |
| 6493 | #endif // !CAPNP_LITE |
| 6494 | inline typename Declaration::Method::Results::Builder Declaration::Method::Builder::initResults() { |
| 6495 | _builder.setDataField< ::uint16_t>(::capnp::bounded<6>() * ::capnp::ELEMENTS, 0); |
| 6496 | _builder.getPointerField(::capnp::bounded<6>() * ::capnp::POINTERS).clear(); |
| 6497 | return typename Declaration::Method::Results::Builder(_builder); |
| 6498 | } |
| 6499 | inline ::capnp::compiler::Declaration::Method::Results::Which Declaration::Method::Results::Reader::which() const { |
| 6500 | return _reader.getDataField<Which>( |
| 6501 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
| 6502 | } |
| 6503 | inline ::capnp::compiler::Declaration::Method::Results::Which Declaration::Method::Results::Builder::which() { |
| 6504 | return _builder.getDataField<Which>( |
| 6505 | ::capnp::bounded<6>() * ::capnp::ELEMENTS); |
| 6506 | } |
| 6507 | |
| 6508 | inline bool Declaration::Method::Results::Reader::isNone() const { |
| 6509 | return which() == Declaration::Method::Results::NONE; |
| 6510 | } |
| 6511 | inline bool Declaration::Method::Results::Builder::isNone() { |
| 6512 | return which() == Declaration::Method::Results::NONE; |
| 6513 | } |
| 6514 | inline ::capnp::Void Declaration::Method::Results::Reader::getNone() const { |
| 6515 | KJ_IREQUIRE((which() == Declaration::Method::Results::NONE), |
| 6516 | "Must check which() before get()ing a union member." ); |
| 6517 | return _reader.getDataField< ::capnp::Void>( |
| 6518 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6519 | } |
| 6520 | |
| 6521 | inline ::capnp::Void Declaration::Method::Results::Builder::getNone() { |
| 6522 | KJ_IREQUIRE((which() == Declaration::Method::Results::NONE), |
| 6523 | "Must check which() before get()ing a union member." ); |
| 6524 | return _builder.getDataField< ::capnp::Void>( |
| 6525 | ::capnp::bounded<0>() * ::capnp::ELEMENTS); |
| 6526 | } |
| 6527 | inline void Declaration::Method::Results::Builder::setNone( ::capnp::Void value) { |
| 6528 | _builder.setDataField<Declaration::Method::Results::Which>( |
| 6529 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Method::Results::NONE); |
| 6530 | _builder.setDataField< ::capnp::Void>( |
| 6531 | ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); |
| 6532 | } |
| 6533 | |
| 6534 | inline bool Declaration::Method::Results::Reader::isExplicit() const { |
| 6535 | return which() == Declaration::Method::Results::EXPLICIT; |
| 6536 | } |
| 6537 | inline bool Declaration::Method::Results::Builder::isExplicit() { |
| 6538 | return which() == Declaration::Method::Results::EXPLICIT; |
| 6539 | } |
| 6540 | inline bool Declaration::Method::Results::Reader::hasExplicit() const { |
| 6541 | if (which() != Declaration::Method::Results::EXPLICIT) return false; |
| 6542 | return !_reader.getPointerField( |
| 6543 | ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); |
| 6544 | } |
| 6545 | inline bool Declaration::Method::Results::Builder::hasExplicit() { |
| 6546 | if (which() != Declaration::Method::Results::EXPLICIT) return false; |
| 6547 | return !_builder.getPointerField( |
| 6548 | ::capnp::bounded<6>() * ::capnp::POINTERS).isNull(); |
| 6549 | } |
| 6550 | inline ::capnp::compiler::Declaration::ParamList::Reader Declaration::Method::Results::Reader::getExplicit() const { |
| 6551 | KJ_IREQUIRE((which() == Declaration::Method::Results::EXPLICIT), |
| 6552 | "Must check which() before get()ing a union member." ); |
| 6553 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::get(_reader.getPointerField( |
| 6554 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6555 | } |
| 6556 | inline ::capnp::compiler::Declaration::ParamList::Builder Declaration::Method::Results::Builder::getExplicit() { |
| 6557 | KJ_IREQUIRE((which() == Declaration::Method::Results::EXPLICIT), |
| 6558 | "Must check which() before get()ing a union member." ); |
| 6559 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::get(_builder.getPointerField( |
| 6560 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6561 | } |
| 6562 | inline void Declaration::Method::Results::Builder::setExplicit( ::capnp::compiler::Declaration::ParamList::Reader value) { |
| 6563 | _builder.setDataField<Declaration::Method::Results::Which>( |
| 6564 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Method::Results::EXPLICIT); |
| 6565 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::set(_builder.getPointerField( |
| 6566 | ::capnp::bounded<6>() * ::capnp::POINTERS), value); |
| 6567 | } |
| 6568 | inline ::capnp::compiler::Declaration::ParamList::Builder Declaration::Method::Results::Builder::initExplicit() { |
| 6569 | _builder.setDataField<Declaration::Method::Results::Which>( |
| 6570 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Method::Results::EXPLICIT); |
| 6571 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::init(_builder.getPointerField( |
| 6572 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6573 | } |
| 6574 | inline void Declaration::Method::Results::Builder::adoptExplicit( |
| 6575 | ::capnp::Orphan< ::capnp::compiler::Declaration::ParamList>&& value) { |
| 6576 | _builder.setDataField<Declaration::Method::Results::Which>( |
| 6577 | ::capnp::bounded<6>() * ::capnp::ELEMENTS, Declaration::Method::Results::EXPLICIT); |
| 6578 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::adopt(_builder.getPointerField( |
| 6579 | ::capnp::bounded<6>() * ::capnp::POINTERS), kj::mv(value)); |
| 6580 | } |
| 6581 | inline ::capnp::Orphan< ::capnp::compiler::Declaration::ParamList> Declaration::Method::Results::Builder::disownExplicit() { |
| 6582 | KJ_IREQUIRE((which() == Declaration::Method::Results::EXPLICIT), |
| 6583 | "Must check which() before get()ing a union member." ); |
| 6584 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::ParamList>::disown(_builder.getPointerField( |
| 6585 | ::capnp::bounded<6>() * ::capnp::POINTERS)); |
| 6586 | } |
| 6587 | |
| 6588 | inline bool Declaration::Annotation::Reader::hasType() const { |
| 6589 | return !_reader.getPointerField( |
| 6590 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6591 | } |
| 6592 | inline bool Declaration::Annotation::Builder::hasType() { |
| 6593 | return !_builder.getPointerField( |
| 6594 | ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); |
| 6595 | } |
| 6596 | inline ::capnp::compiler::Expression::Reader Declaration::Annotation::Reader::getType() const { |
| 6597 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_reader.getPointerField( |
| 6598 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6599 | } |
| 6600 | inline ::capnp::compiler::Expression::Builder Declaration::Annotation::Builder::getType() { |
| 6601 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::get(_builder.getPointerField( |
| 6602 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6603 | } |
| 6604 | #if !CAPNP_LITE |
| 6605 | inline ::capnp::compiler::Expression::Pipeline Declaration::Annotation::Pipeline::getType() { |
| 6606 | return ::capnp::compiler::Expression::Pipeline(_typeless.getPointerField(5)); |
| 6607 | } |
| 6608 | #endif // !CAPNP_LITE |
| 6609 | inline void Declaration::Annotation::Builder::setType( ::capnp::compiler::Expression::Reader value) { |
| 6610 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::set(_builder.getPointerField( |
| 6611 | ::capnp::bounded<5>() * ::capnp::POINTERS), value); |
| 6612 | } |
| 6613 | inline ::capnp::compiler::Expression::Builder Declaration::Annotation::Builder::initType() { |
| 6614 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::init(_builder.getPointerField( |
| 6615 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6616 | } |
| 6617 | inline void Declaration::Annotation::Builder::adoptType( |
| 6618 | ::capnp::Orphan< ::capnp::compiler::Expression>&& value) { |
| 6619 | ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::adopt(_builder.getPointerField( |
| 6620 | ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); |
| 6621 | } |
| 6622 | inline ::capnp::Orphan< ::capnp::compiler::Expression> Declaration::Annotation::Builder::disownType() { |
| 6623 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Expression>::disown(_builder.getPointerField( |
| 6624 | ::capnp::bounded<5>() * ::capnp::POINTERS)); |
| 6625 | } |
| 6626 | |
| 6627 | inline bool Declaration::Annotation::Reader::getTargetsFile() const { |
| 6628 | return _reader.getDataField<bool>( |
| 6629 | ::capnp::bounded<96>() * ::capnp::ELEMENTS); |
| 6630 | } |
| 6631 | |
| 6632 | inline bool Declaration::Annotation::Builder::getTargetsFile() { |
| 6633 | return _builder.getDataField<bool>( |
| 6634 | ::capnp::bounded<96>() * ::capnp::ELEMENTS); |
| 6635 | } |
| 6636 | inline void Declaration::Annotation::Builder::setTargetsFile(bool value) { |
| 6637 | _builder.setDataField<bool>( |
| 6638 | ::capnp::bounded<96>() * ::capnp::ELEMENTS, value); |
| 6639 | } |
| 6640 | |
| 6641 | inline bool Declaration::Annotation::Reader::getTargetsConst() const { |
| 6642 | return _reader.getDataField<bool>( |
| 6643 | ::capnp::bounded<97>() * ::capnp::ELEMENTS); |
| 6644 | } |
| 6645 | |
| 6646 | inline bool Declaration::Annotation::Builder::getTargetsConst() { |
| 6647 | return _builder.getDataField<bool>( |
| 6648 | ::capnp::bounded<97>() * ::capnp::ELEMENTS); |
| 6649 | } |
| 6650 | inline void Declaration::Annotation::Builder::setTargetsConst(bool value) { |
| 6651 | _builder.setDataField<bool>( |
| 6652 | ::capnp::bounded<97>() * ::capnp::ELEMENTS, value); |
| 6653 | } |
| 6654 | |
| 6655 | inline bool Declaration::Annotation::Reader::getTargetsEnum() const { |
| 6656 | return _reader.getDataField<bool>( |
| 6657 | ::capnp::bounded<98>() * ::capnp::ELEMENTS); |
| 6658 | } |
| 6659 | |
| 6660 | inline bool Declaration::Annotation::Builder::getTargetsEnum() { |
| 6661 | return _builder.getDataField<bool>( |
| 6662 | ::capnp::bounded<98>() * ::capnp::ELEMENTS); |
| 6663 | } |
| 6664 | inline void Declaration::Annotation::Builder::setTargetsEnum(bool value) { |
| 6665 | _builder.setDataField<bool>( |
| 6666 | ::capnp::bounded<98>() * ::capnp::ELEMENTS, value); |
| 6667 | } |
| 6668 | |
| 6669 | inline bool Declaration::Annotation::Reader::getTargetsEnumerant() const { |
| 6670 | return _reader.getDataField<bool>( |
| 6671 | ::capnp::bounded<99>() * ::capnp::ELEMENTS); |
| 6672 | } |
| 6673 | |
| 6674 | inline bool Declaration::Annotation::Builder::getTargetsEnumerant() { |
| 6675 | return _builder.getDataField<bool>( |
| 6676 | ::capnp::bounded<99>() * ::capnp::ELEMENTS); |
| 6677 | } |
| 6678 | inline void Declaration::Annotation::Builder::setTargetsEnumerant(bool value) { |
| 6679 | _builder.setDataField<bool>( |
| 6680 | ::capnp::bounded<99>() * ::capnp::ELEMENTS, value); |
| 6681 | } |
| 6682 | |
| 6683 | inline bool Declaration::Annotation::Reader::getTargetsStruct() const { |
| 6684 | return _reader.getDataField<bool>( |
| 6685 | ::capnp::bounded<100>() * ::capnp::ELEMENTS); |
| 6686 | } |
| 6687 | |
| 6688 | inline bool Declaration::Annotation::Builder::getTargetsStruct() { |
| 6689 | return _builder.getDataField<bool>( |
| 6690 | ::capnp::bounded<100>() * ::capnp::ELEMENTS); |
| 6691 | } |
| 6692 | inline void Declaration::Annotation::Builder::setTargetsStruct(bool value) { |
| 6693 | _builder.setDataField<bool>( |
| 6694 | ::capnp::bounded<100>() * ::capnp::ELEMENTS, value); |
| 6695 | } |
| 6696 | |
| 6697 | inline bool Declaration::Annotation::Reader::getTargetsField() const { |
| 6698 | return _reader.getDataField<bool>( |
| 6699 | ::capnp::bounded<101>() * ::capnp::ELEMENTS); |
| 6700 | } |
| 6701 | |
| 6702 | inline bool Declaration::Annotation::Builder::getTargetsField() { |
| 6703 | return _builder.getDataField<bool>( |
| 6704 | ::capnp::bounded<101>() * ::capnp::ELEMENTS); |
| 6705 | } |
| 6706 | inline void Declaration::Annotation::Builder::setTargetsField(bool value) { |
| 6707 | _builder.setDataField<bool>( |
| 6708 | ::capnp::bounded<101>() * ::capnp::ELEMENTS, value); |
| 6709 | } |
| 6710 | |
| 6711 | inline bool Declaration::Annotation::Reader::getTargetsUnion() const { |
| 6712 | return _reader.getDataField<bool>( |
| 6713 | ::capnp::bounded<102>() * ::capnp::ELEMENTS); |
| 6714 | } |
| 6715 | |
| 6716 | inline bool Declaration::Annotation::Builder::getTargetsUnion() { |
| 6717 | return _builder.getDataField<bool>( |
| 6718 | ::capnp::bounded<102>() * ::capnp::ELEMENTS); |
| 6719 | } |
| 6720 | inline void Declaration::Annotation::Builder::setTargetsUnion(bool value) { |
| 6721 | _builder.setDataField<bool>( |
| 6722 | ::capnp::bounded<102>() * ::capnp::ELEMENTS, value); |
| 6723 | } |
| 6724 | |
| 6725 | inline bool Declaration::Annotation::Reader::getTargetsGroup() const { |
| 6726 | return _reader.getDataField<bool>( |
| 6727 | ::capnp::bounded<103>() * ::capnp::ELEMENTS); |
| 6728 | } |
| 6729 | |
| 6730 | inline bool Declaration::Annotation::Builder::getTargetsGroup() { |
| 6731 | return _builder.getDataField<bool>( |
| 6732 | ::capnp::bounded<103>() * ::capnp::ELEMENTS); |
| 6733 | } |
| 6734 | inline void Declaration::Annotation::Builder::setTargetsGroup(bool value) { |
| 6735 | _builder.setDataField<bool>( |
| 6736 | ::capnp::bounded<103>() * ::capnp::ELEMENTS, value); |
| 6737 | } |
| 6738 | |
| 6739 | inline bool Declaration::Annotation::Reader::getTargetsInterface() const { |
| 6740 | return _reader.getDataField<bool>( |
| 6741 | ::capnp::bounded<104>() * ::capnp::ELEMENTS); |
| 6742 | } |
| 6743 | |
| 6744 | inline bool Declaration::Annotation::Builder::getTargetsInterface() { |
| 6745 | return _builder.getDataField<bool>( |
| 6746 | ::capnp::bounded<104>() * ::capnp::ELEMENTS); |
| 6747 | } |
| 6748 | inline void Declaration::Annotation::Builder::setTargetsInterface(bool value) { |
| 6749 | _builder.setDataField<bool>( |
| 6750 | ::capnp::bounded<104>() * ::capnp::ELEMENTS, value); |
| 6751 | } |
| 6752 | |
| 6753 | inline bool Declaration::Annotation::Reader::getTargetsMethod() const { |
| 6754 | return _reader.getDataField<bool>( |
| 6755 | ::capnp::bounded<105>() * ::capnp::ELEMENTS); |
| 6756 | } |
| 6757 | |
| 6758 | inline bool Declaration::Annotation::Builder::getTargetsMethod() { |
| 6759 | return _builder.getDataField<bool>( |
| 6760 | ::capnp::bounded<105>() * ::capnp::ELEMENTS); |
| 6761 | } |
| 6762 | inline void Declaration::Annotation::Builder::setTargetsMethod(bool value) { |
| 6763 | _builder.setDataField<bool>( |
| 6764 | ::capnp::bounded<105>() * ::capnp::ELEMENTS, value); |
| 6765 | } |
| 6766 | |
| 6767 | inline bool Declaration::Annotation::Reader::getTargetsParam() const { |
| 6768 | return _reader.getDataField<bool>( |
| 6769 | ::capnp::bounded<106>() * ::capnp::ELEMENTS); |
| 6770 | } |
| 6771 | |
| 6772 | inline bool Declaration::Annotation::Builder::getTargetsParam() { |
| 6773 | return _builder.getDataField<bool>( |
| 6774 | ::capnp::bounded<106>() * ::capnp::ELEMENTS); |
| 6775 | } |
| 6776 | inline void Declaration::Annotation::Builder::setTargetsParam(bool value) { |
| 6777 | _builder.setDataField<bool>( |
| 6778 | ::capnp::bounded<106>() * ::capnp::ELEMENTS, value); |
| 6779 | } |
| 6780 | |
| 6781 | inline bool Declaration::Annotation::Reader::getTargetsAnnotation() const { |
| 6782 | return _reader.getDataField<bool>( |
| 6783 | ::capnp::bounded<107>() * ::capnp::ELEMENTS); |
| 6784 | } |
| 6785 | |
| 6786 | inline bool Declaration::Annotation::Builder::getTargetsAnnotation() { |
| 6787 | return _builder.getDataField<bool>( |
| 6788 | ::capnp::bounded<107>() * ::capnp::ELEMENTS); |
| 6789 | } |
| 6790 | inline void Declaration::Annotation::Builder::setTargetsAnnotation(bool value) { |
| 6791 | _builder.setDataField<bool>( |
| 6792 | ::capnp::bounded<107>() * ::capnp::ELEMENTS, value); |
| 6793 | } |
| 6794 | |
| 6795 | inline bool ParsedFile::Reader::hasRoot() const { |
| 6796 | return !_reader.getPointerField( |
| 6797 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 6798 | } |
| 6799 | inline bool ParsedFile::Builder::hasRoot() { |
| 6800 | return !_builder.getPointerField( |
| 6801 | ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); |
| 6802 | } |
| 6803 | inline ::capnp::compiler::Declaration::Reader ParsedFile::Reader::getRoot() const { |
| 6804 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::get(_reader.getPointerField( |
| 6805 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 6806 | } |
| 6807 | inline ::capnp::compiler::Declaration::Builder ParsedFile::Builder::getRoot() { |
| 6808 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::get(_builder.getPointerField( |
| 6809 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 6810 | } |
| 6811 | #if !CAPNP_LITE |
| 6812 | inline ::capnp::compiler::Declaration::Pipeline ParsedFile::Pipeline::getRoot() { |
| 6813 | return ::capnp::compiler::Declaration::Pipeline(_typeless.getPointerField(0)); |
| 6814 | } |
| 6815 | #endif // !CAPNP_LITE |
| 6816 | inline void ParsedFile::Builder::setRoot( ::capnp::compiler::Declaration::Reader value) { |
| 6817 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::set(_builder.getPointerField( |
| 6818 | ::capnp::bounded<0>() * ::capnp::POINTERS), value); |
| 6819 | } |
| 6820 | inline ::capnp::compiler::Declaration::Builder ParsedFile::Builder::initRoot() { |
| 6821 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::init(_builder.getPointerField( |
| 6822 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 6823 | } |
| 6824 | inline void ParsedFile::Builder::adoptRoot( |
| 6825 | ::capnp::Orphan< ::capnp::compiler::Declaration>&& value) { |
| 6826 | ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::adopt(_builder.getPointerField( |
| 6827 | ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); |
| 6828 | } |
| 6829 | inline ::capnp::Orphan< ::capnp::compiler::Declaration> ParsedFile::Builder::disownRoot() { |
| 6830 | return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::disown(_builder.getPointerField( |
| 6831 | ::capnp::bounded<0>() * ::capnp::POINTERS)); |
| 6832 | } |
| 6833 | |
| 6834 | } // namespace |
| 6835 | } // namespace |
| 6836 | |
| 6837 | |