class TestUnion

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

Verifies that user code can manipulate these union payloads.

Public Members

static const fidl_type_t * FidlType

Public Methods

fidl_xunion_tag_t Ordinal ()

You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need

access to the raw integral ordinal value.

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

void TestUnion ()
void TestUnion (TestUnion && )
TestUnion & operator= (TestUnion && )
TestUnion WithPrimitive (int32_t && )
TestUnion WithCopyable (::test::types::CopyableStruct && )
TestUnion WithMoveOnly (::test::types::MoveOnlyStruct && )
::std::unique_ptr<TestUnion> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, TestUnion * value, size_t offset)
zx_status_t Clone (TestUnion * result)
bool has_invalid_tag ()

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

bool is_primitive ()

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

int32_t & primitive ()

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

const int32_t & primitive ()

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

bool is_copyable ()

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

::test::types::CopyableStruct & copyable ()

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

const ::test::types::CopyableStruct & copyable ()

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

bool is_move_only ()

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

::test::types::MoveOnlyStruct & move_only ()

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

const ::test::types::MoveOnlyStruct & move_only ()

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

::test::types::TestUnion::Tag Which ()

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

void ~TestUnion ()
TestUnion & set_primitive (int32_t value)
TestUnion & set_copyable (::test::types::CopyableStruct value)
TestUnion & set_move_only (::test::types::MoveOnlyStruct value)

Enumerations

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

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

Friends

class Equality