| // WARNING: This file is machine generated by fidlgen. |
| |
| // fidl_experiment = output_index_json |
| |
| #include <fidl/test.unionsandwich/cpp/natural_ostream.h> |
| |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wshadow" |
| |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize8Alignment4>::Format(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize8Alignment4& value) { |
| os << "test_unionsandwich::SandwichUnionSize8Alignment4"; |
| os << "{ "; |
| os << "before"; |
| os << " = " << fidl::ostream::Formatted<uint32_t>(value.before()) << ", "; |
| os << "union_"; |
| os << " = " << fidl::ostream::Formatted<::test_unionsandwich::UnionSize8Alignment4>(value.union_()) << ", "; |
| os << "after"; |
| os << " = " << fidl::ostream::Formatted<uint32_t>(value.after()) << ", "; |
| os << "}"; |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize12Alignment4>::Format(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize12Alignment4& value) { |
| os << "test_unionsandwich::SandwichUnionSize12Alignment4"; |
| os << "{ "; |
| os << "before"; |
| os << " = " << fidl::ostream::Formatted<uint32_t>(value.before()) << ", "; |
| os << "union_"; |
| os << " = " << fidl::ostream::Formatted<::test_unionsandwich::UnionSize12Alignment4>(value.union_()) << ", "; |
| os << "after"; |
| os << " = " << fidl::ostream::Formatted<int32_t>(value.after()) << ", "; |
| os << "}"; |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::StructSize16Alignment8>::Format(std::ostream& os, const ::test_unionsandwich::StructSize16Alignment8& value) { |
| os << "test_unionsandwich::StructSize16Alignment8"; |
| os << "{ "; |
| os << "f1"; |
| os << " = " << fidl::ostream::Formatted<uint64_t>(value.f1()) << ", "; |
| os << "f2"; |
| os << " = " << fidl::ostream::Formatted<uint64_t>(value.f2()) << ", "; |
| os << "}"; |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize24Alignment8>::Format(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize24Alignment8& value) { |
| os << "test_unionsandwich::SandwichUnionSize24Alignment8"; |
| os << "{ "; |
| os << "before"; |
| os << " = " << fidl::ostream::Formatted<uint32_t>(value.before()) << ", "; |
| os << "union_"; |
| os << " = " << fidl::ostream::Formatted<::test_unionsandwich::UnionSize24Alignment8>(value.union_()) << ", "; |
| os << "after"; |
| os << " = " << fidl::ostream::Formatted<uint32_t>(value.after()) << ", "; |
| os << "}"; |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize36Alignment4>::Format(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize36Alignment4& value) { |
| os << "test_unionsandwich::SandwichUnionSize36Alignment4"; |
| os << "{ "; |
| os << "before"; |
| os << " = " << fidl::ostream::Formatted<uint32_t>(value.before()) << ", "; |
| os << "union_"; |
| os << " = " << fidl::ostream::Formatted<::test_unionsandwich::UnionSize36Alignment4>(value.union_()) << ", "; |
| os << "after"; |
| os << " = " << fidl::ostream::Formatted<uint32_t>(value.after()) << ", "; |
| os << "}"; |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::UnionSize8Alignment4>::Format(std::ostream& os, const ::test_unionsandwich::UnionSize8Alignment4& value) { |
| os << "test_unionsandwich::UnionSize8Alignment4::"; |
| switch (value.Which()) { |
| case ::test_unionsandwich::UnionSize8Alignment4::Tag::kVariant: |
| os << "variant(" << fidl::ostream::Formatted<uint32_t>(value.variant().value()) << ")"; |
| break; |
| default: |
| os << "Unknown"; |
| } |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::UnionSize12Alignment4>::Format(std::ostream& os, const ::test_unionsandwich::UnionSize12Alignment4& value) { |
| os << "test_unionsandwich::UnionSize12Alignment4::"; |
| switch (value.Which()) { |
| case ::test_unionsandwich::UnionSize12Alignment4::Tag::kVariant: |
| os << "variant(" << fidl::ostream::Formatted<::std::array<uint8_t, 6>>(value.variant().value()) << ")"; |
| break; |
| default: |
| os << "Unknown"; |
| } |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::UnionSize24Alignment8>::Format(std::ostream& os, const ::test_unionsandwich::UnionSize24Alignment8& value) { |
| os << "test_unionsandwich::UnionSize24Alignment8::"; |
| switch (value.Which()) { |
| case ::test_unionsandwich::UnionSize24Alignment8::Tag::kVariant: |
| os << "variant(" << fidl::ostream::Formatted<::test_unionsandwich::StructSize16Alignment8>(value.variant().value()) << ")"; |
| break; |
| default: |
| os << "Unknown"; |
| } |
| return os; |
| } |
| std::ostream& fidl::ostream::Formatter<::test_unionsandwich::UnionSize36Alignment4>::Format(std::ostream& os, const ::test_unionsandwich::UnionSize36Alignment4& value) { |
| os << "test_unionsandwich::UnionSize36Alignment4::"; |
| switch (value.Which()) { |
| case ::test_unionsandwich::UnionSize36Alignment4::Tag::kVariant: |
| os << "variant(" << fidl::ostream::Formatted<::std::array<uint8_t, 32>>(value.variant().value()) << ")"; |
| break; |
| default: |
| os << "Unknown"; |
| } |
| return os; |
| } |
| |
| namespace test_unionsandwich { |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::UnionSize8Alignment4& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::UnionSize8Alignment4>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize8Alignment4& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize8Alignment4>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::UnionSize12Alignment4& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::UnionSize12Alignment4>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize12Alignment4& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize12Alignment4>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::StructSize16Alignment8& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::StructSize16Alignment8>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::UnionSize24Alignment8& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::UnionSize24Alignment8>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize24Alignment8& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize24Alignment8>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::UnionSize36Alignment4& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::UnionSize36Alignment4>::Format(os, value); |
| } |
| |
| std::ostream& operator<<(std::ostream& os, const ::test_unionsandwich::SandwichUnionSize36Alignment4& value) { |
| return fidl::ostream::Formatter<::test_unionsandwich::SandwichUnionSize36Alignment4>::Format(os, value); |
| } |
| |
| #pragma clang diagnostic pop |
| |
| } // namespace test_unionsandwich |