class ChildRef

Defined at line 2842 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

A reference to one of the component's child instances.

Public Methods

void ChildRef (Storage_ storage)
void ChildRef (::std::string name, ::std::optional< ::std::string> collection)
void ChildRef ()

Default constructs a |ChildRef| only if all of its members are default constructible.

Defined at line 2852 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

void ChildRef (ChildRef && )

Defined at line 2855 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

void ChildRef (const ChildRef & other)
ChildRef & operator= (ChildRef && )

Defined at line 2856 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

ChildRef & operator= (const ChildRef & other)
bool operator== (const ChildRef & other)
bool operator!= (const ChildRef & other)
const ::std::string & name ()

The name assigned to the child by its parent. If `collection` is set,

`name` is scoped to `collection` and the child is a dynamic instance.

::std::string & name ()

The name assigned to the child by its parent. If `collection` is set,

`name` is scoped to `collection` and the child is a dynamic instance.

ChildRef & name (::std::string value)

The name assigned to the child by its parent. If `collection` is set,

`name` is scoped to `collection` and the child is a dynamic instance.

const ::std::optional< ::std::string> & collection ()

The collection `name` belongs to. If omitted, `name` references a static

instance. This field must be omitted if the `ChildRef` is being used in

a component declaration. Optional.

::std::optional< ::std::string> & collection ()

The collection `name` belongs to. If omitted, `name` references a static

instance. This field must be omitted if the `ChildRef` is being used in

a component declaration. Optional.

ChildRef & collection (::std::optional< ::std::string> value)

The collection `name` belongs to. If omitted, `name` references a static

instance. This field must be omitted if the `ChildRef` is being used in

a component declaration. Optional.

void ChildRef (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits