| Flutter macOS Embedder |

Public Types | Public Member Functions | Friends | List of all members
flutter::EncodableValue Class Reference

`#include <encodable_value.h>`

Inheritance diagram for flutter::EncodableValue:

## Public Types
using | super = internal::EncodableValueVariant

## Public Member Functions
| EncodableValue ()=default
| EncodableValue (const char *string)
EncodableValue & | operator= (const char *other)
| EncodableValue (const CustomEncodableValue &v)
template<class T >
constexpr | EncodableValue (T &&t) noexcept
bool | IsNull () const
int64_t | LongValue () const

## Friends
bool | operator< (const EncodableValue &lhs, const EncodableValue &rhs)

## Detailed Description

Definition at line 165 of file encodable_value.h.

## Member Typedef Documentation

## ◆ super

using flutter::EncodableValue::super = internal::EncodableValueVariant

Definition at line 168 of file encodable_value.h.

## Constructor & Destructor Documentation

## ◆ EncodableValue() [1/4]

flutter::EncodableValue::EncodableValue | ( |  | ) |
| explicit default

## ◆ EncodableValue() [2/4]

flutter::EncodableValue::EncodableValue | ( | const char * | string | ) |
| inline explicit

Definition at line 176 of file encodable_value.h.

176 : super(std::string(string)) {}
flutter::EncodableValue::super
internal::EncodableValueVariant super
Definition: encodable_value.h:168

## ◆ EncodableValue() [3/4]

flutter::EncodableValue::EncodableValue | ( | const CustomEncodableValue & | v | ) |
| inline

Definition at line 188 of file encodable_value.h.

188 : super(v) {}

## ◆ EncodableValue() [4/4]

template<class T >

constexpr flutter::EncodableValue::EncodableValue | ( | T && | t | ) |
| inline explicit constexpr noexcept

Definition at line 199 of file encodable_value.h.

199 : super(t) {}

## Member Function Documentation

## ◆ IsNull()

bool flutter::EncodableValue::IsNull | ( |  | ) | const
| inline

Definition at line 203 of file encodable_value.h.

203 { return std::holds_alternative<std::monostate>(*this); }

Referenced by flutter::StandardMethodCodec::DecodeAndProcessResponseEnvelopeInternal(), and flutter::TEST().

## ◆ LongValue()

int64_t flutter::EncodableValue::LongValue | ( |  | ) | const
| inline

Definition at line 212 of file encodable_value.h.

212 {
213 if (std::holds_alternative<int32_t>(*this)) {
214 return std::get<int32_t>(*this);
215 }
216 return std::get<int64_t>(*this);
217 }

Referenced by flutter::TEST().

## ◆ operator=()

EncodableValue& flutter::EncodableValue::operator= | ( | const char * | other | ) |
| inline

Definition at line 177 of file encodable_value.h.

177 {
178 *this = std::string(other);
179 return *this;
180 }

## Friends And Related Function Documentation

## ◆ operator<

bool operator< | ( | const EncodableValue & | lhs,
|  | const EncodableValue & | rhs
| ) |  |
| friend

Definition at line 266 of file encodable_value.h.

266 {
267 return static_cast<const super&>(lhs) < static_cast<const super&>(rhs);
268 }

The documentation for this class was generated from the following file:

- shell/platform/common/client_wrapper/include/flutter/encodable_value.h