class TestXUnion

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

Public Members

static const fidl_type_t * FidlType

Public Methods

void TestXUnion ()
void TestXUnion (TestXUnion && )
TestXUnion & operator= (TestXUnion && )
TestXUnion WithPrimitive (int32_t && )
TestXUnion WithCopyable (::test::types::CopyableStruct && )
TestXUnion WithH (::zx::handle && )
::std::unique_ptr<TestXUnion> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, TestXUnion * value, size_t offset)
zx_status_t Clone (TestXUnion * result)
TestXUnion & SetUnknownData (fidl_xunion_tag_t ordinal, std::vector<uint8_t> bytes, std::vector<zx::handle> handles)
bool has_invalid_tag ()

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

bool is_primitive ()

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

int32_t & primitive ()

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

const int32_t & primitive ()

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

bool is_copyable ()

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

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

Defined at line 742 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 747 of file fidling/gen/sdk/testing/fidl/types_tests/test.types/hlcpp/test/types/cpp/fidl.h

bool is_h ()

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

::zx::handle & h ()

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

const ::zx::handle & h ()

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

::test::types::TestXUnion::Tag Which ()

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

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 783 of file fidling/gen/sdk/testing/fidl/types_tests/test.types/hlcpp/test/types/cpp/fidl.h

const std::vector<uint8_t> * UnknownBytes ()

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

const std::vector<zx::handle> * UnknownHandles ()

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

void ~TestXUnion ()
TestXUnion & set_primitive (int32_t value)
TestXUnion & set_copyable (::test::types::CopyableStruct value)
TestXUnion & set_h (::zx::handle value)

Enumerations

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

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

Friends

class Equality