blob: 29950fb9b5cee805e54cf84ef77e3d5b44951315 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
// fidl_experiment = output_index_json
#pragma once
#include <fidl/test.union/cpp/natural_types.h>
#include <lib/fidl/cpp/natural_ostream.h>
#include <iostream>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
template <>
struct fidl::ostream::Formatter<::test_union::Pizza> {
static std::ostream& Format(std::ostream& os, const ::test_union::Pizza& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::Pasta> {
static std::ostream& Format(std::ostream& os, const ::test_union::Pasta& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::PizzaOrPasta> {
static std::ostream& Format(std::ostream& os, const ::test_union::PizzaOrPasta& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::ExplicitPizzaOrPasta> {
static std::ostream& Format(std::ostream& os, const ::test_union::ExplicitPizzaOrPasta& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::FlexiblePizzaOrPasta> {
static std::ostream& Format(std::ostream& os, const ::test_union::FlexiblePizzaOrPasta& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::StrictPizzaOrPasta> {
static std::ostream& Format(std::ostream& os, const ::test_union::StrictPizzaOrPasta& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::Union> {
static std::ostream& Format(std::ostream& os, const ::test_union::Union& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::FlexibleUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::FlexibleUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::StrictUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::StrictUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::FieldCollision> {
static std::ostream& Format(std::ostream& os, const ::test_union::FieldCollision& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::ExplicitUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::ExplicitUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::ReverseOrdinalUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::ReverseOrdinalUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::NullableUnionStruct> {
static std::ostream& Format(std::ostream& os, const ::test_union::NullableUnionStruct& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::FlexibleFoo> {
static std::ostream& Format(std::ostream& os, const ::test_union::FlexibleFoo& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::StrictFoo> {
static std::ostream& Format(std::ostream& os, const ::test_union::StrictFoo& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::ExplicitFoo> {
static std::ostream& Format(std::ostream& os, const ::test_union::ExplicitFoo& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::ExplicitStrictFoo> {
static std::ostream& Format(std::ostream& os, const ::test_union::ExplicitStrictFoo& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::OlderSimpleUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::OlderSimpleUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::NewerSimpleUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::NewerSimpleUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::StrictSimpleUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::StrictSimpleUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::Empty> {
static std::ostream& Format(std::ostream& os, const ::test_union::Empty& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::UnionContainingEmptyStruct> {
static std::ostream& Format(std::ostream& os, const ::test_union::UnionContainingEmptyStruct& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::StrictBoundedUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::StrictBoundedUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::TestProtocolStrictUnionHenceResponseMayBeStackAllocatedResponse> {
static std::ostream& Format(std::ostream& os, const ::test_union::TestProtocolStrictUnionHenceResponseMayBeStackAllocatedResponse& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::TestProtocolFlexibleUnionHenceResponseMustBeHeapAllocatedResponse> {
static std::ostream& Format(std::ostream& os, const ::test_union::TestProtocolFlexibleUnionHenceResponseMustBeHeapAllocatedResponse& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::StructWithNullableUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::StructWithNullableUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::ExplicitFlexibleUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::ExplicitFlexibleUnion& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::UnionSandwich> {
static std::ostream& Format(std::ostream& os, const ::test_union::UnionSandwich& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::UnionWithAttributes> {
static std::ostream& Format(std::ostream& os, const ::test_union::UnionWithAttributes& value);
};
template <>
struct fidl::ostream::Formatter<::test_union::EmptyFlexibleUnion> {
static std::ostream& Format(std::ostream& os, const ::test_union::EmptyFlexibleUnion& value);
};
namespace test_union {
std::ostream& operator<<(std::ostream& os, const ::test_union::Pizza& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::Pasta& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::PizzaOrPasta& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::ExplicitPizzaOrPasta& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::FlexiblePizzaOrPasta& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::StrictPizzaOrPasta& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::Union& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::FlexibleUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::StrictUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::FieldCollision& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::ExplicitUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::ReverseOrdinalUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::NullableUnionStruct& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::FlexibleFoo& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::StrictFoo& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::ExplicitFoo& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::ExplicitStrictFoo& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::OlderSimpleUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::NewerSimpleUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::StrictSimpleUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::Empty& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::UnionContainingEmptyStruct& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::StrictBoundedUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::TestProtocolStrictUnionHenceResponseMayBeStackAllocatedResponse& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::TestProtocolFlexibleUnionHenceResponseMustBeHeapAllocatedResponse& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::StructWithNullableUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::ExplicitFlexibleUnion& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::UnionSandwich& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::UnionWithAttributes& value);
std::ostream& operator<<(std::ostream& os, const ::test_union::EmptyFlexibleUnion& value);
} // namespace test_union
#ifdef __Fuchsia__
template <>
struct fidl::ostream::Formatter<::fidl::ClientEnd<::test_union::TestProtocol>> {
static std::ostream& Format(std::ostream& os, const ::fidl::ClientEnd<::test_union::TestProtocol>& value) {
return os << "ClientEnd<" << "test_union::TestProtocol" << ">(" << value.channel().get() << ")";
}
};
template <>
struct fidl::ostream::Formatter<::fidl::ServerEnd<::test_union::TestProtocol>> {
static std::ostream& Format(std::ostream& os, const ::fidl::ServerEnd<::test_union::TestProtocol>& value) {
return os << "ServerEnd<" << "test_union::TestProtocol" << ">(" << value.channel().get() << ")";
}
};
namespace fidl {
inline std::ostream& operator<<(std::ostream& os, const ::fidl::ClientEnd<::test_union::TestProtocol>& value) {
return fidl::ostream::Formatter<::fidl::ClientEnd<::test_union::TestProtocol>>::Format(os, value);
}
inline std::ostream& operator<<(std::ostream& os, const ::fidl::ServerEnd<::test_union::TestProtocol>& value) {
return fidl::ostream::Formatter<::fidl::ServerEnd<::test_union::TestProtocol>>::Format(os, value);
}
} // namespace fidl
#endif // __Fuchsia__
#pragma clang diagnostic pop