class TestUnion

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

Verifies that user code can manipulate these union payloads.

Public Methods

void TestUnion ()
void ~TestUnion ()
void TestUnion (TestUnion && other)
TestUnion & operator= (TestUnion && other)
bool has_invalid_tag ()
bool is_primitive ()
TestUnion WithPrimitive (int32_t val)
int32_t & primitive ()
const int32_t & primitive ()
bool is_copyable ()
TestUnion WithCopyable (::test_types::wire::CopyableStruct val)
::test_types::wire::CopyableStruct & copyable ()
const ::test_types::wire::CopyableStruct & copyable ()
bool is_move_only ()
TestUnion WithMoveOnly (::test_types::wire::MoveOnlyStruct val)
::test_types::wire::MoveOnlyStruct & move_only ()
const ::test_types::wire::MoveOnlyStruct & move_only ()
::test_types::wire::TestUnion::Tag Which ()
void _CloseHandles ()

Enumerations

enum class Tag : fidl_xunion_tag_t
Name Value Comments
kPrimitive 1

0x1

kCopyable 2

0x2

kMoveOnly 3

0x3

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