1 // automatically generated by the FlatBuffers compiler, do not modify
2
3
4 #ifndef FLATBUFFERS_GENERATED_MONSTEREXTRA_MYGAME_H_
5 #define FLATBUFFERS_GENERATED_MONSTEREXTRA_MYGAME_H_
6
7 #include "flatbuffers/flatbuffers.h"
8
9 namespace MyGame {
10
11 struct MonsterExtra;
12 struct MonsterExtraT;
13
14 bool operator==(const MonsterExtraT &lhs, const MonsterExtraT &rhs);
15
16 inline const flatbuffers::TypeTable *MonsterExtraTypeTable();
17
18 struct MonsterExtraT : public flatbuffers::NativeTable {
19 typedef MonsterExtra TableType;
20 float testf_nan;
21 float testf_pinf;
22 float testf_ninf;
23 double testd_nan;
24 double testd_pinf;
25 double testd_ninf;
MonsterExtraTMonsterExtraT26 MonsterExtraT()
27 : testf_nan(std::numeric_limits<float>::quiet_NaN()),
28 testf_pinf(std::numeric_limits<float>::infinity()),
29 testf_ninf(-std::numeric_limits<float>::infinity()),
30 testd_nan(std::numeric_limits<double>::quiet_NaN()),
31 testd_pinf(std::numeric_limits<double>::infinity()),
32 testd_ninf(-std::numeric_limits<double>::infinity()) {
33 }
34 };
35
36 inline bool operator==(const MonsterExtraT &lhs, const MonsterExtraT &rhs) {
37 return
38 (lhs.testf_nan == rhs.testf_nan) &&
39 (lhs.testf_pinf == rhs.testf_pinf) &&
40 (lhs.testf_ninf == rhs.testf_ninf) &&
41 (lhs.testd_nan == rhs.testd_nan) &&
42 (lhs.testd_pinf == rhs.testd_pinf) &&
43 (lhs.testd_ninf == rhs.testd_ninf);
44 }
45
46 struct MonsterExtra FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
47 typedef MonsterExtraT NativeTableType;
MiniReflectTypeTableFLATBUFFERS_FINAL_CLASS48 static const flatbuffers::TypeTable *MiniReflectTypeTable() {
49 return MonsterExtraTypeTable();
50 }
51 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
52 VT_TESTF_NAN = 4,
53 VT_TESTF_PINF = 6,
54 VT_TESTF_NINF = 8,
55 VT_TESTD_NAN = 10,
56 VT_TESTD_PINF = 12,
57 VT_TESTD_NINF = 14
58 };
testf_nanFLATBUFFERS_FINAL_CLASS59 float testf_nan() const {
60 return GetField<float>(VT_TESTF_NAN, std::numeric_limits<float>::quiet_NaN());
61 }
mutate_testf_nanFLATBUFFERS_FINAL_CLASS62 bool mutate_testf_nan(float _testf_nan) {
63 return SetField<float>(VT_TESTF_NAN, _testf_nan, std::numeric_limits<float>::quiet_NaN());
64 }
testf_pinfFLATBUFFERS_FINAL_CLASS65 float testf_pinf() const {
66 return GetField<float>(VT_TESTF_PINF, std::numeric_limits<float>::infinity());
67 }
mutate_testf_pinfFLATBUFFERS_FINAL_CLASS68 bool mutate_testf_pinf(float _testf_pinf) {
69 return SetField<float>(VT_TESTF_PINF, _testf_pinf, std::numeric_limits<float>::infinity());
70 }
testf_ninfFLATBUFFERS_FINAL_CLASS71 float testf_ninf() const {
72 return GetField<float>(VT_TESTF_NINF, -std::numeric_limits<float>::infinity());
73 }
mutate_testf_ninfFLATBUFFERS_FINAL_CLASS74 bool mutate_testf_ninf(float _testf_ninf) {
75 return SetField<float>(VT_TESTF_NINF, _testf_ninf, -std::numeric_limits<float>::infinity());
76 }
testd_nanFLATBUFFERS_FINAL_CLASS77 double testd_nan() const {
78 return GetField<double>(VT_TESTD_NAN, std::numeric_limits<double>::quiet_NaN());
79 }
mutate_testd_nanFLATBUFFERS_FINAL_CLASS80 bool mutate_testd_nan(double _testd_nan) {
81 return SetField<double>(VT_TESTD_NAN, _testd_nan, std::numeric_limits<double>::quiet_NaN());
82 }
testd_pinfFLATBUFFERS_FINAL_CLASS83 double testd_pinf() const {
84 return GetField<double>(VT_TESTD_PINF, std::numeric_limits<double>::infinity());
85 }
mutate_testd_pinfFLATBUFFERS_FINAL_CLASS86 bool mutate_testd_pinf(double _testd_pinf) {
87 return SetField<double>(VT_TESTD_PINF, _testd_pinf, std::numeric_limits<double>::infinity());
88 }
testd_ninfFLATBUFFERS_FINAL_CLASS89 double testd_ninf() const {
90 return GetField<double>(VT_TESTD_NINF, -std::numeric_limits<double>::infinity());
91 }
mutate_testd_ninfFLATBUFFERS_FINAL_CLASS92 bool mutate_testd_ninf(double _testd_ninf) {
93 return SetField<double>(VT_TESTD_NINF, _testd_ninf, -std::numeric_limits<double>::infinity());
94 }
VerifyFLATBUFFERS_FINAL_CLASS95 bool Verify(flatbuffers::Verifier &verifier) const {
96 return VerifyTableStart(verifier) &&
97 VerifyField<float>(verifier, VT_TESTF_NAN) &&
98 VerifyField<float>(verifier, VT_TESTF_PINF) &&
99 VerifyField<float>(verifier, VT_TESTF_NINF) &&
100 VerifyField<double>(verifier, VT_TESTD_NAN) &&
101 VerifyField<double>(verifier, VT_TESTD_PINF) &&
102 VerifyField<double>(verifier, VT_TESTD_NINF) &&
103 verifier.EndTable();
104 }
105 MonsterExtraT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
106 void UnPackTo(MonsterExtraT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
107 static flatbuffers::Offset<MonsterExtra> Pack(flatbuffers::FlatBufferBuilder &_fbb, const MonsterExtraT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
108 };
109
110 struct MonsterExtraBuilder {
111 flatbuffers::FlatBufferBuilder &fbb_;
112 flatbuffers::uoffset_t start_;
add_testf_nanMonsterExtraBuilder113 void add_testf_nan(float testf_nan) {
114 fbb_.AddElement<float>(MonsterExtra::VT_TESTF_NAN, testf_nan, std::numeric_limits<float>::quiet_NaN());
115 }
add_testf_pinfMonsterExtraBuilder116 void add_testf_pinf(float testf_pinf) {
117 fbb_.AddElement<float>(MonsterExtra::VT_TESTF_PINF, testf_pinf, std::numeric_limits<float>::infinity());
118 }
add_testf_ninfMonsterExtraBuilder119 void add_testf_ninf(float testf_ninf) {
120 fbb_.AddElement<float>(MonsterExtra::VT_TESTF_NINF, testf_ninf, -std::numeric_limits<float>::infinity());
121 }
add_testd_nanMonsterExtraBuilder122 void add_testd_nan(double testd_nan) {
123 fbb_.AddElement<double>(MonsterExtra::VT_TESTD_NAN, testd_nan, std::numeric_limits<double>::quiet_NaN());
124 }
add_testd_pinfMonsterExtraBuilder125 void add_testd_pinf(double testd_pinf) {
126 fbb_.AddElement<double>(MonsterExtra::VT_TESTD_PINF, testd_pinf, std::numeric_limits<double>::infinity());
127 }
add_testd_ninfMonsterExtraBuilder128 void add_testd_ninf(double testd_ninf) {
129 fbb_.AddElement<double>(MonsterExtra::VT_TESTD_NINF, testd_ninf, -std::numeric_limits<double>::infinity());
130 }
MonsterExtraBuilderMonsterExtraBuilder131 explicit MonsterExtraBuilder(flatbuffers::FlatBufferBuilder &_fbb)
132 : fbb_(_fbb) {
133 start_ = fbb_.StartTable();
134 }
135 MonsterExtraBuilder &operator=(const MonsterExtraBuilder &);
FinishMonsterExtraBuilder136 flatbuffers::Offset<MonsterExtra> Finish() {
137 const auto end = fbb_.EndTable(start_);
138 auto o = flatbuffers::Offset<MonsterExtra>(end);
139 return o;
140 }
141 };
142
143 inline flatbuffers::Offset<MonsterExtra> CreateMonsterExtra(
144 flatbuffers::FlatBufferBuilder &_fbb,
145 float testf_nan = std::numeric_limits<float>::quiet_NaN(),
146 float testf_pinf = std::numeric_limits<float>::infinity(),
147 float testf_ninf = -std::numeric_limits<float>::infinity(),
148 double testd_nan = std::numeric_limits<double>::quiet_NaN(),
149 double testd_pinf = std::numeric_limits<double>::infinity(),
150 double testd_ninf = -std::numeric_limits<double>::infinity()) {
151 MonsterExtraBuilder builder_(_fbb);
152 builder_.add_testd_ninf(testd_ninf);
153 builder_.add_testd_pinf(testd_pinf);
154 builder_.add_testd_nan(testd_nan);
155 builder_.add_testf_ninf(testf_ninf);
156 builder_.add_testf_pinf(testf_pinf);
157 builder_.add_testf_nan(testf_nan);
158 return builder_.Finish();
159 }
160
161 flatbuffers::Offset<MonsterExtra> CreateMonsterExtra(flatbuffers::FlatBufferBuilder &_fbb, const MonsterExtraT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
162
UnPack(const flatbuffers::resolver_function_t * _resolver)163 inline MonsterExtraT *MonsterExtra::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
164 auto _o = new MonsterExtraT();
165 UnPackTo(_o, _resolver);
166 return _o;
167 }
168
UnPackTo(MonsterExtraT * _o,const flatbuffers::resolver_function_t * _resolver)169 inline void MonsterExtra::UnPackTo(MonsterExtraT *_o, const flatbuffers::resolver_function_t *_resolver) const {
170 (void)_o;
171 (void)_resolver;
172 { auto _e = testf_nan(); _o->testf_nan = _e; };
173 { auto _e = testf_pinf(); _o->testf_pinf = _e; };
174 { auto _e = testf_ninf(); _o->testf_ninf = _e; };
175 { auto _e = testd_nan(); _o->testd_nan = _e; };
176 { auto _e = testd_pinf(); _o->testd_pinf = _e; };
177 { auto _e = testd_ninf(); _o->testd_ninf = _e; };
178 }
179
Pack(flatbuffers::FlatBufferBuilder & _fbb,const MonsterExtraT * _o,const flatbuffers::rehasher_function_t * _rehasher)180 inline flatbuffers::Offset<MonsterExtra> MonsterExtra::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MonsterExtraT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
181 return CreateMonsterExtra(_fbb, _o, _rehasher);
182 }
183
CreateMonsterExtra(flatbuffers::FlatBufferBuilder & _fbb,const MonsterExtraT * _o,const flatbuffers::rehasher_function_t * _rehasher)184 inline flatbuffers::Offset<MonsterExtra> CreateMonsterExtra(flatbuffers::FlatBufferBuilder &_fbb, const MonsterExtraT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
185 (void)_rehasher;
186 (void)_o;
187 struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const MonsterExtraT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
188 auto _testf_nan = _o->testf_nan;
189 auto _testf_pinf = _o->testf_pinf;
190 auto _testf_ninf = _o->testf_ninf;
191 auto _testd_nan = _o->testd_nan;
192 auto _testd_pinf = _o->testd_pinf;
193 auto _testd_ninf = _o->testd_ninf;
194 return MyGame::CreateMonsterExtra(
195 _fbb,
196 _testf_nan,
197 _testf_pinf,
198 _testf_ninf,
199 _testd_nan,
200 _testd_pinf,
201 _testd_ninf);
202 }
203
MonsterExtraTypeTable()204 inline const flatbuffers::TypeTable *MonsterExtraTypeTable() {
205 static const flatbuffers::TypeCode type_codes[] = {
206 { flatbuffers::ET_FLOAT, 0, -1 },
207 { flatbuffers::ET_FLOAT, 0, -1 },
208 { flatbuffers::ET_FLOAT, 0, -1 },
209 { flatbuffers::ET_DOUBLE, 0, -1 },
210 { flatbuffers::ET_DOUBLE, 0, -1 },
211 { flatbuffers::ET_DOUBLE, 0, -1 }
212 };
213 static const char * const names[] = {
214 "testf_nan",
215 "testf_pinf",
216 "testf_ninf",
217 "testd_nan",
218 "testd_pinf",
219 "testd_ninf"
220 };
221 static const flatbuffers::TypeTable tt = {
222 flatbuffers::ST_TABLE, 6, type_codes, nullptr, nullptr, names
223 };
224 return &tt;
225 }
226
227 } // namespace MyGame
228
229 #endif // FLATBUFFERS_GENERATED_MONSTEREXTRA_MYGAME_H_
230