-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparsetable.pb.h
770 lines (701 loc) · 28.9 KB
/
parsetable.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: parsetable.proto
#ifndef PROTOBUF_parsetable_2eproto__INCLUDED
#define PROTOBUF_parsetable_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace protobuf_parsetable_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[2];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsParseTable_EntryImpl();
void InitDefaultsParseTable_Entry();
void InitDefaultsParseTableImpl();
void InitDefaultsParseTable();
inline void InitDefaults() {
InitDefaultsParseTable_Entry();
InitDefaultsParseTable();
}
} // namespace protobuf_parsetable_2eproto
namespace parser {
class ParseTable;
class ParseTableDefaultTypeInternal;
extern ParseTableDefaultTypeInternal _ParseTable_default_instance_;
class ParseTable_Entry;
class ParseTable_EntryDefaultTypeInternal;
extern ParseTable_EntryDefaultTypeInternal _ParseTable_Entry_default_instance_;
} // namespace parser
namespace parser {
enum ParseTable_Entry_States {
ParseTable_Entry_States_ERROR = 0,
ParseTable_Entry_States_SYNC = 1,
ParseTable_Entry_States_PROD = 2
};
bool ParseTable_Entry_States_IsValid(int value);
const ParseTable_Entry_States ParseTable_Entry_States_States_MIN = ParseTable_Entry_States_ERROR;
const ParseTable_Entry_States ParseTable_Entry_States_States_MAX = ParseTable_Entry_States_PROD;
const int ParseTable_Entry_States_States_ARRAYSIZE = ParseTable_Entry_States_States_MAX + 1;
const ::google::protobuf::EnumDescriptor* ParseTable_Entry_States_descriptor();
inline const ::std::string& ParseTable_Entry_States_Name(ParseTable_Entry_States value) {
return ::google::protobuf::internal::NameOfEnum(
ParseTable_Entry_States_descriptor(), value);
}
inline bool ParseTable_Entry_States_Parse(
const ::std::string& name, ParseTable_Entry_States* value) {
return ::google::protobuf::internal::ParseNamedEnum<ParseTable_Entry_States>(
ParseTable_Entry_States_descriptor(), name, value);
}
// ===================================================================
class ParseTable_Entry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parser.ParseTable.Entry) */ {
public:
ParseTable_Entry();
virtual ~ParseTable_Entry();
ParseTable_Entry(const ParseTable_Entry& from);
inline ParseTable_Entry& operator=(const ParseTable_Entry& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ParseTable_Entry(ParseTable_Entry&& from) noexcept
: ParseTable_Entry() {
*this = ::std::move(from);
}
inline ParseTable_Entry& operator=(ParseTable_Entry&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ParseTable_Entry& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ParseTable_Entry* internal_default_instance() {
return reinterpret_cast<const ParseTable_Entry*>(
&_ParseTable_Entry_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
0;
void Swap(ParseTable_Entry* other);
friend void swap(ParseTable_Entry& a, ParseTable_Entry& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ParseTable_Entry* New() const PROTOBUF_FINAL { return New(NULL); }
ParseTable_Entry* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const ParseTable_Entry& from);
void MergeFrom(const ParseTable_Entry& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(ParseTable_Entry* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
typedef ParseTable_Entry_States States;
static const States ERROR =
ParseTable_Entry_States_ERROR;
static const States SYNC =
ParseTable_Entry_States_SYNC;
static const States PROD =
ParseTable_Entry_States_PROD;
static inline bool States_IsValid(int value) {
return ParseTable_Entry_States_IsValid(value);
}
static const States States_MIN =
ParseTable_Entry_States_States_MIN;
static const States States_MAX =
ParseTable_Entry_States_States_MAX;
static const int States_ARRAYSIZE =
ParseTable_Entry_States_States_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
States_descriptor() {
return ParseTable_Entry_States_descriptor();
}
static inline const ::std::string& States_Name(States value) {
return ParseTable_Entry_States_Name(value);
}
static inline bool States_Parse(const ::std::string& name,
States* value) {
return ParseTable_Entry_States_Parse(name, value);
}
// accessors -------------------------------------------------------
// repeated string productions = 4;
int productions_size() const;
void clear_productions();
static const int kProductionsFieldNumber = 4;
const ::std::string& productions(int index) const;
::std::string* mutable_productions(int index);
void set_productions(int index, const ::std::string& value);
#if LANG_CXX11
void set_productions(int index, ::std::string&& value);
#endif
void set_productions(int index, const char* value);
void set_productions(int index, const char* value, size_t size);
::std::string* add_productions();
void add_productions(const ::std::string& value);
#if LANG_CXX11
void add_productions(::std::string&& value);
#endif
void add_productions(const char* value);
void add_productions(const char* value, size_t size);
const ::google::protobuf::RepeatedPtrField< ::std::string>& productions() const;
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_productions();
// required string nonterm = 2;
bool has_nonterm() const;
void clear_nonterm();
static const int kNontermFieldNumber = 2;
const ::std::string& nonterm() const;
void set_nonterm(const ::std::string& value);
#if LANG_CXX11
void set_nonterm(::std::string&& value);
#endif
void set_nonterm(const char* value);
void set_nonterm(const char* value, size_t size);
::std::string* mutable_nonterm();
::std::string* release_nonterm();
void set_allocated_nonterm(::std::string* nonterm);
// required string term = 3;
bool has_term() const;
void clear_term();
static const int kTermFieldNumber = 3;
const ::std::string& term() const;
void set_term(const ::std::string& value);
#if LANG_CXX11
void set_term(::std::string&& value);
#endif
void set_term(const char* value);
void set_term(const char* value, size_t size);
::std::string* mutable_term();
::std::string* release_term();
void set_allocated_term(::std::string* term);
// required .parser.ParseTable.Entry.States state = 1;
bool has_state() const;
void clear_state();
static const int kStateFieldNumber = 1;
::parser::ParseTable_Entry_States state() const;
void set_state(::parser::ParseTable_Entry_States value);
// @@protoc_insertion_point(class_scope:parser.ParseTable.Entry)
private:
void set_has_state();
void clear_has_state();
void set_has_nonterm();
void clear_has_nonterm();
void set_has_term();
void clear_has_term();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::RepeatedPtrField< ::std::string> productions_;
::google::protobuf::internal::ArenaStringPtr nonterm_;
::google::protobuf::internal::ArenaStringPtr term_;
int state_;
friend struct ::protobuf_parsetable_2eproto::TableStruct;
friend void ::protobuf_parsetable_2eproto::InitDefaultsParseTable_EntryImpl();
};
// -------------------------------------------------------------------
class ParseTable : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parser.ParseTable) */ {
public:
ParseTable();
virtual ~ParseTable();
ParseTable(const ParseTable& from);
inline ParseTable& operator=(const ParseTable& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ParseTable(ParseTable&& from) noexcept
: ParseTable() {
*this = ::std::move(from);
}
inline ParseTable& operator=(ParseTable&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ParseTable& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ParseTable* internal_default_instance() {
return reinterpret_cast<const ParseTable*>(
&_ParseTable_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1;
void Swap(ParseTable* other);
friend void swap(ParseTable& a, ParseTable& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ParseTable* New() const PROTOBUF_FINAL { return New(NULL); }
ParseTable* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const ParseTable& from);
void MergeFrom(const ParseTable& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(ParseTable* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
typedef ParseTable_Entry Entry;
// accessors -------------------------------------------------------
// repeated .parser.ParseTable.Entry entries = 2;
int entries_size() const;
void clear_entries();
static const int kEntriesFieldNumber = 2;
const ::parser::ParseTable_Entry& entries(int index) const;
::parser::ParseTable_Entry* mutable_entries(int index);
::parser::ParseTable_Entry* add_entries();
::google::protobuf::RepeatedPtrField< ::parser::ParseTable_Entry >*
mutable_entries();
const ::google::protobuf::RepeatedPtrField< ::parser::ParseTable_Entry >&
entries() const;
// required string starting_symbol = 1;
bool has_starting_symbol() const;
void clear_starting_symbol();
static const int kStartingSymbolFieldNumber = 1;
const ::std::string& starting_symbol() const;
void set_starting_symbol(const ::std::string& value);
#if LANG_CXX11
void set_starting_symbol(::std::string&& value);
#endif
void set_starting_symbol(const char* value);
void set_starting_symbol(const char* value, size_t size);
::std::string* mutable_starting_symbol();
::std::string* release_starting_symbol();
void set_allocated_starting_symbol(::std::string* starting_symbol);
// @@protoc_insertion_point(class_scope:parser.ParseTable)
private:
void set_has_starting_symbol();
void clear_has_starting_symbol();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::RepeatedPtrField< ::parser::ParseTable_Entry > entries_;
::google::protobuf::internal::ArenaStringPtr starting_symbol_;
friend struct ::protobuf_parsetable_2eproto::TableStruct;
friend void ::protobuf_parsetable_2eproto::InitDefaultsParseTableImpl();
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// ParseTable_Entry
// required .parser.ParseTable.Entry.States state = 1;
inline bool ParseTable_Entry::has_state() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ParseTable_Entry::set_has_state() {
_has_bits_[0] |= 0x00000004u;
}
inline void ParseTable_Entry::clear_has_state() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ParseTable_Entry::clear_state() {
state_ = 0;
clear_has_state();
}
inline ::parser::ParseTable_Entry_States ParseTable_Entry::state() const {
// @@protoc_insertion_point(field_get:parser.ParseTable.Entry.state)
return static_cast< ::parser::ParseTable_Entry_States >(state_);
}
inline void ParseTable_Entry::set_state(::parser::ParseTable_Entry_States value) {
assert(::parser::ParseTable_Entry_States_IsValid(value));
set_has_state();
state_ = value;
// @@protoc_insertion_point(field_set:parser.ParseTable.Entry.state)
}
// required string nonterm = 2;
inline bool ParseTable_Entry::has_nonterm() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ParseTable_Entry::set_has_nonterm() {
_has_bits_[0] |= 0x00000001u;
}
inline void ParseTable_Entry::clear_has_nonterm() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ParseTable_Entry::clear_nonterm() {
nonterm_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_nonterm();
}
inline const ::std::string& ParseTable_Entry::nonterm() const {
// @@protoc_insertion_point(field_get:parser.ParseTable.Entry.nonterm)
return nonterm_.GetNoArena();
}
inline void ParseTable_Entry::set_nonterm(const ::std::string& value) {
set_has_nonterm();
nonterm_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:parser.ParseTable.Entry.nonterm)
}
#if LANG_CXX11
inline void ParseTable_Entry::set_nonterm(::std::string&& value) {
set_has_nonterm();
nonterm_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:parser.ParseTable.Entry.nonterm)
}
#endif
inline void ParseTable_Entry::set_nonterm(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_nonterm();
nonterm_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:parser.ParseTable.Entry.nonterm)
}
inline void ParseTable_Entry::set_nonterm(const char* value, size_t size) {
set_has_nonterm();
nonterm_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:parser.ParseTable.Entry.nonterm)
}
inline ::std::string* ParseTable_Entry::mutable_nonterm() {
set_has_nonterm();
// @@protoc_insertion_point(field_mutable:parser.ParseTable.Entry.nonterm)
return nonterm_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ParseTable_Entry::release_nonterm() {
// @@protoc_insertion_point(field_release:parser.ParseTable.Entry.nonterm)
clear_has_nonterm();
return nonterm_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ParseTable_Entry::set_allocated_nonterm(::std::string* nonterm) {
if (nonterm != NULL) {
set_has_nonterm();
} else {
clear_has_nonterm();
}
nonterm_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), nonterm);
// @@protoc_insertion_point(field_set_allocated:parser.ParseTable.Entry.nonterm)
}
// required string term = 3;
inline bool ParseTable_Entry::has_term() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void ParseTable_Entry::set_has_term() {
_has_bits_[0] |= 0x00000002u;
}
inline void ParseTable_Entry::clear_has_term() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ParseTable_Entry::clear_term() {
term_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_term();
}
inline const ::std::string& ParseTable_Entry::term() const {
// @@protoc_insertion_point(field_get:parser.ParseTable.Entry.term)
return term_.GetNoArena();
}
inline void ParseTable_Entry::set_term(const ::std::string& value) {
set_has_term();
term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:parser.ParseTable.Entry.term)
}
#if LANG_CXX11
inline void ParseTable_Entry::set_term(::std::string&& value) {
set_has_term();
term_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:parser.ParseTable.Entry.term)
}
#endif
inline void ParseTable_Entry::set_term(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_term();
term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:parser.ParseTable.Entry.term)
}
inline void ParseTable_Entry::set_term(const char* value, size_t size) {
set_has_term();
term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:parser.ParseTable.Entry.term)
}
inline ::std::string* ParseTable_Entry::mutable_term() {
set_has_term();
// @@protoc_insertion_point(field_mutable:parser.ParseTable.Entry.term)
return term_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ParseTable_Entry::release_term() {
// @@protoc_insertion_point(field_release:parser.ParseTable.Entry.term)
clear_has_term();
return term_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ParseTable_Entry::set_allocated_term(::std::string* term) {
if (term != NULL) {
set_has_term();
} else {
clear_has_term();
}
term_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), term);
// @@protoc_insertion_point(field_set_allocated:parser.ParseTable.Entry.term)
}
// repeated string productions = 4;
inline int ParseTable_Entry::productions_size() const {
return productions_.size();
}
inline void ParseTable_Entry::clear_productions() {
productions_.Clear();
}
inline const ::std::string& ParseTable_Entry::productions(int index) const {
// @@protoc_insertion_point(field_get:parser.ParseTable.Entry.productions)
return productions_.Get(index);
}
inline ::std::string* ParseTable_Entry::mutable_productions(int index) {
// @@protoc_insertion_point(field_mutable:parser.ParseTable.Entry.productions)
return productions_.Mutable(index);
}
inline void ParseTable_Entry::set_productions(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:parser.ParseTable.Entry.productions)
productions_.Mutable(index)->assign(value);
}
#if LANG_CXX11
inline void ParseTable_Entry::set_productions(int index, ::std::string&& value) {
// @@protoc_insertion_point(field_set:parser.ParseTable.Entry.productions)
productions_.Mutable(index)->assign(std::move(value));
}
#endif
inline void ParseTable_Entry::set_productions(int index, const char* value) {
GOOGLE_DCHECK(value != NULL);
productions_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:parser.ParseTable.Entry.productions)
}
inline void ParseTable_Entry::set_productions(int index, const char* value, size_t size) {
productions_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:parser.ParseTable.Entry.productions)
}
inline ::std::string* ParseTable_Entry::add_productions() {
// @@protoc_insertion_point(field_add_mutable:parser.ParseTable.Entry.productions)
return productions_.Add();
}
inline void ParseTable_Entry::add_productions(const ::std::string& value) {
productions_.Add()->assign(value);
// @@protoc_insertion_point(field_add:parser.ParseTable.Entry.productions)
}
#if LANG_CXX11
inline void ParseTable_Entry::add_productions(::std::string&& value) {
productions_.Add(std::move(value));
// @@protoc_insertion_point(field_add:parser.ParseTable.Entry.productions)
}
#endif
inline void ParseTable_Entry::add_productions(const char* value) {
GOOGLE_DCHECK(value != NULL);
productions_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:parser.ParseTable.Entry.productions)
}
inline void ParseTable_Entry::add_productions(const char* value, size_t size) {
productions_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:parser.ParseTable.Entry.productions)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
ParseTable_Entry::productions() const {
// @@protoc_insertion_point(field_list:parser.ParseTable.Entry.productions)
return productions_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
ParseTable_Entry::mutable_productions() {
// @@protoc_insertion_point(field_mutable_list:parser.ParseTable.Entry.productions)
return &productions_;
}
// -------------------------------------------------------------------
// ParseTable
// required string starting_symbol = 1;
inline bool ParseTable::has_starting_symbol() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ParseTable::set_has_starting_symbol() {
_has_bits_[0] |= 0x00000001u;
}
inline void ParseTable::clear_has_starting_symbol() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ParseTable::clear_starting_symbol() {
starting_symbol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_starting_symbol();
}
inline const ::std::string& ParseTable::starting_symbol() const {
// @@protoc_insertion_point(field_get:parser.ParseTable.starting_symbol)
return starting_symbol_.GetNoArena();
}
inline void ParseTable::set_starting_symbol(const ::std::string& value) {
set_has_starting_symbol();
starting_symbol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:parser.ParseTable.starting_symbol)
}
#if LANG_CXX11
inline void ParseTable::set_starting_symbol(::std::string&& value) {
set_has_starting_symbol();
starting_symbol_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:parser.ParseTable.starting_symbol)
}
#endif
inline void ParseTable::set_starting_symbol(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_starting_symbol();
starting_symbol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:parser.ParseTable.starting_symbol)
}
inline void ParseTable::set_starting_symbol(const char* value, size_t size) {
set_has_starting_symbol();
starting_symbol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:parser.ParseTable.starting_symbol)
}
inline ::std::string* ParseTable::mutable_starting_symbol() {
set_has_starting_symbol();
// @@protoc_insertion_point(field_mutable:parser.ParseTable.starting_symbol)
return starting_symbol_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ParseTable::release_starting_symbol() {
// @@protoc_insertion_point(field_release:parser.ParseTable.starting_symbol)
clear_has_starting_symbol();
return starting_symbol_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ParseTable::set_allocated_starting_symbol(::std::string* starting_symbol) {
if (starting_symbol != NULL) {
set_has_starting_symbol();
} else {
clear_has_starting_symbol();
}
starting_symbol_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), starting_symbol);
// @@protoc_insertion_point(field_set_allocated:parser.ParseTable.starting_symbol)
}
// repeated .parser.ParseTable.Entry entries = 2;
inline int ParseTable::entries_size() const {
return entries_.size();
}
inline void ParseTable::clear_entries() {
entries_.Clear();
}
inline const ::parser::ParseTable_Entry& ParseTable::entries(int index) const {
// @@protoc_insertion_point(field_get:parser.ParseTable.entries)
return entries_.Get(index);
}
inline ::parser::ParseTable_Entry* ParseTable::mutable_entries(int index) {
// @@protoc_insertion_point(field_mutable:parser.ParseTable.entries)
return entries_.Mutable(index);
}
inline ::parser::ParseTable_Entry* ParseTable::add_entries() {
// @@protoc_insertion_point(field_add:parser.ParseTable.entries)
return entries_.Add();
}
inline ::google::protobuf::RepeatedPtrField< ::parser::ParseTable_Entry >*
ParseTable::mutable_entries() {
// @@protoc_insertion_point(field_mutable_list:parser.ParseTable.entries)
return &entries_;
}
inline const ::google::protobuf::RepeatedPtrField< ::parser::ParseTable_Entry >&
ParseTable::entries() const {
// @@protoc_insertion_point(field_list:parser.ParseTable.entries)
return entries_;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace parser
namespace google {
namespace protobuf {
template <> struct is_proto_enum< ::parser::ParseTable_Entry_States> : ::google::protobuf::internal::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::parser::ParseTable_Entry_States>() {
return ::parser::ParseTable_Entry_States_descriptor();
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_parsetable_2eproto__INCLUDED