class TestXUnion

Defined at line 510 of file fidling/gen/sdk/testing/fidl/types_tests/test.types/cpp/fidl/test.types/cpp/natural_types.h

Public Methods

void TestXUnion (TestXUnion && other)
TestXUnion & operator= (TestXUnion && other)
bool IsUnknown ()
::test_types::TestXUnion::Tag Which ()
TestXUnion WithPrimitive (int32_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> primitive ()
::fidl::internal::UnionMemberView<1, Storage_> primitive ()
TestXUnion & primitive (int32_t value)

Sets the union to hold the primitive member.

TestXUnion WithCopyable (::test_types::CopyableStruct val)
const ::fidl::internal::UnionMemberView<2, Storage_> copyable ()
::fidl::internal::UnionMemberView<2, Storage_> copyable ()
TestXUnion & copyable (::test_types::CopyableStruct value)

Sets the union to hold the copyable member.

TestXUnion WithH (::zx::handle val)
const ::fidl::internal::UnionMemberView<3, Storage_> h ()
::fidl::internal::UnionMemberView<3, Storage_> h ()
TestXUnion & h (::zx::handle value)

Sets the union to hold the h member.

void TestXUnion (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kPrimitive 1
kCopyable 2
kH 3
_do_not_handle_this__write_a_default_case_instead ::std::numeric_limits<::fidl_union_tag_t>::max()

TODO: share union tag types between wire

&

natural.

Defined at line 521 of file fidling/gen/sdk/testing/fidl/types_tests/test.types/cpp/fidl/test.types/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits