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 Tag
Name Value
kPrimitive 1
kCopyable 2
kMoveOnly 3

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