class AnnotationValue
Defined at line 269 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
The value of an [`fuchsia.element/Annotation`].
The actual field used depends on the type of annotation.
Public Members
static const fidl_type_t * FidlType
Public Methods
void AnnotationValue ()
void ~AnnotationValue ()
void AnnotationValue (AnnotationValue && )
AnnotationValue & operator= (AnnotationValue && )
AnnotationValue WithText (::std::string && )
AnnotationValue WithBuffer (::fuchsia::mem::Buffer && )
::std::unique_ptr<AnnotationValue> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, AnnotationValue * value, size_t offset)
zx_status_t Clone (AnnotationValue * result)
bool has_invalid_tag ()
Defined at line 296 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
bool is_text ()
Defined at line 300 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
AnnotationValue & set_text (::std::string value)
::std::string & text ()
Defined at line 302 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
const ::std::string & text ()
Defined at line 307 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
bool is_buffer ()
Defined at line 313 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
::fuchsia::mem::Buffer & buffer ()
Defined at line 315 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
const ::fuchsia::mem::Buffer & buffer ()
Defined at line 320 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
::fuchsia::element::AnnotationValue::Tag Which ()
Defined at line 326 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/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 334 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
AnnotationValue & set_buffer (::fuchsia::mem::Buffer value)
Enumerations
enum Tag
| Name | Value |
|---|---|
| kText | 1 |
| kBuffer | 2 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() |
Defined at line 282 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h
Friends
class Equality