summaryrefslogtreecommitdiff
path: root/tests/arrays_test_generated.h
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2019-08-19 17:57:23 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2019-08-19 17:57:23 -0700
commitb97b342f595c404dc4fb48673d6104d9bb9e7f98 (patch)
treec1ca8040241fff213025d795578e6acc9e75babe /tests/arrays_test_generated.h
parentc1058a903bc908cc6d703512ed291e580bac09e0 (diff)
downloadflatbuffers-b97b342f595c404dc4fb48673d6104d9bb9e7f98.tar.gz
flatbuffers-b97b342f595c404dc4fb48673d6104d9bb9e7f98.tar.bz2
flatbuffers-b97b342f595c404dc4fb48673d6104d9bb9e7f98.zip
Fixed missing generated code.
Change-Id: Iaa0633167c2a4d4543fc4de2af58112d60d5d1e6
Diffstat (limited to 'tests/arrays_test_generated.h')
-rw-r--r--tests/arrays_test_generated.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/arrays_test_generated.h b/tests/arrays_test_generated.h
index 6cd86167..17b0e5a5 100644
--- a/tests/arrays_test_generated.h
+++ b/tests/arrays_test_generated.h
@@ -16,6 +16,13 @@ struct ArrayStruct;
struct ArrayTable;
struct ArrayTableT;
+bool operator==(const NestedStruct &lhs, const NestedStruct &rhs);
+bool operator!=(const NestedStruct &lhs, const NestedStruct &rhs);
+bool operator==(const ArrayStruct &lhs, const ArrayStruct &rhs);
+bool operator!=(const ArrayStruct &lhs, const ArrayStruct &rhs);
+bool operator==(const ArrayTableT &lhs, const ArrayTableT &rhs);
+bool operator!=(const ArrayTableT &lhs, const ArrayTableT &rhs);
+
inline const flatbuffers::TypeTable *NestedStructTypeTable();
inline const flatbuffers::TypeTable *ArrayStructTypeTable();
@@ -96,6 +103,18 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) NestedStruct FLATBUFFERS_FINAL_CLASS {
};
FLATBUFFERS_STRUCT_END(NestedStruct, 12);
+inline bool operator==(const NestedStruct &lhs, const NestedStruct &rhs) {
+ return
+ (lhs.a() == rhs.a()) &&
+ (lhs.b() == rhs.b()) &&
+ (lhs.c() == rhs.c());
+}
+
+inline bool operator!=(const NestedStruct &lhs, const NestedStruct &rhs) {
+ return !(lhs == rhs);
+}
+
+
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) ArrayStruct FLATBUFFERS_FINAL_CLASS {
private:
float a_;
@@ -147,6 +166,19 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) ArrayStruct FLATBUFFERS_FINAL_CLASS {
};
FLATBUFFERS_STRUCT_END(ArrayStruct, 92);
+inline bool operator==(const ArrayStruct &lhs, const ArrayStruct &rhs) {
+ return
+ (lhs.a() == rhs.a()) &&
+ (lhs.b() == rhs.b()) &&
+ (lhs.c() == rhs.c()) &&
+ (lhs.d() == rhs.d());
+}
+
+inline bool operator!=(const ArrayStruct &lhs, const ArrayStruct &rhs) {
+ return !(lhs == rhs);
+}
+
+
struct ArrayTableT : public flatbuffers::NativeTable {
typedef ArrayTable TableType;
flatbuffers::unique_ptr<MyGame::Example::ArrayStruct> a;
@@ -154,6 +186,16 @@ struct ArrayTableT : public flatbuffers::NativeTable {
}
};
+inline bool operator==(const ArrayTableT &lhs, const ArrayTableT &rhs) {
+ return
+ (lhs.a == rhs.a);
+}
+
+inline bool operator!=(const ArrayTableT &lhs, const ArrayTableT &rhs) {
+ return !(lhs == rhs);
+}
+
+
struct ArrayTable FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef ArrayTableT NativeTableType;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {